diff options
author | Oz Linden <oz@lindenlab.com> | 2015-10-12 15:24:56 -0400 |
---|---|---|
committer | Oz Linden <oz@lindenlab.com> | 2015-10-12 15:24:56 -0400 |
commit | d17614ca6121dde0ec917664796f263045ad5b6c (patch) | |
tree | 79535b8ab5cfb38302aaa46dc0531ea5a67da9aa /indra/newview/llfloaterperms.h | |
parent | 22e3e8461cf5a36754369c2648b1b4cd252a4d5c (diff) | |
parent | 4312629e7c5749b86add9d42e6e550602f34dbf5 (diff) |
merge changes for 3.8.5-release
Diffstat (limited to 'indra/newview/llfloaterperms.h')
-rwxr-xr-x | indra/newview/llfloaterperms.h | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/indra/newview/llfloaterperms.h b/indra/newview/llfloaterperms.h index 2bb0a19dc1..d3b52c1fe5 100755 --- a/indra/newview/llfloaterperms.h +++ b/indra/newview/llfloaterperms.h @@ -29,6 +29,7 @@ #define LL_LLFLOATERPERMPREFS_H #include "llfloater.h" +#include "llhttpclient.h" class LLFloaterPerms : public LLFloater { @@ -89,4 +90,36 @@ private: bool mNextOwnerTransfer[CAT_LAST]; }; +class LLFloaterPermsRequester +{ +public: + LLFloaterPermsRequester(const std::string url, const LLSD report, int maxRetries); + + static void init(const std::string url, const LLSD report, int maxRetries); + static void finalize(); + static LLFloaterPermsRequester* instance(); + + void start(); + bool retry(); + +private: + int mRetriesCount; + int mMaxRetries; + const std::string mUrl; + const LLSD mReport; +public: + static LLFloaterPermsRequester* sPermsRequester; +}; + +class LLFloaterPermsResponder : public LLHTTPClient::Responder +{ +public: + LLFloaterPermsResponder() : LLHTTPClient::Responder() {} +private: + static std::string sPreviousReason; + + void httpFailure(); + void httpSuccess(); +}; + #endif |