summaryrefslogtreecommitdiff
path: root/protocols/ICQ-WIM/src/http.h
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2019-01-24 22:24:43 +0300
committerGeorge Hazan <ghazan@miranda.im>2019-01-24 22:24:43 +0300
commita2fd8ed58e918c4d0edacc96990b69d42bdaa8ba (patch)
treed5fbe5e45b6441647b8aeb8845eb527546337564 /protocols/ICQ-WIM/src/http.h
parentb60702aa86920ec25f9b700181b153d5fa41cb08 (diff)
fixes #1748 (ICQ10: add filetransfer support)
Diffstat (limited to 'protocols/ICQ-WIM/src/http.h')
-rw-r--r--protocols/ICQ-WIM/src/http.h14
1 files changed, 14 insertions, 0 deletions
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;