summaryrefslogtreecommitdiff
path: root/protocols/MSN/src/msn_menu.cpp
diff options
context:
space:
mode:
authorPiotr Piastucki <leech.miranda@gmail.com>2015-05-21 00:18:47 +0000
committerPiotr Piastucki <leech.miranda@gmail.com>2015-05-21 00:18:47 +0000
commit1b673c9c170f595fdf9a0c34029451bbba3d4139 (patch)
treed7e5a7419aae8e9cf8bd268def197ca0748b08d6 /protocols/MSN/src/msn_menu.cpp
parentf5a2a6da0378e95c5eb330e0ec4dc2aeca2e7fd2 (diff)
Removed obsolete code from protocol like P2P, Media Info status messages, Nudge, File transfers, Switchboard.
Currently it is just disabled with #ifdef OBSOLETE in order to keep the code for future reference and still benefit from decreased file size. If MSN protocol doesn't get back these features, code can finally be thrown out then later. Most likely, these features will be gone forever. git-svn-id: http://svn.miranda-ng.org/main/trunk@13726 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/MSN/src/msn_menu.cpp')
-rw-r--r--protocols/MSN/src/msn_menu.cpp24
1 files changed, 17 insertions, 7 deletions
diff --git a/protocols/MSN/src/msn_menu.cpp b/protocols/MSN/src/msn_menu.cpp
index 8675781a19..fc1eb5441d 100644
--- a/protocols/MSN/src/msn_menu.cpp
+++ b/protocols/MSN/src/msn_menu.cpp
@@ -141,7 +141,9 @@ int CMsnProto::OnPrebuildContactMenu(WPARAM hContact, LPARAM)
Menu_ModifyItem(hOpenInboxMenuItem, &mi);
Menu_ShowItem(hOpenInboxMenuItem, emailEnabled);
+#ifdef OBSOLETE
Menu_ShowItem(hNetmeetingMenuItem, !noChat);
+#endif
Menu_ShowItem(hChatInviteMenuItem, !noChat);
}
@@ -157,6 +159,7 @@ int CMsnProto::OnContactDoubleClicked(WPARAM hContact, LPARAM)
return 0;
}
+#ifdef OBSOLETE
/////////////////////////////////////////////////////////////////////////////////////////
// MsnSendNetMeeting - Netmeeting callback function
@@ -192,6 +195,13 @@ INT_PTR CMsnProto::MsnSendNetMeeting(WPARAM wParam, LPARAM)
return 0;
}
+static INT_PTR MsnMenuSendNetMeeting(WPARAM wParam, LPARAM lParam)
+{
+ CMsnProto* ppro = GetProtoInstanceByHContact(wParam);
+ return (ppro) ? ppro->MsnSendNetMeeting(wParam, lParam) : 0;
+}
+#endif
+
/////////////////////////////////////////////////////////////////////////////////////////
// SetNicknameCommand - sets nick name
@@ -372,12 +382,6 @@ static INT_PTR MsnMenuViewProfile(WPARAM wParam, LPARAM lParam)
return (ppro) ? ppro->MsnViewProfile(wParam, lParam) : 0;
}
-static INT_PTR MsnMenuSendNetMeeting(WPARAM wParam, LPARAM lParam)
-{
- CMsnProto* ppro = GetProtoInstanceByHContact(wParam);
- return (ppro) ? ppro->MsnSendNetMeeting(wParam, lParam) : 0;
-}
-
static INT_PTR MsnMenuSendHotmail(WPARAM wParam, LPARAM lParam)
{
CMsnProto* ppro = GetProtoInstanceByHContact(wParam);
@@ -392,7 +396,9 @@ static int MSN_OnPrebuildContactMenu(WPARAM wParam, LPARAM lParam)
else {
Menu_ShowItem(hBlockMenuItem, false);
Menu_ShowItem(hLiveSpaceMenuItem, false);
+#ifdef OBSOLETE
Menu_ShowItem(hNetmeetingMenuItem, false);
+#endif
Menu_ShowItem(hChatInviteMenuItem, false);
Menu_ShowItem(hOpenInboxMenuItem, false);
}
@@ -423,6 +429,7 @@ void MSN_InitContactMenu(void)
mi.pszName = LPGEN("View &Profile");
hLiveSpaceMenuItem = Menu_AddContactMenuItem(&mi);
+#ifdef OBSOLETE
strcpy(tDest, MSN_NETMEETING);
hNetMeeting = CreateServiceFunction(servicefunction, MsnMenuSendNetMeeting);
mi.flags = CMIF_NOTOFFLINE;
@@ -430,6 +437,7 @@ void MSN_InitContactMenu(void)
mi.icolibItem = GetIconHandle(IDI_NETMEETING);
mi.pszName = LPGEN("&Start Netmeeting");
hNetmeetingMenuItem = Menu_AddContactMenuItem(&mi);
+#endif
strcpy(tDest, "/SendHotmail");
hSendHotMail = CreateServiceFunction(servicefunction, MsnMenuSendHotmail);
@@ -446,11 +454,13 @@ void MSN_RemoveContactMenus(void)
{
CallService(MO_REMOVEMENUITEM, (WPARAM)hBlockMenuItem, 0);
CallService(MO_REMOVEMENUITEM, (WPARAM)hLiveSpaceMenuItem, 0);
+#ifdef OBSOLETE
CallService(MO_REMOVEMENUITEM, (WPARAM)hNetmeetingMenuItem, 0);
+ DestroyServiceFunction(hNetMeeting);
+#endif
CallService(MO_REMOVEMENUITEM, (WPARAM)hChatInviteMenuItem, 0);
CallService(MO_REMOVEMENUITEM, (WPARAM)hOpenInboxMenuItem, 0);
- DestroyServiceFunction(hNetMeeting);
DestroyServiceFunction(hBlockCom);
DestroyServiceFunction(hSendHotMail);
DestroyServiceFunction(hInviteChat);