diff options
author | Vadim Dashevskiy <watcherhd@gmail.com> | 2012-08-10 12:53:13 +0000 |
---|---|---|
committer | Vadim Dashevskiy <watcherhd@gmail.com> | 2012-08-10 12:53:13 +0000 |
commit | 6c0c45d4e7b8c253aab3ff6d205d66e7b2999d18 (patch) | |
tree | 249ef42484f8b1336075e1b0e3333fe5da60a68d /plugins/!Deprecated/W7UI/src/jumplistbuilder.h | |
parent | 3edfebd9fbf17fd9e77b371ffc14a7ec264bb485 (diff) |
W7UI and ProfileManager moved to deprecated
git-svn-id: http://svn.miranda-ng.org/main/trunk@1427 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/!Deprecated/W7UI/src/jumplistbuilder.h')
-rw-r--r-- | plugins/!Deprecated/W7UI/src/jumplistbuilder.h | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/plugins/!Deprecated/W7UI/src/jumplistbuilder.h b/plugins/!Deprecated/W7UI/src/jumplistbuilder.h new file mode 100644 index 0000000000..6a0bde2fd4 --- /dev/null +++ b/plugins/!Deprecated/W7UI/src/jumplistbuilder.h @@ -0,0 +1,47 @@ +#ifndef jumplistbuilder_h__
+#define jumplistbuilder_h__
+
+class CJumpListBuilder
+{
+public:
+ static void Load(void)
+ {
+ m_instance = new CJumpListBuilder;
+ }
+
+ static void Unload()
+ {
+ delete m_instance;
+ }
+
+ static void Rebuild()
+ {
+ m_instance->BuildJumpList();
+ }
+
+private:
+ static CJumpListBuilder *m_instance;
+
+ LIST<TCHAR> *m_lists;
+ ICustomDestinationList *m_pList;
+ CJumpListArray *m_pCurrentList;
+ TCHAR m_cmdBuf[MAX_PATH * 2];
+
+ HANDLE m_hBuildCategories;
+ HANDLE m_hBuildItems;
+
+ CJumpListBuilder();
+ ~CJumpListBuilder();
+ void BuildJumpList();
+
+ int __cdecl Rebuild(WPARAM wParam, LPARAM lParam);
+ int __cdecl AddCategory(WPARAM wParam, LPARAM lParam);
+ int __cdecl AddItem(WPARAM wParam, LPARAM lParam);
+
+ void BuildCategory(TCHAR *category);
+
+ TCHAR *BuildJumpListCommand(TCHAR *prefix, TCHAR *argument);
+ HANDLE CreateSvc(char *svc, int (__cdecl CJumpListBuilder::*fn)(WPARAM, LPARAM));
+};
+
+#endif // jumplistbuilder_h__
|