summaryrefslogtreecommitdiff
path: root/protocols/Skype/src/skype_database.cpp
diff options
context:
space:
mode:
authorAlexander Lantsev <aunsane@gmail.com>2012-12-16 19:08:08 +0000
committerAlexander Lantsev <aunsane@gmail.com>2012-12-16 19:08:08 +0000
commit375155f8dcd69863f1b9a220c5f890596844e99d (patch)
tree7e2a2662539ac8f6175e71096ffe6607ed5bf2af /protocols/Skype/src/skype_database.cpp
parent94bb72aca84414a28e556e5fe406eb3bd8cf8567 (diff)
- reworked message receiving/sending (by another instance)
git-svn-id: http://svn.miranda-ng.org/main/trunk@2756 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Skype/src/skype_database.cpp')
-rw-r--r--protocols/Skype/src/skype_database.cpp20
1 files changed, 20 insertions, 0 deletions
diff --git a/protocols/Skype/src/skype_database.cpp b/protocols/Skype/src/skype_database.cpp
index 6c583374a5..887061afbe 100644
--- a/protocols/Skype/src/skype_database.cpp
+++ b/protocols/Skype/src/skype_database.cpp
@@ -72,4 +72,24 @@ void CSkypeProto::RaiseMessageReceivedEvent(
pre.szMessage = (char *)message;
::CallService(MS_PROTO_CHAINRECV, 0, (LPARAM)&ccs);
+}
+
+void CSkypeProto::RaiseMessageSendedEvent(
+ DWORD timestamp,
+ const char* sid,
+ const char* nick,
+ const char* message)
+{
+ PROTORECVEVENT pre = {0};
+
+ CCSDATA ccs = {0};
+ ccs.szProtoService = PSR_MESSAGE;
+ ccs.hContact = this->AddContactBySid(sid, ::mir_a2u(nick));
+ ccs.wParam = 0;
+ ccs.lParam = (LPARAM)&pre;
+ pre.flags = PREF_UTF;
+ pre.timestamp = timestamp;
+ pre.szMessage = (char *)message;
+
+ ::CallService(MS_PROTO_CHAINSEND, 0, (LPARAM)&ccs);
} \ No newline at end of file