diff options
Diffstat (limited to '')
-rw-r--r-- | linden/indra/newview/llinventorymodel.h | 29 |
1 files changed, 25 insertions, 4 deletions
diff --git a/linden/indra/newview/llinventorymodel.h b/linden/indra/newview/llinventorymodel.h index 9867842..78ab0e3 100644 --- a/linden/indra/newview/llinventorymodel.h +++ b/linden/indra/newview/llinventorymodel.h | |||
@@ -29,10 +29,8 @@ | |||
29 | #ifndef LL_LLINVENTORYMODEL_H | 29 | #ifndef LL_LLINVENTORYMODEL_H |
30 | #define LL_LLINVENTORYMODEL_H | 30 | #define LL_LLINVENTORYMODEL_H |
31 | 31 | ||
32 | #include "llassetstorage.h" | 32 | #include "llassettype.h" |
33 | #include "lldarray.h" | 33 | #include "lldarray.h" |
34 | //#include "llskiplist.h" | ||
35 | //#include "llptrskipmap.h" | ||
36 | #include "lluuid.h" | 34 | #include "lluuid.h" |
37 | #include "llpermissionsflags.h" | 35 | #include "llpermissionsflags.h" |
38 | #include "llstring.h" | 36 | #include "llstring.h" |
@@ -387,7 +385,7 @@ protected: | |||
387 | static void processMoveInventoryItem(LLMessageSystem* msg, void**); | 385 | static void processMoveInventoryItem(LLMessageSystem* msg, void**); |
388 | static void processFetchInventoryReply(LLMessageSystem* msg, void**); | 386 | static void processFetchInventoryReply(LLMessageSystem* msg, void**); |
389 | 387 | ||
390 | bool messageUpdateCore(LLMessageSystem* msg, bool do_accounting, bool highlight_new); | 388 | bool messageUpdateCore(LLMessageSystem* msg, bool do_accounting); |
391 | 389 | ||
392 | protected: | 390 | protected: |
393 | // Varaibles used to track what has changed since the last notify. | 391 | // Varaibles used to track what has changed since the last notify. |
@@ -751,6 +749,29 @@ protected: | |||
751 | }; | 749 | }; |
752 | 750 | ||
753 | //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | 751 | //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
752 | // Class LLInventoryAddedObserver | ||
753 | // | ||
754 | // This class is used as a base class for doing something when | ||
755 | // a new item arrives in inventory. | ||
756 | // It does not watch for a certain UUID, rather it acts when anything is added | ||
757 | // Derive a class from this class and implement the done() method to do | ||
758 | // something useful. | ||
759 | //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
760 | |||
761 | class LLInventoryAddedObserver : public LLInventoryObserver | ||
762 | { | ||
763 | public: | ||
764 | LLInventoryAddedObserver() : mAdded() {} | ||
765 | virtual void changed(U32 mask); | ||
766 | |||
767 | protected: | ||
768 | virtual void done() = 0; | ||
769 | |||
770 | typedef std::vector<LLUUID> item_ref_t; | ||
771 | item_ref_t mAdded; | ||
772 | }; | ||
773 | |||
774 | //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
754 | // Class LLInventoryTransactionObserver | 775 | // Class LLInventoryTransactionObserver |
755 | // | 776 | // |
756 | // Class which can be used as a base class for doing something when an | 777 | // Class which can be used as a base class for doing something when an |