diff options
author | Sergey Bolhovskoy <elzorfox@ya.ru> | 2014-09-16 07:13:53 +0000 |
---|---|---|
committer | Sergey Bolhovskoy <elzorfox@ya.ru> | 2014-09-16 07:13:53 +0000 |
commit | 97e207d17f76808160865b254a5d61c3ab86cebf (patch) | |
tree | e65cbea8b28a842877862c1e86d9f1d5e4aa693b /protocols/VKontakte/src/vk_proto.h | |
parent | 74e64820552463c202c6772bb0f14050e113c66b (diff) |
VKontakte:
Rework menu items
Add ‘Visit profile’ menu items
Remove ‘Reload all messages from vk.com’ for chats
Some cosmetic changes
git-svn-id: http://svn.miranda-ng.org/main/trunk@10467 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/VKontakte/src/vk_proto.h')
-rw-r--r-- | protocols/VKontakte/src/vk_proto.h | 26 |
1 files changed, 24 insertions, 2 deletions
diff --git a/protocols/VKontakte/src/vk_proto.h b/protocols/VKontakte/src/vk_proto.h index 497b4da7c9..466ac13fdb 100644 --- a/protocols/VKontakte/src/vk_proto.h +++ b/protocols/VKontakte/src/vk_proto.h @@ -17,6 +17,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. #define PS_CREATECHAT "/CreateNewChat"
#define PS_GETALLSERVERHISTORY "/GetAllServerHystory"
+#define PS_VISITPROFILE "/VisitProfile"
#define MAXHISTORYMIDSPERONE 200
struct CVkProto;
@@ -191,9 +192,16 @@ struct CVkProto : public PROTO<CVkProto> INT_PTR __cdecl SvcCreateAccMgrUI(WPARAM, LPARAM);
INT_PTR __cdecl SvcGetAvatarInfo(WPARAM, LPARAM);
INT_PTR __cdecl SvcGetAvatarCaps(WPARAM, LPARAM);
- INT_PTR __cdecl SvcGetAllServerHistory(WPARAM wParam, LPARAM);
- INT_PTR __cdecl SetListeningTo(WPARAM, LPARAM);
+ INT_PTR __cdecl SvcSetListeningTo(WPARAM, LPARAM);
+ //==== Menus ==========================================================================
+
+ INT_PTR __cdecl SvcVisitProfile(WPARAM hContact, LPARAM);
+ INT_PTR __cdecl SvcGetAllServerHistory(WPARAM hContact, LPARAM);
+ void InitMenus();
+ void UnInitMenus();
+ int __cdecl OnPreBuildContactMenu(WPARAM hContact, LPARAM);
+
//==== Misc ==========================================================================
TCHAR* GetUserStoredPassword(void);
@@ -249,6 +257,20 @@ private: bool m_bTerminated, m_bServerDelivery;
CMStringA m_prevUrl;
+ enum CLMenuIndexes {
+ CMI_GETALLSERVERHISTORY,
+ CMI_VISITPROFILE,
+ CMI_COUNT
+ };
+ enum ProtoMenuIndexes {
+ PMI_CREATECHAT,
+ PMI_VISITPROFILE,
+ PMI_COUNT
+ };
+
+ HGENMENU g_hContactMenuItems[CMI_COUNT];
+ HGENMENU g_hProtoMenuItems[PMI_COUNT];
+
struct Cookie
{
Cookie(const CMStringA& name, const CMStringA& value, const CMStringA& domain) :
|