diff options
author | ElzorFox <elzorfox@ya.ru> | 2016-10-31 15:01:49 +0500 |
---|---|---|
committer | ElzorFox <elzorfox@ya.ru> | 2016-10-31 15:01:49 +0500 |
commit | 623d05cf20310910bcd924838210504c6a2af2a0 (patch) | |
tree | 4c02cddc38309d301fddf3b970be71ad0371104e /protocols/VKontakte/src/vk_proto.cpp | |
parent | aea29a34173d692e237b1c74de8d10c76b4dfd0d (diff) |
VKontakte: add user deactivate events
Diffstat (limited to 'protocols/VKontakte/src/vk_proto.cpp')
-rw-r--r-- | protocols/VKontakte/src/vk_proto.cpp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/protocols/VKontakte/src/vk_proto.cpp b/protocols/VKontakte/src/vk_proto.cpp index e45cbede37..c50f2559a1 100644 --- a/protocols/VKontakte/src/vk_proto.cpp +++ b/protocols/VKontakte/src/vk_proto.cpp @@ -124,6 +124,7 @@ int CVkProto::OnModulesLoaded(WPARAM, LPARAM) InitPopups();
InitMenus();
+ InitDBCustomEvents();
return 0;
}
@@ -470,6 +471,21 @@ void CVkProto::MsgPopup(MCONTACT hContact, const wchar_t *wszMsg, const wchar_t //////////////////////////////////////////////////////////////////////////////
+void CVkProto::InitDBCustomEvents()
+{
+ // custom event
+ DBEVENTTYPEDESCR dbEventType = { sizeof(dbEventType) };
+ dbEventType.module = m_szModuleName;
+ dbEventType.flags = DETF_HISTORY | DETF_MSGWINDOW;
+
+ dbEventType.eventType = VK_USER_DEACTIVATE_ACTION;
+ dbEventType.descr = Translate("VK user activate/deactivate action");
+ DbEvent_RegisterType(&dbEventType);
+
+}
+
+//////////////////////////////////////////////////////////////////////////////
+
int CVkProto::OnPreShutdown(WPARAM, LPARAM)
{
debugLogA("CVkProto::OnPreShutdown");
|