summaryrefslogtreecommitdiff
path: root/indra/newview/llfloaterbuy.h
diff options
context:
space:
mode:
authorJames Cook <james@lindenlab.com>2007-01-02 08:33:20 +0000
committerJames Cook <james@lindenlab.com>2007-01-02 08:33:20 +0000
commit420b91db29485df39fd6e724e782c449158811cb (patch)
treeb471a94563af914d3ed3edd3e856d21cb1b69945 /indra/newview/llfloaterbuy.h
Print done when done.
Diffstat (limited to 'indra/newview/llfloaterbuy.h')
-rw-r--r--indra/newview/llfloaterbuy.h53
1 files changed, 53 insertions, 0 deletions
diff --git a/indra/newview/llfloaterbuy.h b/indra/newview/llfloaterbuy.h
new file mode 100644
index 0000000000..e90a77b7c9
--- /dev/null
+++ b/indra/newview/llfloaterbuy.h
@@ -0,0 +1,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