summaryrefslogtreecommitdiff
path: root/protocols/SkypeWeb/src/skype_menus.cpp
diff options
context:
space:
mode:
authorMikalaiR <nikolay.romanovich@narod.ru>2015-04-05 19:32:47 +0000
committerMikalaiR <nikolay.romanovich@narod.ru>2015-04-05 19:32:47 +0000
commit3ffa79499e8b9c270fa33c1f1b90ef9b09fe43be (patch)
tree7e44a4b7c319bf4dfc98a4f332a09a78333a765d /protocols/SkypeWeb/src/skype_menus.cpp
parenta5b3b10b0fb74f875aabda2db2e21311c02bdfee (diff)
SkypeWeb: History sync reworked.
git-svn-id: http://svn.miranda-ng.org/main/trunk@12618 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/SkypeWeb/src/skype_menus.cpp')
-rw-r--r--protocols/SkypeWeb/src/skype_menus.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/protocols/SkypeWeb/src/skype_menus.cpp b/protocols/SkypeWeb/src/skype_menus.cpp
index 0bb9092828..3f7885e830 100644
--- a/protocols/SkypeWeb/src/skype_menus.cpp
+++ b/protocols/SkypeWeb/src/skype_menus.cpp
@@ -19,6 +19,7 @@ int CSkypeProto::OnPrebuildContactMenu(WPARAM hContact, LPARAM)
Menu_ShowItem(ContactMenuItems[CMI_AUTH_REQUEST], isCtrlPressed || isAuthNeed);
Menu_ShowItem(ContactMenuItems[CMI_AUTH_GRANT], isCtrlPressed || isGrantNeed);
+ Menu_ShowItem(ContactMenuItems[CMI_GETSERVERHISTORY], true);
return 0;
}
@@ -55,6 +56,13 @@ void CSkypeProto::InitMenus()
mi.icolibItem = LoadSkinnedIconHandle(SKINICON_AUTH_GRANT);
ContactMenuItems[CMI_AUTH_GRANT] = Menu_AddContactMenuItem(&mi);
CreateServiceFunction(mi.pszService, GlobalService<&CSkypeProto::OnGrantAuth>);
+
+ mi.pszService = MODULE"/GetHistory";
+ mi.ptszName = LPGENT("Get server history");
+ mi.position = CMI_POSITION + CMI_GETSERVERHISTORY;
+ mi.icolibItem = LoadSkinnedIconHandle(SKINICON_AUTH_GRANT);
+ ContactMenuItems[CMI_GETSERVERHISTORY] = Menu_AddContactMenuItem(&mi);
+ CreateServiceFunction(mi.pszService, GlobalService<&CSkypeProto::GetContactHistory>);
}
void CSkypeProto::UninitMenus()