llfloaterbuy.h

Go to the documentation of this file.
00001 
00038 #ifndef LL_LLFLOATERBUY_H
00039 #define LL_LLFLOATERBUY_H
00040 
00041 #include "llfloater.h"
00042 #include "llvoinventorylistener.h"
00043 #include "llsaleinfo.h"
00044 #include "llinventory.h"
00045 
00046 class LLViewerObject;
00047 class LLSaleInfo;
00048 class LLObjectSelection;
00049 
00050 class LLFloaterBuy
00051 : public LLFloater, public LLVOInventoryListener
00052 {
00053 public:
00054         static void show(const LLSaleInfo& sale_info);
00055 
00056 protected:
00057         LLFloaterBuy();
00058         ~LLFloaterBuy();
00059 
00060         void reset();
00061 
00062         void requestObjectInventories();
00063         /*virtual*/ void inventoryChanged(LLViewerObject* obj,
00064                                                                  InventoryObjectList* inv,
00065                                                                  S32 serial_num,
00066                                                                  void* data);
00067 
00068         static void onClickBuy(void*);
00069         static void onClickCancel(void*);
00070 
00071 private:
00072         static LLFloaterBuy* sInstance;
00073 
00074         LLHandle<LLObjectSelection>     mObjectSelection;
00075         LLSaleInfo mSaleInfo;
00076 };
00077 
00078 #endif

Generated on Thu Jul 1 06:08:31 2010 for Second Life Viewer by  doxygen 1.4.7