summaryrefslogtreecommitdiff
path: root/protocols/Skype/src/skype_events.cpp
diff options
context:
space:
mode:
authorAlexander Lantsev <aunsane@gmail.com>2013-04-20 21:37:28 +0000
committerAlexander Lantsev <aunsane@gmail.com>2013-04-20 21:37:28 +0000
commit303d55bea87c9a33267f5d1b351f883b0da78ddd (patch)
tree279e0e9ba5b780155c9f81ba4a281309d4d4de88 /protocols/Skype/src/skype_events.cpp
parent61ebbb725edaec25bd3c2def9a878657d5b568b4 (diff)
Added notification about incoming skype call
git-svn-id: http://svn.miranda-ng.org/main/trunk@4493 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Skype/src/skype_events.cpp')
-rw-r--r--protocols/Skype/src/skype_events.cpp28
1 files changed, 27 insertions, 1 deletions
diff --git a/protocols/Skype/src/skype_events.cpp b/protocols/Skype/src/skype_events.cpp
index 34f46f8fd6..3b2d781ccc 100644
--- a/protocols/Skype/src/skype_events.cpp
+++ b/protocols/Skype/src/skype_events.cpp
@@ -469,6 +469,32 @@ void CSkypeProto::OnMessage(CConversation::Ref conversation, CMessage::Ref messa
}
break;
+ case CMessage::STARTED_LIVESESSION:
+ //conversation->LeaveLiveSession();
+
+ uint timestamp;
+ message->GetPropTimestamp(timestamp);
+
+ SEString identity;
+ message->GetPropAuthor(identity);
+
+ CContact::Ref author;
+ this->skype->GetContact(identity, author);
+
+ HANDLE hContact = this->AddContact(author);
+
+ wchar_t *message = new wchar_t[14];
+ ::wcscpy(message, L"Incoming call");
+
+ this->AddDataBaseEvent(
+ hContact,
+ SKYPE_DB_EVENT_TYPE_CALL,
+ timestamp,
+ DBEF_UTF,
+ ::wcslen(message) + 1,
+ (PBYTE)message);
+ break;
+
//case CMessage::REQUESTED_AUTH:
// break;
@@ -478,4 +504,4 @@ void CSkypeProto::OnMessage(CConversation::Ref conversation, CMessage::Ref messa
//case CMessage::BLOCKED:
// break;
}
-}
+} \ No newline at end of file