summaryrefslogtreecommitdiff
path: root/plugins/NewsAggregator/Src/NewsAggregator.cpp
diff options
context:
space:
mode:
authorKirill Volinsky <mataes2007@gmail.com>2014-05-07 04:18:34 +0000
committerKirill Volinsky <mataes2007@gmail.com>2014-05-07 04:18:34 +0000
commitb3ec2513d67356a200c56e3f9dd0a3e9e72d26c9 (patch)
tree368b97ad485b10a1283e738e45c7bf19622ebbcf /plugins/NewsAggregator/Src/NewsAggregator.cpp
parent6e1cd4f95a19f076c1fb3fbf938c2978b7afaac8 (diff)
Added hotkey support for checking all feeds
git-svn-id: http://svn.miranda-ng.org/main/trunk@9135 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/NewsAggregator/Src/NewsAggregator.cpp')
-rw-r--r--plugins/NewsAggregator/Src/NewsAggregator.cpp12
1 files changed, 11 insertions, 1 deletions
diff --git a/plugins/NewsAggregator/Src/NewsAggregator.cpp b/plugins/NewsAggregator/Src/NewsAggregator.cpp
index e1bd14eba6..2d045613cd 100644
--- a/plugins/NewsAggregator/Src/NewsAggregator.cpp
+++ b/plugins/NewsAggregator/Src/NewsAggregator.cpp
@@ -71,7 +71,7 @@ extern "C" __declspec(dllexport) int Load(void)
PROTOCOLDESCRIPTOR pd = { PROTOCOLDESCRIPTOR_V3_SIZE };
pd.szName = MODULE;
pd.type = PROTOTYPE_VIRTUAL;
- CallService(MS_PROTO_REGISTERMODULE,0,(LPARAM)&pd);
+ CallService(MS_PROTO_REGISTERMODULE, 0, (LPARAM)&pd);
CreateProtoServiceFunction(MODULE, PS_GETNAME, NewsAggrGetName);
CreateProtoServiceFunction(MODULE, PS_GETCAPS, NewsAggrGetCaps);
@@ -89,6 +89,16 @@ extern "C" __declspec(dllexport) int Load(void)
CreateServiceFunction(MS_NEWSAGGREGATOR_CHECKFEED, CheckFeed);
CreateServiceFunction(MS_NEWSAGGREGATOR_CHANGEFEED, ChangeFeed);
CreateServiceFunction(MS_NEWSAGGREGATOR_ENABLED, EnableDisable);
+
+ HOTKEYDESC hkd = { sizeof(hkd) };
+ hkd.dwFlags = HKD_TCHAR;
+ hkd.pszName = "NewsAggregator/CheckAllFeeds";
+ hkd.ptszDescription = LPGENT("Check All Feeds");
+ hkd.ptszSection = LPGENT("News Aggregator");
+ hkd.pszService = MS_NEWSAGGREGATOR_CHECKALLFEEDS;
+ hkd.DefHotKey = HOTKEYCODE(HOTKEYF_CONTROL+HKCOMB_A, 'O') | HKF_MIRANDA_LOCAL;
+ Hotkey_Register(&hkd);
+
return 0;
}