summaryrefslogtreecommitdiff
path: root/protocols/Skype/src/skype_database.cpp
diff options
context:
space:
mode:
authorAlexander Lantsev <aunsane@gmail.com>2013-04-05 16:08:13 +0000
committerAlexander Lantsev <aunsane@gmail.com>2013-04-05 16:08:13 +0000
commit297626e55974e9082f0fd76b98050fc291b1e3f3 (patch)
treee7791745780f4b6ce7450a53d52cc199811e6f51 /protocols/Skype/src/skype_database.cpp
parentf6c738f20aea081467b7695ecbc7beab51738150 (diff)
- first approach of file transferring
git-svn-id: http://svn.miranda-ng.org/main/trunk@4317 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 9d87b9b2c7..50fac3651f 100644
--- a/protocols/Skype/src/skype_database.cpp
+++ b/protocols/Skype/src/skype_database.cpp
@@ -92,4 +92,24 @@ void CSkypeProto::RaiseMessageSendedEvent(
pre.szMessage = (char *)message;
::CallService(MS_PROTO_CHAINSEND, 0, (LPARAM)&ccs);
+}
+
+void CSkypeProto::RaiseFileReceivedEvent(
+ DWORD timestamp,
+ const char* sid,
+ const char* nick,
+ const char* message)
+{
+ PROTORECVFILET pre = {0};
+
+ CCSDATA ccs = {0};
+ ccs.szProtoService = PSR_FILE;
+ ccs.hContact = this->AddContactBySid(sid, nick);
+ ccs.wParam = 0;
+ ccs.lParam = (LPARAM)&pre;
+ pre.flags = PREF_UTF;
+ pre.timestamp = timestamp;
+ //pre.szMessage = (char *)message;
+
+ ::CallService(MS_PROTO_CHAINRECV, 0, (LPARAM)&ccs);
} \ No newline at end of file