diff options
author | Merov Linden <merov@lindenlab.com> | 2014-08-25 10:02:13 -0700 |
---|---|---|
committer | Merov Linden <merov@lindenlab.com> | 2014-08-25 10:02:13 -0700 |
commit | 85ec32c05e3474e55db142489f91e978df319951 (patch) | |
tree | b47ce398cec76955f00761eed03787218abffbf1 /indra/newview/llmarketplacefunctions.h | |
parent | 27a6e55319017c93fbc8cd73e184019d120d6589 (diff) |
DD-105 : WIP : Adding (updating...) suffix when SLM transaction in progress
Diffstat (limited to 'indra/newview/llmarketplacefunctions.h')
-rwxr-xr-x | indra/newview/llmarketplacefunctions.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/indra/newview/llmarketplacefunctions.h b/indra/newview/llmarketplacefunctions.h index 5f72f6e78e..1614b610a6 100755 --- a/indra/newview/llmarketplacefunctions.h +++ b/indra/newview/llmarketplacefunctions.h @@ -201,7 +201,8 @@ public: bool isVersionFolder(const LLUUID& folder_id); // returns true if folder_id is a Version folder bool isInActiveFolder(const LLUUID& obj_id); // returns true if the obj_id is buried in an active version folder LLUUID getActiveFolder(const LLUUID& obj_id); // returns the UUID of the active version folder obj_id is in - + bool isUpdating(const LLUUID& folder_id); // returns true if we're waiting from SLM incoming data for folder_id + // Access Marketplace data set : each method returns a default value if the argument can't be found bool getActivationState(const LLUUID& folder_id); S32 getListingID(const LLUUID& folder_id); @@ -212,6 +213,8 @@ public: // Used to flag if stock count values for Marketplace have to be updated bool checkDirtyCount() { if (mDirtyCount) { mDirtyCount = false; return true; } else { return false; } } void setDirtyCount() { mDirtyCount = true; } + void setUpdating(bool isUpdating) { mIsUpdating = isUpdating; } + void setUpdating(const LLUUID& folder_id, bool isUpdating); private: // Modify Marketplace data set : each method returns true if the function succeeds, false if error @@ -238,6 +241,10 @@ private: LLInventoryObserver* mInventoryObserver; bool mDirtyCount; // If true, stock count value need to be updated at the next check + // Update data + bool mIsUpdating; // true if we're globally waiting for updated values from SLM + std::set<LLUUID> mPendingUpdateSet; + // The cache of SLM data (at last...) marketplace_items_list_t mMarketplaceItems; }; |