diff options
author | George Hazan <ghazan@miranda.im> | 2022-08-08 19:51:35 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2022-08-08 19:51:35 +0300 |
commit | 0b5fbaf1808367a10424e395fca1231790bc5ae7 (patch) | |
tree | 8a5a43f44362fa95eedcffcb399fa4b4bb430be1 /protocols/JabberG/src/jabber_menu.cpp | |
parent | 7ef04dbd77d561031c318f6066783e1b279d541c (diff) |
Jabber: more voip
Diffstat (limited to 'protocols/JabberG/src/jabber_menu.cpp')
-rw-r--r-- | protocols/JabberG/src/jabber_menu.cpp | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/protocols/JabberG/src/jabber_menu.cpp b/protocols/JabberG/src/jabber_menu.cpp index 18dbc9d928..920d390f1a 100644 --- a/protocols/JabberG/src/jabber_menu.cpp +++ b/protocols/JabberG/src/jabber_menu.cpp @@ -47,7 +47,6 @@ static HGENMENU g_hMenuSendNote; static HGENMENU g_hMenuResourcesRoot;
static HGENMENU g_hMenuResourcesActive;
static HGENMENU g_hMenuResourcesServer;
-static HGENMENU g_hMenuVoiceCall;
struct
{
@@ -122,19 +121,11 @@ static int JabberPrebuildContactMenu(WPARAM hContact, LPARAM lParam) Menu_ShowItem(g_hMenuAddBookmark, false);
Menu_ShowItem(g_hMenuResourcesRoot, false);
Menu_ShowItem(g_hMenuDirectPresence[0], false);
- Menu_ShowItem(g_hMenuVoiceCall, false);
CJabberProto *ppro = CMPlugin::getInstance(hContact);
return(ppro) ? ppro->OnPrebuildContactMenu(hContact, lParam) : 0;
}
-static INT_PTR JabberVOIPCallIinitiate(WPARAM hContact, LPARAM)
-{
- CJabberProto *ppro = CMPlugin::getInstance(hContact);
- ppro->VOIPCallIinitiate(hContact);
- return 0;
-}
-
void g_MenuInit(void)
{
hStatusMenuInit = CreateHookableEvent(ME_JABBER_MENUINIT);
@@ -254,16 +245,6 @@ void g_MenuInit(void) mi.hIcolibItem = g_plugin.getIconHandle(IDI_NODE_SERVER);
g_hMenuResourcesServer = Menu_AddContactMenuItem(&mi);
CreateServiceFunctionParam(mi.pszService, JabberMenuHandleResource, MENUITEM_SERVER);
-
- SET_UID(mi, 0x2fe60fc5, 0x6417, 0x4f37, 0xa0, 0xbe, 0xa0, 0x59, 0x94, 0x11, 0x1d, 0xd9);
- mi.root = nullptr;
- mi.flags = 0;
- mi.hIcolibItem = g_plugin.getIconHandle(IDI_NODE_RSS);
- mi.name.a = LPGEN("Voice call");
- mi.pszService = "Jabber/VOIPCallIinitiate";
- mi.position = -1999902010;
- g_hMenuVoiceCall = Menu_AddContactMenuItem(&mi);
- CreateServiceFunction(mi.pszService, JabberVOIPCallIinitiate);
}
void g_MenuUninit(void)
@@ -315,9 +296,6 @@ int CJabberProto::OnPrebuildContactMenu(WPARAM hContact, LPARAM) Menu_ShowItem(g_hMenuRefresh, true);
}
- if (m_bEnableVOIP)
- Menu_ShowItem(g_hMenuVoiceCall, true);
-
ptrA jid(getUStringA(hContact, "jid"));
if (jid == nullptr)
return 0;
|