From 320ae2c5255401fa7237307f59064d49b27282a4 Mon Sep 17 00:00:00 2001 From: MikalaiR Date: Thu, 7 Jul 2016 11:44:27 +0000 Subject: SkypeWeb: status messages support git-svn-id: http://svn.miranda-ng.org/main/trunk@17075 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/SkypeWeb/src/skype_proto.h | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) (limited to 'protocols/SkypeWeb/src/skype_proto.h') 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 + void PushRequest(HttpRequest *request, F callback) + { + SkypeResponseDelegateBase *delegate = new SkypeResponseDelegateLambda(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 + void SendRequest(HttpRequest *request, F callback) + { + SkypeResponseDelegateBase *delegate = new SkypeResponseDelegateLambda(this, response); + requestQueue->Send(request, SkypeHttpResponse, delegate); + } + // icons static IconItemT Icons[]; static HICON GetIcon(int iconId); -- cgit v1.2.3