diff options
author | Alexander Lantsev <aunsane@gmail.com> | 2015-04-04 22:00:18 +0000 |
---|---|---|
committer | Alexander Lantsev <aunsane@gmail.com> | 2015-04-04 22:00:18 +0000 |
commit | 04da76c5fae4f4ef3eda995641b0251671d6edd0 (patch) | |
tree | dd5a96c5a9524e4e2baf94ea854e4a19dfae2471 /protocols/SkypeWeb/src/skype_proto.h | |
parent | c89e8a054ac888b27065916ffde96af73404228c (diff) |
SkypeWeb: support of actions (/me ...)
git-svn-id: http://svn.miranda-ng.org/main/trunk@12600 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/SkypeWeb/src/skype_proto.h')
-rw-r--r-- | protocols/SkypeWeb/src/skype_proto.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/protocols/SkypeWeb/src/skype_proto.h b/protocols/SkypeWeb/src/skype_proto.h index 1be152508d..6de26e05d5 100644 --- a/protocols/SkypeWeb/src/skype_proto.h +++ b/protocols/SkypeWeb/src/skype_proto.h @@ -43,6 +43,7 @@ public: virtual HWND __cdecl SearchAdvanced(HWND owner);
virtual HWND __cdecl CreateExtendedSearchUI(HWND owner);
+ virtual int __cdecl RecvMsg(MCONTACT hContact, PROTORECVEVENT *pre);
virtual int __cdecl RecvContacts(MCONTACT hContact, PROTORECVEVENT*);
virtual int __cdecl RecvFile(MCONTACT hContact, PROTOFILEEVENT*);
virtual int __cdecl RecvUrl(MCONTACT hContact, PROTORECVEVENT*);
@@ -173,17 +174,22 @@ private: int __cdecl OnContactDeleted(MCONTACT, LPARAM);
// messages
- int OnReceiveMessage(const char *from, const char *convLink, time_t timestamp, char *content);
+ int OnReceiveMessage(const char *messageId, const char *from, const char *to, time_t timestamp, char *content, int emoteOffset = 0);
+ int SaveMessageToDb(MCONTACT hContact, PROTORECVEVENT *pre);
+
int OnSendMessage(MCONTACT hContact, int flags, const char *message);
- void __cdecl CSkypeProto::SendMsgThread(void *arg);
void OnMessageSent(const NETLIBHTTPREQUEST *response, void *arg);
+ int __cdecl OnPreCreateMessage(WPARAM, LPARAM lParam);
+
void OnGetServerHistory(const NETLIBHTTPREQUEST *response);
+
//polling
void __cdecl ParsePollData(JSONNODE *data);
void __cdecl PollingThread(void*);
void CSkypeProto::ProcessEndpointPresenceRes(JSONNODE *node);
void CSkypeProto::ProcessUserPresenceRes(JSONNODE *node);
void CSkypeProto::ProcessNewMessageRes(JSONNODE *node);
+
// utils
bool IsOnline();
time_t __stdcall IsoToUnixTime(const TCHAR *stamp);
|