summaryrefslogtreecommitdiff
path: root/protocols/SkypeWeb/src/skype_proto.h
diff options
context:
space:
mode:
authorAlexander Lantsev <aunsane@gmail.com>2015-04-05 11:10:02 +0000
committerAlexander Lantsev <aunsane@gmail.com>2015-04-05 11:10:02 +0000
commit340d879890f5099c21e36fc147d6432a1ac050bf (patch)
tree5fca5e280b39370dba5252d9d4bfb219bd180420 /protocols/SkypeWeb/src/skype_proto.h
parentbe6edec91cce66e2b77d22bd0e92a5d60ff92d75 (diff)
SteamWeb:
- fixed logout (patck from MikalaiR) - fixed action (/me) sending - added message duplication filter git-svn-id: http://svn.miranda-ng.org/main/trunk@12604 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/SkypeWeb/src/skype_proto.h')
-rw-r--r--protocols/SkypeWeb/src/skype_proto.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/protocols/SkypeWeb/src/skype_proto.h b/protocols/SkypeWeb/src/skype_proto.h
index 52219480d1..27db01cf6d 100644
--- a/protocols/SkypeWeb/src/skype_proto.h
+++ b/protocols/SkypeWeb/src/skype_proto.h
@@ -174,7 +174,12 @@ private:
int __cdecl OnContactDeleted(MCONTACT, LPARAM);
// messages
- int OnReceiveMessage(const char *messageId, const char *from, const char *to, time_t timestamp, char *content, int emoteOffset = 0, bool isRead = false);
+ mir_cs messageSyncLock;
+
+ MEVENT GetMessageFromDB(MCONTACT hContact, DWORD timestamp, const char *messageId);
+ MEVENT AddMessageToDb(MCONTACT hContact, DWORD timestamp, DWORD flags, const char *messageId, char *content, int emoteOffset = 0);
+
+ int OnReceiveMessage(const char *messageId, const char *skypename, time_t timestamp, char *content, int emoteOffset = 0, bool isRead = false);
int SaveMessageToDb(MCONTACT hContact, PROTORECVEVENT *pre);
int OnSendMessage(MCONTACT hContact, int flags, const char *message);
@@ -192,6 +197,7 @@ private:
// utils
bool IsOnline();
+ MEVENT AddEventToDb(MCONTACT hContact, WORD type, DWORD timestamp, DWORD flags, DWORD cbBlob, PBYTE pBlob);
time_t __stdcall IsoToUnixTime(const TCHAR *stamp);
char *GetStringChunk(const char *haystack, size_t len, const char *start, const char *end);
bool IsMe(const char *skypeName);