diff options
author | Kirill Volinsky <mataes2007@gmail.com> | 2014-06-12 17:49:53 +0000 |
---|---|---|
committer | Kirill Volinsky <mataes2007@gmail.com> | 2014-06-12 17:49:53 +0000 |
commit | 7de38a08b97e0554e318b8c25806cef5d47259e6 (patch) | |
tree | 2400708e16b437245da88623046e96fb833e23b9 /plugins/!Deprecated/ExternalAPI/m_w7ui.h | |
parent | 1b88f240b94fc04aa11ef352b720fda741c0ebc6 (diff) |
headers of not adopted plugins moved to !Deprecated
git-svn-id: http://svn.miranda-ng.org/main/trunk@9438 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/!Deprecated/ExternalAPI/m_w7ui.h')
-rw-r--r-- | plugins/!Deprecated/ExternalAPI/m_w7ui.h | 63 |
1 files changed, 63 insertions, 0 deletions
diff --git a/plugins/!Deprecated/ExternalAPI/m_w7ui.h b/plugins/!Deprecated/ExternalAPI/m_w7ui.h new file mode 100644 index 0000000000..6d8ee28b92 --- /dev/null +++ b/plugins/!Deprecated/ExternalAPI/m_w7ui.h @@ -0,0 +1,63 @@ +#ifndef m_w7ui_h__
+#define m_w7ui_h__
+
+enum
+{
+ MIS_ICOLIB,
+ MIS_GENERAL,
+ MIS_PROTOCOL,
+};
+
+struct MIRANDAJUMPLISTITEM
+{
+ int iconSource;
+ char *iconName;
+ int iconIdx;
+ WCHAR *szTitle;
+ WCHAR *szPrefix;
+ WCHAR *szArgument;
+};
+
+// Force jumplist rebuild
+#define MS_JUMPLIST_REBUILD "w7/JumpList/Rebuild"
+
+// ---
+#define ME_JUMPLIST_BUILDCATEGORIES "w7/JumpList/BuildCategories"
+
+// lParam = (WCHAR *)category name
+#define ME_JUMPLIST_BUILDITEMS "w7/JumpList/BuildItems"
+
+// lParam = (WCHAR *)category name
+#define MS_JUMPLIST_ADDCATEGORY "w7/JumpList/AddCategory"
+
+// lParam = (MIRANDAJUMPLISTITEM *)item
+#define MS_JUMPLIST_ADDITEM "w7/JumpList/AddItem"
+
+// wParam = prefix
+// lParam = argument
+#define ME_JUMPLIST_PROCESS "w7/JumpList/Process"
+
+static void MJumpList_AddCategory(WCHAR *name)
+{
+ CallService(MS_JUMPLIST_ADDCATEGORY, 0, (LPARAM)name);
+}
+
+static void MJumpList_AddItem(char *mir_icon, WCHAR *title, WCHAR *prefix, WCHAR *argument)
+{
+ MIRANDAJUMPLISTITEM item = { MIS_ICOLIB, mir_icon, 0, title, prefix, argument };
+ CallService(MS_JUMPLIST_ADDITEM, 0, (LPARAM)&item);
+}
+
+static void MJumpList_AddItem(int skinicon, WCHAR *title, WCHAR *prefix, WCHAR *argument)
+{
+ MIRANDAJUMPLISTITEM item = { MIS_GENERAL, 0, skinicon, title, prefix, argument };
+ CallService(MS_JUMPLIST_ADDITEM, 0, (LPARAM)&item);
+}
+
+static void MJumpList_AddItem(char *proto, int skinicon, WCHAR *title, WCHAR *prefix, WCHAR *argument)
+{
+ MIRANDAJUMPLISTITEM item = { MIS_PROTOCOL, proto, skinicon, title, prefix, argument };
+ CallService(MS_JUMPLIST_ADDITEM, 0, (LPARAM)&item);
+}
+
+#endif // m_w7ui_h__
|