blob: e90a77b7c9736eb5fe2c7ec7b641be9ed798121d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
/**
* @file llfloaterbuy.h
* @author James Cook
* @brief LLFloaterBuy class definition
*
* Copyright (c) 2004-$CurrentYear$, Linden Research, Inc.
* $License$
*/
/**
* Floater that appears when buying an object, giving a preview
* of its contents and their permissions.
*/
#ifndef LL_LLFLOATERBUY_H
#define LL_LLFLOATERBUY_H
#include "llfloater.h"
#include "llvoinventorylistener.h"
#include "llsaleinfo.h"
#include "llinventory.h"
class LLViewerObject;
class LLSaleInfo;
class LLFloaterBuy
: public LLFloater, public LLVOInventoryListener
{
public:
static void show(const LLSaleInfo& sale_info);
protected:
LLFloaterBuy();
~LLFloaterBuy();
void reset();
void requestObjectInventories();
/*virtual*/ void inventoryChanged(LLViewerObject* obj,
InventoryObjectList* inv,
S32 serial_num,
void* data);
static void onClickBuy(void*);
static void onClickCancel(void*);
private:
static LLFloaterBuy* sInstance;
LLSaleInfo mSaleInfo;
};
#endif
|