From 78d71d2cad6f243c6ff31d41380b8c5b58407de5 Mon Sep 17 00:00:00 2001 From: Kirill Volinsky Date: Thu, 17 May 2012 17:37:22 +0000 Subject: added some plugins git-svn-id: http://svn.miranda-ng.org/main/trunk@20 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/w7ui/jumplistbuilder.h | 47 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 plugins/w7ui/jumplistbuilder.h (limited to 'plugins/w7ui/jumplistbuilder.h') diff --git a/plugins/w7ui/jumplistbuilder.h b/plugins/w7ui/jumplistbuilder.h new file mode 100644 index 0000000000..f0e1cbd438 --- /dev/null +++ b/plugins/w7ui/jumplistbuilder.h @@ -0,0 +1,47 @@ +#ifndef jumplistbuilder_h__ +#define jumplistbuilder_h__ + +class CJumpListBuilder +{ +public: + static void Load() + { + m_instance = new CJumpListBuilder; + } + + static void Unload() + { + delete m_instance; + } + + static void Rebuild() + { + m_instance->BuildJumpList(); + } + +private: + static CJumpListBuilder *m_instance; + + LIST *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__ -- cgit v1.2.3