diff options
author | Brad Payne (Vir Linden) <vir@lindenlab.com> | 2014-01-06 17:29:39 -0500 |
---|---|---|
committer | Brad Payne (Vir Linden) <vir@lindenlab.com> | 2014-01-06 17:29:39 -0500 |
commit | 87fc26e0c6d8b09bc3747922fb1c1b9a2d757e98 (patch) | |
tree | 12f9e7c1fc590930013c03516e00dce90e939b40 | |
parent | f6947e9ce5a5225c30dd347ee2e16392411c6d2f (diff) |
SH-4666 WIP - modified LLMaterialsResponder to use httpSuccess()/httpFailure()
-rwxr-xr-x[-rw-r--r--] | indra/newview/llmaterialmgr.cpp | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/indra/newview/llmaterialmgr.cpp b/indra/newview/llmaterialmgr.cpp index 14d3d4e7a8..2e569543bd 100644..100755 --- a/indra/newview/llmaterialmgr.cpp +++ b/indra/newview/llmaterialmgr.cpp @@ -71,8 +71,8 @@ public: LLMaterialsResponder(const std::string& pMethod, const std::string& pCapabilityURL, CallbackFunction pCallback); virtual ~LLMaterialsResponder(); - virtual void result(const LLSD& pContent); - virtual void error(U32 pStatus, const std::string& pReason); + virtual void httpSuccess(); + virtual void httpFailure(); private: std::string mMethod; @@ -92,14 +92,19 @@ LLMaterialsResponder::~LLMaterialsResponder() { } -void LLMaterialsResponder::result(const LLSD& pContent) +void LLMaterialsResponder::httpSuccess() { + const LLSD& pContent = getContent(); + LL_DEBUGS("Materials") << LL_ENDL; mCallback(true, pContent); } -void LLMaterialsResponder::error(U32 pStatus, const std::string& pReason) +void LLMaterialsResponder::httpFailure() { + U32 pStatus = (U32) getStatus(); + const std::string& pReason = getReason(); + LL_WARNS("Materials") << "\n--------------------------------------------------------------------------\n" << mMethod << " Error[" << pStatus << "] cannot access cap '" << MATERIALS_CAPABILITY_NAME |