diff options
Diffstat (limited to 'protocols/Teams/src/main.cpp')
| -rw-r--r-- | protocols/Teams/src/main.cpp | 24 |
1 files changed, 22 insertions, 2 deletions
diff --git a/protocols/Teams/src/main.cpp b/protocols/Teams/src/main.cpp index 5301dc7ecf..d2ac241040 100644 --- a/protocols/Teams/src/main.cpp +++ b/protocols/Teams/src/main.cpp @@ -2,6 +2,8 @@ CMPlugin g_plugin; +char g_szMirVer[100]; +HANDLE g_hCallEvent; HANDLE hExtraXStatus; ///////////////////////////////////////////////////////////////////////////////////////// @@ -33,11 +35,29 @@ extern "C" __declspec(dllexport) const MUUID MirandaInterfaces[] = { MIID_PROTOC ///////////////////////////////////////////////////////////////////////////////////////// static IconItem iconList[] = { - { LPGEN("Protocol icon"), "main", IDI_TEAMS }, + { LPGEN("Protocol icon"), "main", IDI_TEAMS }, + { LPGEN("Create new chat icon"), "conference", IDI_CONFERENCE }, + { LPGEN("Block user icon"), "user_block", IDI_BLOCKUSER }, + { LPGEN("Unblock user icon"), "user_unblock", IDI_UNBLOCKUSER }, + { LPGEN("Incoming call icon"), "inc_call", IDI_CALL }, + { LPGEN("Notification icon"), "notify", IDI_NOTIFY }, + { LPGEN("Error icon"), "error", IDI_ERRORICON }, + { LPGEN("Action icon"), "me_action", IDI_ACTION_ME } + }; int CMPlugin::Load() { - g_plugin.registerIcon("Protocols/" MODULENAME, iconList, MODULENAME); + registerIcon("Protocols/" MODULENAME, iconList, MODULENAME); + + g_hCallEvent = CreateHookableEvent(MODULENAME "/IncomingCall"); + return 0; +} + +///////////////////////////////////////////////////////////////////////////////////////// + +int CMPlugin::Unload() +{ + DestroyHookableEvent(g_hCallEvent); return 0; } |
