diff options
author | MikalaiR <nikolay.romanovich@narod.ru> | 2015-07-27 13:48:14 +0000 |
---|---|---|
committer | MikalaiR <nikolay.romanovich@narod.ru> | 2015-07-27 13:48:14 +0000 |
commit | 346d6c8bba413fa13f31f8acfd808c23a4bbccae (patch) | |
tree | 44d5116e7330e5f87579d4826202557d0dc4851e /protocols/SkypeWeb/src/http_request.h | |
parent | 0d289371985e2d099b0de6b8150dbb74fb416e43 (diff) |
SkypeWeb: More fixes & optimizations
git-svn-id: http://svn.miranda-ng.org/main/trunk@14738 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/SkypeWeb/src/http_request.h')
-rw-r--r-- | protocols/SkypeWeb/src/http_request.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/protocols/SkypeWeb/src/http_request.h b/protocols/SkypeWeb/src/http_request.h index b939d9508d..e69355a300 100644 --- a/protocols/SkypeWeb/src/http_request.h +++ b/protocols/SkypeWeb/src/http_request.h @@ -31,6 +31,13 @@ struct INT_VALUE : public VALUE : VALUE(_name), iValue(_value) { }
};
+struct LONG_VALUE : public VALUE
+{
+ LONGLONG llValue;
+ __forceinline LONG_VALUE(LPCSTR _name, LONGLONG _value)
+ : VALUE(_name), llValue(_value) { }
+};
+
struct CHAR_VALUE : public VALUE
{
LPCSTR szValue;
@@ -95,6 +102,12 @@ protected: return *this;
}
+ HttpRequestUrl &operator<<(const LONG_VALUE ¶m)
+ {
+ request.AddUrlParameter("%s=%lld", param.szName, param.llValue);
+ return *this;
+ }
+
HttpRequestUrl &operator<<(const CHAR_VALUE ¶m)
{
request.AddUrlParameter("%s=%s", param.szName, param.szValue);
|