blob: 29a3a6eda6fb524ea7199eaad0931d9fd3bfc78c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
#include "common.h"
int CToxProto::OnModulesLoaded(WPARAM, LPARAM)
{
CToxProto::InitIcons();
CToxProto::InitMenus();
CToxProto::InitCustomDbEvents();
hProfileFolderPath = FoldersRegisterCustomPathT("Tox", Translate("Profiles folder"), MIRANDA_USERDATAT);
return 0;
}
void CToxProto::InitCustomDbEvents()
{
DBEVENTTYPEDESCR dbEventType = { sizeof(dbEventType) };
dbEventType.module = MODULE;
dbEventType.flags = DETF_HISTORY | DETF_MSGWINDOW;
dbEventType.eventType = DB_EVENT_ACTION;
dbEventType.descr = Translate("Action");
CallService(MS_DB_EVENT_REGISTERTYPE, 0, (LPARAM)&dbEventType);
dbEventType.eventType = DB_EVENT_AUDIO_CALL;
dbEventType.descr = Translate("Outgoing call");
dbEventType.eventIcon = GetIconHandle("audio_call");
CallService(MS_DB_EVENT_REGISTERTYPE, 0, (LPARAM)&dbEventType);
dbEventType.eventType = DB_EVENT_AUDIO_RING;
dbEventType.descr = Translate("Incoming call");
dbEventType.eventIcon = GetIconHandle("audio_ring");
CallService(MS_DB_EVENT_REGISTERTYPE, 0, (LPARAM)&dbEventType);
dbEventType.eventType = DB_EVENT_AUDIO_START;
dbEventType.descr = Translate("Call started");
dbEventType.eventIcon = GetIconHandle("audio_start");
CallService(MS_DB_EVENT_REGISTERTYPE, 0, (LPARAM)&dbEventType);
dbEventType.eventType = DB_EVENT_AUDIO_END;
dbEventType.descr = Translate("Call ended");
dbEventType.eventIcon = GetIconHandle("audio_end");
CallService(MS_DB_EVENT_REGISTERTYPE, 0, (LPARAM)&dbEventType);
}
|