diff options
author | MikalaiR <nikolay.romanovich@narod.ru> | 2016-07-07 11:44:27 +0000 |
---|---|---|
committer | MikalaiR <nikolay.romanovich@narod.ru> | 2016-07-07 11:44:27 +0000 |
commit | 320ae2c5255401fa7237307f59064d49b27282a4 (patch) | |
tree | f45d93de2d7b81645387dfebd308af54b028c5af /protocols/SkypeWeb/src/skype_proto.h | |
parent | 8f5d25a514c3c3bf0080accdfc39b5411ce068c0 (diff) |
SkypeWeb: status messages support
git-svn-id: http://svn.miranda-ng.org/main/trunk@17075 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/SkypeWeb/src/skype_proto.h')
-rw-r--r-- | protocols/SkypeWeb/src/skype_proto.h | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/protocols/SkypeWeb/src/skype_proto.h b/protocols/SkypeWeb/src/skype_proto.h index 63693910f9..e42ddd0008 100644 --- a/protocols/SkypeWeb/src/skype_proto.h +++ b/protocols/SkypeWeb/src/skype_proto.h @@ -54,6 +54,8 @@ public: virtual int __cdecl OnEvent(PROTOEVENTTYPE iEventType, WPARAM wParam, LPARAM lParam);
virtual int __cdecl RecvContacts(MCONTACT hContact, PROTORECVEVENT*);
virtual HANDLE __cdecl SendFile(MCONTACT hContact, const TCHAR *szDescription, TCHAR **ppszFiles);
+ virtual HANDLE __cdecl GetAwayMsg(MCONTACT hContact);
+ virtual int __cdecl SetAwayMsg(int m_iStatus, const TCHAR *msg);
// accounts
static CSkypeProto* InitAccount(const char *protoName, const TCHAR *userName);
@@ -121,7 +123,6 @@ private: } Contacts;
-
static UINT_PTR m_timer;
//---Accounts
@@ -192,10 +193,24 @@ private: void PushRequest(HttpRequest *request, SkypeResponseCallback response);
void PushRequest(HttpRequest *request, SkypeResponseWithArgCallback response, void *arg);
+ template<typename F>
+ void PushRequest(HttpRequest *request, F callback)
+ {
+ SkypeResponseDelegateBase *delegate = new SkypeResponseDelegateLambda<F>(this, callback);
+ requestQueue->Push(request, SkypeHttpResponse, delegate);
+ }
+
void SendRequest(HttpRequest *request);
void SendRequest(HttpRequest *request, SkypeResponseCallback response);
void SendRequest(HttpRequest *request, SkypeResponseWithArgCallback response, void *arg);
+ template<typename F>
+ void SendRequest(HttpRequest *request, F callback)
+ {
+ SkypeResponseDelegateBase *delegate = new SkypeResponseDelegateLambda<F>(this, response);
+ requestQueue->Send(request, SkypeHttpResponse, delegate);
+ }
+
// icons
static IconItemT Icons[];
static HICON GetIcon(int iconId);
|