diff options
author | Merov Linden <merov@lindenlab.com> | 2014-05-09 16:48:51 -0700 |
---|---|---|
committer | Merov Linden <merov@lindenlab.com> | 2014-05-09 16:48:51 -0700 |
commit | 4ffa30b533979a2214eb3996c19435f1cd16bc2a (patch) | |
tree | b911388fcb8e1c6aebf6fd89ce94269d440a7b1b /indra/newview/llmarketplacefunctions.h | |
parent | b4ddacaa5a3a6a46c38e13a52254c16956e9ed5a (diff) |
DD-22 : WIP : Implement deleteSLMListing() to cover the Delete /listing/:listing_id route. Avoid recursive calls in deleteListing()
Diffstat (limited to 'indra/newview/llmarketplacefunctions.h')
-rwxr-xr-x | indra/newview/llmarketplacefunctions.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/indra/newview/llmarketplacefunctions.h b/indra/newview/llmarketplacefunctions.h index c3f7693a67..de860bf9ca 100755 --- a/indra/newview/llmarketplacefunctions.h +++ b/indra/newview/llmarketplacefunctions.h @@ -162,6 +162,7 @@ class LLSLMGetListingsResponder; class LLSLMCreateListingsResponder; class LLSLMUpdateListingsResponder; class LLSLMAssociateListingsResponder; +class LLSLMDeleteListingsResponder; class LLMarketplaceData : public LLSingleton<LLMarketplaceData> @@ -172,6 +173,7 @@ public: friend class LLSLMCreateListingsResponder; friend class LLSLMUpdateListingsResponder; friend class LLSLMAssociateListingsResponder; + friend class LLSLMDeleteListingsResponder; LLMarketplaceData(); virtual ~LLMarketplaceData(); @@ -209,7 +211,7 @@ private: // Modify Marketplace data set : each method returns true if the function succeeds, false if error // Used internally only by SLM Responders when data are received from the SLM Server bool addListing(const LLUUID& folder_id, S32 listing_id, const LLUUID& version_id, bool is_listed); - bool deleteListing(const LLUUID& folder_id); + bool deleteListing(const LLUUID& folder_id, bool update_slm = true); bool setListingID(const LLUUID& folder_id, S32 listing_id); bool setVersionFolderID(const LLUUID& folder_id, const LLUUID& version_id); bool setActivationState(const LLUUID& folder_id, bool activate); @@ -220,6 +222,7 @@ private: void createSLMListing(const LLUUID& folder_id); void updateSLMListing(const LLUUID& folder_id, S32 listing_id, const LLUUID& version_id, bool is_listed); void associateSLMListing(const LLUUID& folder_id, S32 listing_id, const LLUUID& version_id); + void deleteSLMListing(S32 listing_id); std::string getSLMConnectURL(const std::string& route); // Handling Marketplace connection and inventory connection |