diff options
author | Cho <cho@lindenlab.com> | 2014-06-19 01:06:23 +0100 |
---|---|---|
committer | Cho <cho@lindenlab.com> | 2014-06-19 01:06:23 +0100 |
commit | 03abd8dc2033c9166d618c9171975f1dc1d4aaa9 (patch) | |
tree | 50df41a5fb60f10a240c8a9af4cab3edb69d99c5 /indra/newview/llpanelexperiencepicker.cpp | |
parent | 299921de323eb9b6844cd7b6f6b8da3490ee3747 (diff) |
Updated LLRegionExperienceResponder and LLExperienceSearchResponder to use new interface
Diffstat (limited to 'indra/newview/llpanelexperiencepicker.cpp')
-rw-r--r-- | indra/newview/llpanelexperiencepicker.cpp | 32 |
1 files changed, 17 insertions, 15 deletions
diff --git a/indra/newview/llpanelexperiencepicker.cpp b/indra/newview/llpanelexperiencepicker.cpp index 19778cb200..0a572a8a5c 100644 --- a/indra/newview/llpanelexperiencepicker.cpp +++ b/indra/newview/llpanelexperiencepicker.cpp @@ -65,28 +65,30 @@ public: LLExperienceSearchResponder(const LLUUID& id, const LLHandle<LLPanelExperiencePicker>& parent) : mQueryID(id), mParent(parent) { } - void completed(U32 status, const std::string& reason, const LLSD& content) +protected: + /*virtual*/ void httpSuccess() { if(mParent.isDead()) return; - if (isGoodStatus(status)) + + LLPanelExperiencePicker* panel =mParent.get(); + if (panel) { - LLPanelExperiencePicker* panel =mParent.get(); - if (panel) - { - panel->processResponse(mQueryID, content); - } + panel->processResponse(mQueryID, getContent()); } - else - { - LLPanelExperiencePicker* panel =mParent.get(); - if (panel) - { - panel->processResponse(mQueryID, LLSD()); - } - LL_WARNS() << "experience picker failed [status:" << status << "]: " << content << LL_ENDL; + } + /*virtual*/ void httpFailure() + { + if(mParent.isDead()) + return; + + LLPanelExperiencePicker* panel =mParent.get(); + if (panel) + { + panel->processResponse(mQueryID, LLSD()); } + LL_WARNS() << "experience picker failed [status:" << getStatus() << "]: " << getContent() << LL_ENDL; } }; |