summaryrefslogtreecommitdiff
path: root/indra/newview/llmarketplacefunctions.h
diff options
context:
space:
mode:
authorMerov Linden <merov@lindenlab.com>2015-03-05 21:58:57 -0800
committerMerov Linden <merov@lindenlab.com>2015-03-05 21:58:57 -0800
commitdf918447b7f804bb02f81ebc6f5f22babc8bb2d1 (patch)
tree9545a95c72e227009a55d22c0ad35728ceeb1891 /indra/newview/llmarketplacefunctions.h
parent50a5aefb6fcfd0b4c87e5d0aea6c171ae460f3a5 (diff)
DD-339 : Adding loading indicator to marketplace floater when the listings data and inventory data are being fetched
Diffstat (limited to 'indra/newview/llmarketplacefunctions.h')
-rwxr-xr-xindra/newview/llmarketplacefunctions.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/indra/newview/llmarketplacefunctions.h b/indra/newview/llmarketplacefunctions.h
index 755643ccd0..34b650b0ce 100755
--- a/indra/newview/llmarketplacefunctions.h
+++ b/indra/newview/llmarketplacefunctions.h
@@ -73,6 +73,17 @@ namespace MarketplaceStatusCodes
};
}
+namespace MarketplaceFetchCodes
+{
+ enum sCode
+ {
+ MARKET_FETCH_NOT_DONE = 0,
+ MARKET_FETCH_LOADING = 1,
+ MARKET_FETCH_FAILED = 2,
+ MARKET_FETCH_DONE = 3
+ };
+}
+
class LLMarketplaceInventoryImporter
: public LLSingleton<LLMarketplaceInventoryImporter>
@@ -190,6 +201,9 @@ public:
void setSLMStatus(U32 status);
void getSLMListings();
bool isEmpty() { return (mMarketplaceItems.size() == 0); }
+ void setDataFetchedSignal(const status_updated_signal_t::slot_type& cb);
+ void setSLMDataFetched(U32 status);
+ U32 getSLMDataFetched() { return mMarketPlaceDataFetched; }
// High level create/delete/set Marketplace data: each method returns true if the function succeeds, false if error
bool createListing(const LLUUID& folder_id);
@@ -253,6 +267,8 @@ private:
bool mDirtyCount; // If true, stock count value need to be updated at the next check
// Update data
+ U32 mMarketPlaceDataFetched;
+ status_updated_signal_t* mDataFetchedSignal;
std::set<LLUUID> mPendingUpdateSet;
// Listing folders waiting for validation