@@ -1,4 +1,4 @@
1−import QtQuick.tooling 1.1
1+import QtQuick.tooling 1.2
22
33// This file describes the plugin-supplied types contained in the library.
44// It is used for QML tooling purposes only.
@@ -7,17 +7,10 @@ import QtQuick.tooling 1.1
77// 'qmlplugindump -notrelocatable Unity 0.2 tests/mocks'
88
99Module {
10+ dependencies: ["QtQuick 2.4", "Unity.Indicators 0.1"]
1011 Component {
1112 name: "Categories"
1213 prototype: "unity::shell::scopes::CategoriesInterface"
13− Method {
14− name: "addSpecialCategory"
15− Parameter { name: "categoryId"; type: "string" }
16− Parameter { name: "name"; type: "string" }
17− Parameter { name: "icon"; type: "string" }
18− Parameter { name: "rawTemplate"; type: "string" }
19− Parameter { name: "countObject"; type: "QObject"; isPointer: true }
20− }
2114 Method {
2215 name: "overrideCategoryJson"
2316 type: "bool"
@@ -60,18 +53,6 @@ Module {
6053 Parameter { type: "bool" }
6154 }
6255 }
63− Component {
64− name: "PreviewStack"
65− prototype: "unity::shell::scopes::PreviewStackInterface"
66− exports: ["Unity/PreviewStack 0.2"]
67− isCreatable: false
68− exportMetaObjectRevisions: [0]
69− Method {
70− name: "getPreviewModel"
71− type: "unity::shell::scopes::PreviewModelInterface*"
72− Parameter { name: "index"; type: "int" }
73− }
74− }
7556 Component {
7657 name: "PreviewWidgetModel"
7758 prototype: "unity::shell::scopes::PreviewWidgetModelInterface"
@@ -95,11 +76,11 @@ Module {
9576 prototype: "unity::shell::scopes::ScopeInterface"
9677 exports: ["Unity/MockScope 0.2"]
9778 exportMetaObjectRevisions: [0]
79+ Signal { name: "refreshed" }
9880 Signal {
99− name: "performQuery"
81+ name: "queryPerformed"
10082 Parameter { name: "query"; type: "string" }
10183 }
102− Signal { name: "refreshed" }
10384 Method {
10485 name: "setId"
10586 Parameter { name: "id"; type: "string" }
@@ -115,11 +96,13 @@ Module {
11596 Method {
11697 name: "activate"
11798 Parameter { name: "result"; type: "QVariant" }
99+ Parameter { name: "categoryId"; type: "string" }
118100 }
119101 Method {
120102 name: "preview"
121− type: "PreviewStack*"
103+ type: "PreviewModel*"
122104 Parameter { name: "result"; type: "QVariant" }
105+ Parameter { name: "categoryId"; type: "string" }
123106 }
124107 Method { name: "cancelActivation" }
125108 Method {
@@ -142,6 +125,12 @@ Module {
142125 Parameter { name: "isAltNavigation"; type: "bool" }
143126 }
144127 Method { name: "refresh" }
128+ Method {
129+ name: "activateAction"
130+ Parameter { name: "result"; type: "QVariant" }
131+ Parameter { name: "categoryId"; type: "string" }
132+ Parameter { name: "actionId"; type: "string" }
133+ }
145134 }
146135 Component {
147136 name: "Scopes"
@@ -181,6 +170,10 @@ Module {
181170 Parameter { name: "scopeId"; type: "string" }
182171 Parameter { name: "index"; type: "int" }
183172 }
173+ Method {
174+ name: "closeScope"
175+ Parameter { name: "scope"; type: "unity::shell::scopes::ScopeInterface"; isPointer: true }
176+ }
184177 Method {
185178 name: "getScopeFromAll"
186179 type: "Scope*"
@@ -214,14 +207,6 @@ Module {
214207 Parameter { name: "categoryId"; type: "string" }
215208 Parameter { name: "json"; type: "string" }
216209 }
217− Method {
218− name: "addSpecialCategory"
219− Parameter { name: "categoryId"; type: "string" }
220− Parameter { name: "name"; type: "string" }
221− Parameter { name: "icon"; type: "string" }
222− Parameter { name: "rawTemplate"; type: "string" }
223− Parameter { name: "countObject"; type: "QObject"; isPointer: true }
224− }
225210 }
226211 Component {
227212 name: "unity::shell::scopes::NavigationInterface"
@@ -270,22 +255,6 @@ Module {
270255 Parameter { type: "QVariantMap" }
271256 }
272257 }
273− Component {
274− name: "unity::shell::scopes::PreviewStackInterface"
275− prototype: "QAbstractListModel"
276− Enum {
277− name: "Roles"
278− values: {
279− "RolePreviewModel": 0
280− }
281− }
282− Property { name: "widgetColumnCount"; type: "int" }
283− Method {
284− name: "getPreviewModel"
285− type: "unity::shell::scopes::PreviewModelInterface*"
286− Parameter { name: "index"; type: "int" }
287− }
288− }
289258 Component {
290259 name: "unity::shell::scopes::PreviewWidgetModelInterface"
291260 prototype: "QAbstractListModel"
@@ -316,7 +285,8 @@ Module {
316285 "RoleSummary": 9,
317286 "RoleAttributes": 10,
318287 "RoleBackground": 11,
319− "RoleOverlayColor": 12
288+ "RoleOverlayColor": 12,
289+ "RoleQuickPreviewData": 13
320290 }
321291 }
322292 Property { name: "categoryId"; type: "string" }
@@ -343,6 +313,7 @@ Module {
343313 Property { name: "description"; type: "string"; isReadonly: true }
344314 Property { name: "searchHint"; type: "string"; isReadonly: true }
345315 Property { name: "searchInProgress"; type: "bool"; isReadonly: true }
316+ Property { name: "activationInProgress"; type: "bool"; isReadonly: true }
346317 Property { name: "favorite"; type: "bool" }
347318 Property { name: "shortcut"; type: "string"; isReadonly: true }
348319 Property {
@@ -393,11 +364,13 @@ Module {
393364 Method {
394365 name: "activate"
395366 Parameter { name: "result"; type: "QVariant" }
367+ Parameter { name: "categoryId"; type: "string" }
396368 }
397369 Method {
398370 name: "preview"
399− type: "unity::shell::scopes::PreviewStackInterface*"
371+ type: "unity::shell::scopes::PreviewModelInterface*"
400372 Parameter { name: "result"; type: "QVariant" }
373+ Parameter { name: "categoryId"; type: "string" }
401374 }
402375 Method { name: "cancelActivation" }
403376 Method {
@@ -424,6 +397,12 @@ Module {
424397 Parameter { name: "cannedQuery"; type: "string" }
425398 }
426399 Method { name: "refresh" }
400+ Method {
401+ name: "activateAction"
402+ Parameter { name: "result"; type: "QVariant" }
403+ Parameter { name: "categoryId"; type: "string" }
404+ Parameter { name: "actionId"; type: "string" }
405+ }
427406 }
428407 Component {
429408 name: "unity::shell::scopes::ScopesInterface"
@@ -464,6 +443,10 @@ Module {
464443 Parameter { name: "scopeId"; type: "string" }
465444 Parameter { name: "index"; type: "int" }
466445 }
446+ Method {
447+ name: "closeScope"
448+ Parameter { name: "scope"; type: "unity::shell::scopes::ScopeInterface"; isPointer: true }
449+ }
467450 }
468451 Component {
469452 name: "unity::shell::scopes::SettingsModelInterface"