diff options
Diffstat (limited to 'protocols/Icq10/src/http.h')
-rw-r--r-- | protocols/Icq10/src/http.h | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/protocols/Icq10/src/http.h b/protocols/Icq10/src/http.h index d5173404b7..1270d9445e 100644 --- a/protocols/Icq10/src/http.h +++ b/protocols/Icq10/src/http.h @@ -3,7 +3,7 @@ class CIcqProto; enum IcqConnection { - CONN_NONE = -1, CONN_MAIN = 0, CONN_FETCH = 1, CONN_LAST = 2 + CONN_NONE = -1, CONN_MAIN = 0, CONN_FETCH = 1, CONN_RAPI = 2, CONN_LAST = 3 }; struct AsyncHttpRequest : public MTHttpRequest<CIcqProto> @@ -30,3 +30,17 @@ public: __forceinline int error() const { return m_errorCode; } __forceinline int detail() const { return m_detailCode; } }; + +class RobustReply +{ + JSONNode *m_root = nullptr; + int m_errorCode = 0; + JSONNode* m_results = nullptr; + +public: + RobustReply(NETLIBHTTPREQUEST*); + ~RobustReply(); + + __forceinline JSONNode& results() const { return *m_results; } + __forceinline int error() const { return m_errorCode; } +}; |