summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2020-06-29 18:50:53 +0300
committerGeorge Hazan <ghazan@miranda.im>2020-06-29 18:50:53 +0300
commit61884f90293ee814791f0594d4388a8244b3511e (patch)
tree45e9cc5b99fb9331040e490656104b0de54e3781 /include
parent8b654ebcea0e70b228513b45bedfda08042cfb7b (diff)
PROTO_INTERFACE::GetMenuItem - unified access to all protocol menu items
Diffstat (limited to 'include')
-rw-r--r--include/m_protoint.h13
1 files changed, 10 insertions, 3 deletions
diff --git a/include/m_protoint.h b/include/m_protoint.h
index c4f58111a8..b36948c600 100644
--- a/include/m_protoint.h
+++ b/include/m_protoint.h
@@ -63,6 +63,14 @@ EXTERN_C MIR_APP_DLL(void) ProtoCreateServiceParam(PROTO_INTERFACE *pThis, const
/////////////////////////////////////////////////////////////////////////////////////////
// interface declaration
+enum ProtoMenuItemType
+{
+ PROTO_MENU_REQ_AUTH,
+ PROTO_MENU_GRANT_AUTH,
+ PROTO_MENU_REVOKE_AUTH,
+ PROTO_MENU_LOAD_HISTORY
+};
+
struct MIR_APP_EXPORT PROTO_INTERFACE : public MZeroedObject
{
@@ -79,9 +87,6 @@ public:
HANDLE m_hProtoIcon = 0; // icon to be displayed in the account manager
HNETLIBUSER m_hNetlibUser = 0; // network agent
HGENMENU m_hmiMainMenu = 0; // 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();
@@ -192,6 +197,8 @@ public:
void WindowSubscribe(HWND hwnd);
void WindowUnsubscribe(HWND hwnd);
+ HGENMENU GetMenuItem(ProtoMenuItemType);
+
//////////////////////////////////////////////////////////////////////////////////////
// Virtual functions