summaryrefslogtreecommitdiff
path: root/protocols/Teams/src/main.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2025-03-30 20:04:12 +0300
committerGeorge Hazan <george.hazan@gmail.com>2025-03-30 20:04:12 +0300
commit351a4ae54f9d6e2c1a5b9a6dee08961fbb51e92a (patch)
tree8c0416992e12074612afdf86d33e2c5f85f51bba /protocols/Teams/src/main.cpp
parent5b036d1ae27b1ab12623778fec0aa90b239496c6 (diff)
Teams: synced with existing Skype code base
Diffstat (limited to 'protocols/Teams/src/main.cpp')
-rw-r--r--protocols/Teams/src/main.cpp24
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;
}