aboutsummaryrefslogtreecommitdiffstats
path: root/src/winextras/winshobjidl_p.h
diff options
context:
space:
mode:
authorJ-P Nurmi <jpnurmi@digia.com>2013-09-13 18:47:29 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-09-20 10:12:21 +0200
commit0eade30f37980c38b14d5cfa475837d15b69a8c5 (patch)
tree1c4f4232086ede3cb3ad62bed1eca053c2977b52 /src/winextras/winshobjidl_p.h
parent6e81cfd302e48e7ae4ecab44b377eeffaa45cd73 (diff)
Jump Lists: introduce "categories" & hide COM
QWinJumpList now has three built-in categories: Recent, Frequent and Tasks. In addition to that, user can add custom categories. A new type, QWinJumpListCategory, represents all these categories, providing access to items in the category. The former COM-like begin(), append(), commit(), abort() API has been replaced by a more property/ attribute-based API. The jump list automatically invalidates and lazily rebuilds itself behind the scenes. Furthermore, the API has been minimalized for now - restoring the application identifier as a full-fledged property is in the works. Change-Id: I623a658b4b1fcfc881006f67e2300acadb483c97 Reviewed-by: Ivan Vizir <define-true-false@yandex.com> Reviewed-by: Jan Arve Sæther <jan-arve.saether@digia.com>
Diffstat (limited to 'src/winextras/winshobjidl_p.h')
-rw-r--r--src/winextras/winshobjidl_p.h35
1 files changed, 35 insertions, 0 deletions
diff --git a/src/winextras/winshobjidl_p.h b/src/winextras/winshobjidl_p.h
index cd564d7..f0f8857 100644
--- a/src/winextras/winshobjidl_p.h
+++ b/src/winextras/winshobjidl_p.h
@@ -207,4 +207,39 @@ public:
#endif
+#ifndef __IApplicationDocumentLists_INTERFACE_DEFINED__
+#define __IApplicationDocumentLists_INTERFACE_DEFINED__
+
+enum APPDOCLISTTYPE {
+ ADLT_RECENT = 0,
+ ADLT_FREQUENT
+};
+
+extern const GUID IID_IApplicationDocumentLists;
+extern const GUID CLSID_ApplicationDocumentLists;
+
+struct IApplicationDocumentLists : public IUnknown
+{
+public:
+ virtual HRESULT STDMETHODCALLTYPE SetAppID(LPCWSTR pszAppID) = 0;
+ virtual HRESULT STDMETHODCALLTYPE GetList(APPDOCLISTTYPE listtype, UINT cItemsDesired, REFIID riid, void **ppv) = 0;
+};
+#endif
+
+#ifndef __IApplicationDestinations_INTERFACE_DEFINED__
+#define __IApplicationDestinations_INTERFACE_DEFINED__
+
+extern const GUID IID_IApplicationDestinations;
+extern const GUID CLSID_ApplicationDestinations;
+
+struct IApplicationDestinations : public IUnknown
+{
+public:
+ virtual HRESULT STDMETHODCALLTYPE SetAppID(LPCWSTR pszAppID) = 0;
+ virtual HRESULT STDMETHODCALLTYPE RemoveDestination(IUnknown *punk) = 0;
+ virtual HRESULT STDMETHODCALLTYPE RemoveAllDestinations( void) = 0;
+};
+
+#endif
+
#endif // ITASKBARLIST_H