summaryrefslogtreecommitdiff
path: root/protocols/FacebookRM/src/proto.cpp
diff options
context:
space:
mode:
authorRobert Pösel <robyer@seznam.cz>2014-09-19 15:42:26 +0000
committerRobert Pösel <robyer@seznam.cz>2014-09-19 15:42:26 +0000
commit4279c9e641b798b68eb4d520228fc37445264c78 (patch)
treebfae40114dbdb5e7cf826c3e1f8c42afcf097be4 /protocols/FacebookRM/src/proto.cpp
parent9ed60637b814fb9303b4bebefacf8e88e5b52383 (diff)
Facebook: Receive info (message) about missed video call
git-svn-id: http://svn.miranda-ng.org/main/trunk@10520 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/FacebookRM/src/proto.cpp')
-rw-r--r--protocols/FacebookRM/src/proto.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/protocols/FacebookRM/src/proto.cpp b/protocols/FacebookRM/src/proto.cpp
index eed51d5316..2abb8323ee 100644
--- a/protocols/FacebookRM/src/proto.cpp
+++ b/protocols/FacebookRM/src/proto.cpp
@@ -92,6 +92,17 @@ FacebookProto::FacebookProto(const char* proto_name,const TCHAR* username) :
// Set all contacts offline -- in case we crashed
SetAllContactStatuses(ID_STATUS_OFFLINE);
+
+ // register special type of event
+ // there's no need to declare the special service for getting text
+ // because a blob contains only text
+ DBEVENTTYPEDESCR evtype = { sizeof(evtype) };
+ evtype.module = m_szModuleName;
+ evtype.eventType = FACEBOOK_EVENTTYPE_CALL;
+ evtype.descr = LPGEN("Video call");
+ evtype.eventIcon = GetIconHandle("facebook");
+ evtype.flags = DETF_HISTORY | DETF_MSGWINDOW;
+ CallService(MS_DB_EVENT_REGISTERTYPE, 0, (LPARAM)&evtype);
}
FacebookProto::~FacebookProto()