diff options
author | George Hazan <ghazan@miranda.im> | 2018-02-09 16:13:50 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2018-02-09 16:13:50 +0300 |
commit | d15bd517fb0eb4bbdb1b118b44398b00bc8f6d6a (patch) | |
tree | ead9ec16a070ed6237975fe00a368fec2491e1ad /include | |
parent | b407cbb7ad5cf00f0420fd91b82969ffcbaba5b5 (diff) |
all duplicate "Request auth", "Grant auth" & "Revoke auth" menu items eliminated
Diffstat (limited to 'include')
-rw-r--r-- | include/m_icq.h | 12 | ||||
-rw-r--r-- | include/m_protoint.h | 5 | ||||
-rw-r--r-- | include/m_protosvc.h | 21 |
3 files changed, 25 insertions, 13 deletions
diff --git a/include/m_icq.h b/include/m_icq.h index b268f2466e..01d5e08b65 100644 --- a/include/m_icq.h +++ b/include/m_icq.h @@ -46,18 +46,6 @@ typedef struct { } ICQSEARCHRESULT;
-// Request authorization
-// wParam = (WPARAM)hContact
-#define MS_REQ_AUTH "/ReqAuth"
-
-// Grant authorization
-// wParam = (WPARAM)hContact;
-#define MS_GRANT_AUTH "/GrantAuth"
-
-// Revoke authorization
-// wParam = (WPARAM)hContact
-#define MS_REVOKE_AUTH "/RevokeAuth"
-
// Open ICQ profile
// wParam = (WPARAM)hContact
#define MS_OPEN_PROFILE "/OpenProfile"
diff --git a/include/m_protoint.h b/include/m_protoint.h index d105f55862..5a7e115a74 100644 --- a/include/m_protoint.h +++ b/include/m_protoint.h @@ -95,7 +95,10 @@ public: char* m_szModuleName; // internal protocol name, also its database module name
HANDLE m_hProtoIcon; // icon to be displayed in the account manager
HNETLIBUSER m_hNetlibUser; // network agent
- HGENMENU m_hMainMenuItem; // if protocol menus are displayed in the main menu, this is the root
+ HGENMENU m_hmiMainMenu; // if protocol menus are displayed in the main menu, this is the root
+ HGENMENU m_hmiReqAuth; // a menu item for /RequestAuth service
+ HGENMENU m_hmiGrantAuth; // a menu item for /GrantAuth service
+ HGENMENU m_hmiRevokeAuth; // a menu item for /RevokeAuth service
PROTO_INTERFACE(const char *pszModuleName, const wchar_t *ptszUserName);
~PROTO_INTERFACE();
diff --git a/include/m_protosvc.h b/include/m_protosvc.h index e376c3d4ab..723b7260ae 100644 --- a/include/m_protosvc.h +++ b/include/m_protosvc.h @@ -575,6 +575,27 @@ struct PROTOFILERESUME #define PS_GETUNREADEMAILCOUNT "/GetUnreadEmailCount"
///////////////////////////////////////////////////////////////////////////////
+// Gets called when a user clicks the "Request auth" menu item
+// wParam = hContact
+// lParam = 0
+
+#define PS_MENU_REQAUTH "/ReqAuth"
+
+///////////////////////////////////////////////////////////////////////////////
+// Gets called when a user clicks the "Grant auth" menu item
+// wParam = hContact
+// lParam = 0
+
+#define PS_MENU_GRANTAUTH "/GrantAuth"
+
+///////////////////////////////////////////////////////////////////////////////
+// Gets called when a user clicks the "Revoke auth" menu item
+// wParam = hContact
+// lParam = 0
+
+#define PS_MENU_REVOKEAUTH "/RevokeAuth"
+
+///////////////////////////////////////////////////////////////////////////////
// SENDING SERVICES
// these should be called with CallContactService()
|