From a2fd8ed58e918c4d0edacc96990b69d42bdaa8ba Mon Sep 17 00:00:00 2001 From: George Hazan Date: Thu, 24 Jan 2019 22:24:43 +0300 Subject: fixes #1748 (ICQ10: add filetransfer support) --- protocols/ICQ-WIM/src/http.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'protocols/ICQ-WIM/src/http.h') diff --git a/protocols/ICQ-WIM/src/http.h b/protocols/ICQ-WIM/src/http.h index bdcac34f50..0152e41ff4 100644 --- a/protocols/ICQ-WIM/src/http.h +++ b/protocols/ICQ-WIM/src/http.h @@ -36,6 +36,20 @@ public: __forceinline int detail() const { return m_detailCode; } }; +class FileReply +{ + JSONNode *m_root = nullptr; + int m_errorCode = 0; + JSONNode* m_data = nullptr; + +public: + FileReply(NETLIBHTTPREQUEST*); + ~FileReply(); + + __forceinline JSONNode& data() const { return *m_data; } + __forceinline int error() const { return m_errorCode; } +}; + class RobustReply { JSONNode *m_root = nullptr; -- cgit v1.2.3