From eeccd4c381243eb8dbbafdbaf43f30eb74b96048 Mon Sep 17 00:00:00 2001 From: Merov Linden Date: Mon, 28 Apr 2014 21:01:57 -0700 Subject: DD-22 : WIP : Cleaned up error handling in GET merchant --- indra/newview/llmarketplacefunctions.h | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) (limited to 'indra/newview/llmarketplacefunctions.h') diff --git a/indra/newview/llmarketplacefunctions.h b/indra/newview/llmarketplacefunctions.h index d5869d3025..42d76a1ba9 100755 --- a/indra/newview/llmarketplacefunctions.h +++ b/indra/newview/llmarketplacefunctions.h @@ -115,6 +115,15 @@ private: // * provide methods to get Marketplace data on any inventory item // * set Marketplace data // * signal Marketplace updates to inventory +namespace SLMErrorCodes +{ + enum eCode + { + SLM_DONE = 200, + SLM_NOT_FOUND = 404, + }; +} + class LLMarketplaceData; // A Marketplace item is known by its tuple @@ -145,7 +154,7 @@ class LLMarketplaceData public: LLMarketplaceData(); - // SLM + // SLM Public typedef boost::signals2::signal status_updated_signal_t; U32 getSLMStatus() const { return mMarketPlaceStatus; } void setSLMStatus(U32 status); @@ -155,7 +164,6 @@ public: //void postSLMListing(); //void modifySLMListing(); //void associateSLMListing(); - std::string getSLMConnectURL(const std::string& route); bool isEmpty() { return (mMarketplaceItems.size() == 0); } @@ -184,9 +192,14 @@ public: S32 getTestMarketplaceID(); private: + // SLM Private + std::string getSLMConnectURL(const std::string& route); + marketplace_items_list_t mMarketplaceItems; + U32 mMarketPlaceStatus; status_updated_signal_t * mStatusUpdatedSignal; + // Merov : This is for test only, waiting for SLM API S32 mTestCurrentMarketplaceID; }; -- cgit v1.2.3