Merge lp:~unity-team/unity8/manual-qmltypes into lp:unity8
- manual-qmltypes
- Merge into trunk
Status: | Superseded |
---|---|
Proposed branch: | lp:~unity-team/unity8/manual-qmltypes |
Merge into: | lp:unity8 |
Diff against target: |
3574 lines (+3170/-84) 39 files modified
cmake/modules/QmlPlugins.cmake (+32/-25) plugins/AccountsService/AccountsService.qmltypes (+22/-0) plugins/Dash/Dash.qmltypes (+95/-0) plugins/HudClient/HudClient.qmltypes (+91/-0) plugins/LightDM/LightDM.qmltypes (+241/-0) plugins/Powerd/Powerd.qmltypes (+46/-0) plugins/SessionBroadcast/SessionBroadcast.qmltypes (+19/-0) plugins/Ubuntu/DownloadDaemonListener/DownloadDaemonListener.qmltypes (+60/-0) plugins/Ubuntu/Gestures/Gestures.qmltypes (+153/-0) plugins/Unity/Indicators/CMakeLists.txt (+1/-4) plugins/Unity/Indicators/Indicators.qmltypes (+278/-0) plugins/Unity/Indicators/qmldir (+0/-4) plugins/Unity/Launcher/Launcher.qmltypes (+174/-0) plugins/Unity/Session/Session.qmltypes (+25/-0) plugins/Utils/Utils.qmltypes (+143/-0) qml/Panel/Indicators/DefaultIndicatorPage.qml (+2/-2) qml/Panel/Indicators/DefaultIndicatorWidget.qml (+1/-2) qml/Panel/Indicators/IndicatorBase.qml (+1/-1) qml/Panel/Indicators/IndicatorDelegate.qml (+1/-2) tests/mocks/AccountsService/AccountsService.qmltypes (+22/-0) tests/mocks/GSettings.1.0/GSettings.qmltypes (+42/-0) tests/mocks/HudClient/HudClient.qmltypes (+113/-0) tests/mocks/LightDM/LightDM.qmltypes (+241/-0) tests/mocks/Powerd/Powerd.qmltypes (+46/-0) tests/mocks/QMenuModel/QMenuModel.qmltypes (+77/-0) tests/mocks/QtMultimedia/QtMultimedia.qmltypes (+52/-0) tests/mocks/Ubuntu/DownloadDaemonListener/DownloadDaemonListener.qmltypes (+60/-0) tests/mocks/Ubuntu/Thumbnailer/Thumbnailer.qmltypes (+17/-0) tests/mocks/Unity/Application/Application.qmltypes (+313/-0) tests/mocks/Unity/Application/CMakeLists.txt (+2/-1) tests/mocks/Unity/Indicators/Indicators.qmltypes (+210/-0) tests/mocks/Unity/Indicators/MenuItemFactory.qml (+0/-38) tests/mocks/Unity/Indicators/qmldir (+0/-1) tests/mocks/Unity/Launcher/Launcher.qmltypes (+171/-0) tests/mocks/Unity/Notifications/Notifications.qmltypes (+10/-0) tests/mocks/Unity/Unity.qmltypes (+345/-0) tests/qmltests/Panel/Indicators/tst_MenuItemFactory.qml (+3/-2) tests/qmltests/Panel/Indicators/tst_MessageMenuItemFactory.qml (+2/-2) tests/utils/modules/Unity/Test/Test.qmltypes (+59/-0) |
To merge this branch: | bzr merge lp:~unity-team/unity8/manual-qmltypes |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
PS Jenkins bot (community) | continuous-integration | Needs Fixing | |
Michał Sawicz | Pending | ||
Review via email: mp+224561@code.launchpad.net |
This proposal supersedes a proposal from 2014-06-25.
This proposal has been superseded by a proposal from 2014-06-26.
Commit message
Only generate .qmltypes files manually, no need to do it build-time.
It didn't work when cross-compiling either, and required builders to have otherwise unnecessary environment.
Description of the change
Michał Sawicz (saviq) wrote : Posted in a previous version of this proposal | # |
PS Jenkins bot (ps-jenkins) wrote : Posted in a previous version of this proposal | # |
FAILED: Continuous integration, rev:985
http://
Executed test runs:
FAILURE: http://
FAILURE: http://
FAILURE: http://
FAILURE: http://
FAILURE: http://
FAILURE: http://
Click here to trigger a rebuild:
http://
dobey (dobey) wrote : Posted in a previous version of this proposal | # |
On Wed, 2014-06-25 at 22:22 +0000, Michał Sawicz wrote:
> Review: Needs Fixing
>
> We'll need to check those .qmltypes files into bzr, and copy/install them along with qmldir, so there's a bit more work involved here.
>
> They should be generated into the source dirs, not binary.
>
> I'll take this over tomorrow morning if you have no objections :).
Done. :)
PS Jenkins bot (ps-jenkins) wrote : Posted in a previous version of this proposal | # |
FAILED: Continuous integration, rev:986
http://
Executed test runs:
FAILURE: http://
FAILURE: http://
FAILURE: http://
FAILURE: http://
FAILURE: http://
FAILURE: http://
Click here to trigger a rebuild:
http://
- 988. By Michał Sawicz
-
Do not generate qmltypes for the duplicate plugin.
- 989. By Michał Sawicz
-
Merge move-indicator-qml.
PS Jenkins bot (ps-jenkins) wrote : Posted in a previous version of this proposal | # |
FAILED: Continuous integration, rev:987
http://
Executed test runs:
FAILURE: http://
FAILURE: http://
FAILURE: http://
FAILURE: http://
FAILURE: http://
FAILURE: http://
Click here to trigger a rebuild:
http://
PS Jenkins bot (ps-jenkins) wrote : | # |
FAILED: Continuous integration, rev:987
http://
Executed test runs:
SUCCESS: http://
UNSTABLE: http://
SUCCESS: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
Click here to trigger a rebuild:
http://
- 990. By Michał Sawicz
-
Merge trunk.
- 991. By Michał Sawicz
-
Merge trunk.
- 992. By Michał Sawicz
-
Update qmltypes.
- 993. By Michał Sawicz
-
Merge trunk
- 994. By Michał Sawicz
-
Update qmltypes.
Unmerged revisions
Preview Diff
1 | === modified file 'cmake/modules/QmlPlugins.cmake' |
2 | --- cmake/modules/QmlPlugins.cmake 2014-05-15 14:56:56 +0000 |
3 | +++ cmake/modules/QmlPlugins.cmake 2014-06-26 10:07:27 +0000 |
4 | @@ -12,6 +12,12 @@ |
5 | set_target_properties(qmlplugindump PROPERTIES IMPORTED_LOCATION ${qmlplugindump_exe}) |
6 | endif() |
7 | |
8 | +# |
9 | +# A custom target for building the qmltypes files manually. |
10 | +# |
11 | +if (NOT TARGET qmltypes) |
12 | + add_custom_target(qmltypes) |
13 | +endif() |
14 | |
15 | # Creates a target for copying resource files into build dir and optionally installing them. |
16 | # |
17 | @@ -51,6 +57,7 @@ |
18 | ${QMLFILES_SEARCH_PATH}/*.png |
19 | ${QMLFILES_SEARCH_PATH}/*.sci |
20 | ${QMLFILES_SEARCH_PATH}/*.svg |
21 | + ${QMLFILES_SEARCH_PATH}/*.qmltypes |
22 | ${QMLFILES_SEARCH_PATH}/qmldir |
23 | ) |
24 | |
25 | @@ -69,14 +76,14 @@ |
26 | DESTINATION ${QMLFILES_DESTINATION}/${PATH} |
27 | ) |
28 | endif() |
29 | -endmacro(export_qmlfiles) |
30 | - |
31 | - |
32 | -# Creates a target for generating the typeinfo file for a QML plugin and optionally installs it |
33 | -# and additional targets. |
34 | +endmacro() |
35 | + |
36 | + |
37 | +# Creates a target for generating the typeinfo file for a QML plugin and/or installs the plugin |
38 | +# targets. |
39 | # |
40 | # Files will be copied into ${BINARY_DIR}/${path} or ${CMAKE_CURRENT_BINARY_DIR} and installed |
41 | -# into ${DESTINATION}/${path}. If you don't pass BINARY_DIR, it's assumed that current source |
42 | +# into ${DESTINATION}/${path}. If you don't pass BINARY_DIR, it's assumed that current source |
43 | # path ends with ${path}. |
44 | # |
45 | # The generated file will be named after the last segment of the plugin name, e.g. Foo.qmltypes. |
46 | @@ -87,15 +94,18 @@ |
47 | # [TARGET_PREFIX string] # Will be prefixed to the target name |
48 | # [ENVIRONMENT string] # Will be added to qmlplugindump's env |
49 | # [TARGETS target1 [target2 ...]] # Targets to depend on and install (e.g. the plugin shared object) |
50 | +# [NO_TYPES] # Do not create the qmltypes target |
51 | # ) |
52 | # |
53 | # Created target: |
54 | -# - ${TARGET_PREFIX}${plugin}-qmltypes - Generates the qmltypes file in the binary dir. |
55 | +# - ${TARGET_PREFIX}${plugin}-qmltypes - Generates the qmltypes file in the source dir. |
56 | +# It will be made a dependency of the "qmltypes" target. |
57 | |
58 | macro(export_qmlplugin PLUGIN VERSION PATH) |
59 | + set(options NO_TYPES) |
60 | set(single BINARY_DIR DESTINATION TARGET_PREFIX ENVIRONMENT) |
61 | set(multi TARGETS) |
62 | - cmake_parse_arguments(QMLPLUGIN "" "${single}" "${multi}" ${ARGN}) |
63 | + cmake_parse_arguments(QMLPLUGIN "${options}" "${single}" "${multi}" ${ARGN}) |
64 | |
65 | get_target_property(qmlplugindump_executable qmlplugindump LOCATION) |
66 | |
67 | @@ -103,29 +113,26 @@ |
68 | set(qmlplugin_dir ${QMLPLUGIN_BINARY_DIR}/${PATH}) |
69 | else() |
70 | # Find import path to point qmlplugindump at |
71 | - string(REGEX REPLACE "${PATH}$" "" QMLPLUGIN_BINARY_DIR "${CMAKE_CURRENT_BINARY_DIR}") |
72 | + string(REGEX REPLACE "/${PATH}$" "" QMLPLUGIN_BINARY_DIR "${CMAKE_CURRENT_BINARY_DIR}") |
73 | set(qmlplugin_dir ${CMAKE_CURRENT_BINARY_DIR}) |
74 | endif() |
75 | |
76 | - # Find the last segment of the plugin name to use as qmltypes basename |
77 | - string(REGEX MATCH "[^.]+$" plugin_suffix ${PLUGIN}) |
78 | - set(target_prefix ${QMLPLUGIN_TARGET_PREFIX}${PLUGIN}) |
79 | - set(qmltypes_path ${qmlplugin_dir}/${plugin_suffix}.qmltypes) |
80 | - |
81 | - # Only generate typeinfo if not cross compiling |
82 | - if(NOT CMAKE_CROSSCOMPILING) |
83 | - add_custom_target(${target_prefix}-qmltypes ALL |
84 | + if(NOT QMLPLUGIN_NO_TYPES) |
85 | + # Relative path for the module |
86 | + string(REPLACE "${CMAKE_BINARY_DIR}/" "" QMLPLUGIN_MODULE_DIR "${QMLPLUGIN_BINARY_DIR}") |
87 | + |
88 | + # Find the last segment of the plugin name to use as qmltypes basename |
89 | + string(REGEX MATCH "[^.]+$" plugin_suffix ${PLUGIN}) |
90 | + set(target_prefix ${QMLPLUGIN_TARGET_PREFIX}${PLUGIN}) |
91 | + set(qmltypes_path ${CMAKE_CURRENT_SOURCE_DIR}/${plugin_suffix}.qmltypes) |
92 | + |
93 | + add_custom_target(${target_prefix}-qmltypes |
94 | COMMAND env ${QMLPLUGIN_ENVIRONMENT} ${qmlplugindump_executable} -notrelocatable |
95 | - ${PLUGIN} ${VERSION} ${QMLPLUGIN_BINARY_DIR} > ${qmltypes_path} |
96 | + ${PLUGIN} ${VERSION} ${QMLPLUGIN_MODULE_DIR} > ${qmltypes_path} |
97 | + WORKING_DIRECTORY ${CMAKE_BINARY_DIR} |
98 | ) |
99 | add_dependencies(${target_prefix}-qmltypes ${target_prefix}-qmlfiles ${QMLPLUGIN_TARGETS}) |
100 | - |
101 | - if (QMLPLUGIN_DESTINATION) |
102 | - # Install the typeinfo file |
103 | - install(FILES ${qmltypes_path} |
104 | - DESTINATION ${QMLPLUGIN_DESTINATION}/${PATH} |
105 | - ) |
106 | - endif() |
107 | + add_dependencies(qmltypes ${target_prefix}-qmltypes) |
108 | endif() |
109 | |
110 | set_target_properties(${QMLPLUGIN_TARGETS} PROPERTIES |
111 | |
112 | === added file 'plugins/AccountsService/AccountsService.qmltypes' |
113 | --- plugins/AccountsService/AccountsService.qmltypes 1970-01-01 00:00:00 +0000 |
114 | +++ plugins/AccountsService/AccountsService.qmltypes 2014-06-26 10:07:27 +0000 |
115 | @@ -0,0 +1,22 @@ |
116 | +import QtQuick.tooling 1.1 |
117 | + |
118 | +// This file describes the plugin-supplied types contained in the library. |
119 | +// It is used for QML tooling purposes only. |
120 | +// |
121 | +// This file was auto-generated by: |
122 | +// 'qmlplugindump -notrelocatable AccountsService 0.1 plugins' |
123 | + |
124 | +Module { |
125 | + Component { |
126 | + name: "AccountsService" |
127 | + prototype: "QObject" |
128 | + exports: ["AccountsService/AccountsService 0.1"] |
129 | + isCreatable: false |
130 | + isSingleton: true |
131 | + exportMetaObjectRevisions: [0] |
132 | + Property { name: "user"; type: "string" } |
133 | + Property { name: "demoEdges"; type: "bool" } |
134 | + Property { name: "backgroundFile"; type: "string"; isReadonly: true } |
135 | + Property { name: "statsWelcomeScreen"; type: "bool"; isReadonly: true } |
136 | + } |
137 | +} |
138 | |
139 | === added file 'plugins/Dash/Dash.qmltypes' |
140 | --- plugins/Dash/Dash.qmltypes 1970-01-01 00:00:00 +0000 |
141 | +++ plugins/Dash/Dash.qmltypes 2014-06-26 10:07:27 +0000 |
142 | @@ -0,0 +1,95 @@ |
143 | +import QtQuick.tooling 1.1 |
144 | + |
145 | +// This file describes the plugin-supplied types contained in the library. |
146 | +// It is used for QML tooling purposes only. |
147 | +// |
148 | +// This file was auto-generated by: |
149 | +// 'qmlplugindump -notrelocatable Dash 0.1 plugins' |
150 | + |
151 | +Module { |
152 | + Component { |
153 | + name: "AbstractDashView" |
154 | + defaultProperty: "data" |
155 | + prototype: "QQuickItem" |
156 | + Property { name: "model"; type: "QAbstractItemModel"; isPointer: true } |
157 | + Property { name: "delegate"; type: "QQmlComponent"; isPointer: true } |
158 | + Property { name: "columnSpacing"; type: "double" } |
159 | + Property { name: "rowSpacing"; type: "double" } |
160 | + Property { name: "displayMarginBeginning"; type: "double" } |
161 | + Property { name: "displayMarginEnd"; type: "double" } |
162 | + } |
163 | + Component { |
164 | + name: "HorizontalJournal" |
165 | + defaultProperty: "data" |
166 | + prototype: "AbstractDashView" |
167 | + exports: ["Dash/HorizontalJournal 0.1"] |
168 | + exportMetaObjectRevisions: [0] |
169 | + Property { name: "rowHeight"; type: "double" } |
170 | + } |
171 | + Component { |
172 | + name: "ListViewWithPageHeader" |
173 | + defaultProperty: "flickableData" |
174 | + prototype: "QQuickFlickable" |
175 | + exports: ["Dash/ListViewWithPageHeader 0.1"] |
176 | + exportMetaObjectRevisions: [0] |
177 | + Property { name: "model"; type: "QAbstractItemModel"; isPointer: true } |
178 | + Property { name: "delegate"; type: "QQmlComponent"; isPointer: true } |
179 | + Property { name: "pageHeader"; type: "QQuickItem"; isPointer: true } |
180 | + Property { name: "sectionDelegate"; type: "QQmlComponent"; isPointer: true } |
181 | + Property { name: "sectionProperty"; type: "string" } |
182 | + Property { name: "forceNoClip"; type: "bool" } |
183 | + Property { name: "stickyHeaderHeight"; type: "int"; isReadonly: true } |
184 | + Signal { name: "headerChanged" } |
185 | + Method { name: "positionAtBeginning" } |
186 | + Method { name: "showHeader" } |
187 | + Method { |
188 | + name: "item" |
189 | + type: "QQuickItem*" |
190 | + Parameter { name: "modelIndex"; type: "int" } |
191 | + } |
192 | + Method { |
193 | + name: "maximizeVisibleArea" |
194 | + type: "bool" |
195 | + Parameter { name: "modelIndex"; type: "int" } |
196 | + } |
197 | + Method { |
198 | + name: "maximizeVisibleArea" |
199 | + type: "bool" |
200 | + Parameter { name: "modelIndex"; type: "int" } |
201 | + Parameter { name: "itemHeight"; type: "int" } |
202 | + } |
203 | + } |
204 | + Component { |
205 | + name: "OrganicGrid" |
206 | + defaultProperty: "data" |
207 | + prototype: "AbstractDashView" |
208 | + exports: ["Dash/OrganicGrid 0.1"] |
209 | + exportMetaObjectRevisions: [0] |
210 | + Property { name: "smallDelegateSize"; type: "QSizeF" } |
211 | + Property { name: "bigDelegateSize"; type: "QSizeF" } |
212 | + } |
213 | + Component { |
214 | + name: "VerticalJournal" |
215 | + defaultProperty: "data" |
216 | + prototype: "AbstractDashView" |
217 | + exports: ["Dash/VerticalJournal 0.1"] |
218 | + exportMetaObjectRevisions: [0] |
219 | + Property { name: "columnWidth"; type: "double" } |
220 | + } |
221 | + Component { |
222 | + prototype: "QObject" |
223 | + name: "CardCreatorCache" |
224 | + exports: ["CardCreatorCache -1.-1"] |
225 | + exportMetaObjectRevisions: [-1] |
226 | + isComposite: true |
227 | + isCreatable: false |
228 | + isSingleton: true |
229 | + Property { name: "cache"; type: "QVariant" } |
230 | + Method { |
231 | + name: "getCardComponent" |
232 | + type: "QVariant" |
233 | + Parameter { name: "template"; type: "QVariant" } |
234 | + Parameter { name: "components"; type: "QVariant" } |
235 | + } |
236 | + } |
237 | +} |
238 | |
239 | === added file 'plugins/HudClient/HudClient.qmltypes' |
240 | --- plugins/HudClient/HudClient.qmltypes 1970-01-01 00:00:00 +0000 |
241 | +++ plugins/HudClient/HudClient.qmltypes 2014-06-26 10:07:27 +0000 |
242 | @@ -0,0 +1,91 @@ |
243 | +import QtQuick.tooling 1.1 |
244 | + |
245 | +// This file describes the plugin-supplied types contained in the library. |
246 | +// It is used for QML tooling purposes only. |
247 | +// |
248 | +// This file was auto-generated by: |
249 | +// 'qmlplugindump -notrelocatable HudClient 0.1 plugins' |
250 | + |
251 | +Module { |
252 | + Component { |
253 | + name: "DeeListModel" |
254 | + prototype: "QAbstractListModel" |
255 | + Property { name: "name"; type: "string" } |
256 | + Property { name: "synchronized"; type: "bool"; isReadonly: true } |
257 | + Property { name: "count"; type: "int"; isReadonly: true } |
258 | + Signal { |
259 | + name: "nameChanged" |
260 | + Parameter { type: "string" } |
261 | + } |
262 | + Signal { |
263 | + name: "synchronizedChanged" |
264 | + Parameter { type: "bool" } |
265 | + } |
266 | + Signal { |
267 | + name: "roleNamesChanged" |
268 | + Parameter { type: "QHash<int,QByteArray>" } |
269 | + } |
270 | + Method { |
271 | + name: "get" |
272 | + type: "QVariantMap" |
273 | + Parameter { name: "row"; type: "int" } |
274 | + } |
275 | + Method { name: "count"; type: "int" } |
276 | + } |
277 | + Component { |
278 | + name: "HudClient" |
279 | + prototype: "QObject" |
280 | + exports: ["HudClient/HudClient 0.1"] |
281 | + exportMetaObjectRevisions: [0] |
282 | + Property { name: "results"; type: "DeeListModel"; isReadonly: true; isPointer: true } |
283 | + Property { name: "toolBarModel"; type: "QAbstractItemModel"; isReadonly: true; isPointer: true } |
284 | + Signal { name: "voiceQueryLoading" } |
285 | + Signal { name: "voiceQueryListening" } |
286 | + Signal { name: "voiceQueryHeardSomething" } |
287 | + Signal { name: "voiceQueryFailed" } |
288 | + Signal { |
289 | + name: "voiceQueryFinished" |
290 | + Parameter { name: "query"; type: "string" } |
291 | + } |
292 | + Signal { name: "commandExecuted" } |
293 | + Signal { |
294 | + name: "showParametrizedAction" |
295 | + Parameter { name: "action"; type: "string" } |
296 | + Parameter { name: "items"; type: "QVariant" } |
297 | + } |
298 | + Method { |
299 | + name: "executeCommand" |
300 | + Parameter { name: "index"; type: "int" } |
301 | + } |
302 | + Method { |
303 | + name: "setQuery" |
304 | + Parameter { name: "new_query"; type: "string" } |
305 | + } |
306 | + Method { name: "startVoiceQuery" } |
307 | + Method { |
308 | + name: "executeParametrizedAction" |
309 | + Parameter { name: "values"; type: "QVariant" } |
310 | + } |
311 | + Method { |
312 | + name: "updateParametrizedAction" |
313 | + Parameter { name: "values"; type: "QVariant" } |
314 | + } |
315 | + Method { name: "cancelParametrizedAction" } |
316 | + Method { |
317 | + name: "executeToolBarAction" |
318 | + Parameter { name: "action"; type: "HudClientQueryToolbarItems" } |
319 | + } |
320 | + } |
321 | + Component { |
322 | + name: "VolumePeakDetector" |
323 | + prototype: "QObject" |
324 | + exports: ["HudClient/VolumePeakDetector 0.1"] |
325 | + exportMetaObjectRevisions: [0] |
326 | + Property { name: "enabled"; type: "bool" } |
327 | + Property { name: "desiredInterval"; type: "int" } |
328 | + Signal { |
329 | + name: "newPeak" |
330 | + Parameter { name: "volume"; type: "float" } |
331 | + } |
332 | + } |
333 | +} |
334 | |
335 | === added file 'plugins/LightDM/LightDM.qmltypes' |
336 | --- plugins/LightDM/LightDM.qmltypes 1970-01-01 00:00:00 +0000 |
337 | +++ plugins/LightDM/LightDM.qmltypes 2014-06-26 10:07:27 +0000 |
338 | @@ -0,0 +1,241 @@ |
339 | +import QtQuick.tooling 1.1 |
340 | + |
341 | +// This file describes the plugin-supplied types contained in the library. |
342 | +// It is used for QML tooling purposes only. |
343 | +// |
344 | +// This file was auto-generated by: |
345 | +// 'qmlplugindump -notrelocatable LightDM 0.1 plugins' |
346 | + |
347 | +Module { |
348 | + Component { |
349 | + name: "Greeter" |
350 | + prototype: "QObject" |
351 | + exports: ["LightDM/Greeter 0.1"] |
352 | + isCreatable: false |
353 | + isSingleton: true |
354 | + exportMetaObjectRevisions: [0] |
355 | + Property { name: "authenticated"; type: "bool"; isReadonly: true } |
356 | + Property { name: "authenticationUser"; type: "string"; isReadonly: true } |
357 | + Property { name: "promptless"; type: "bool"; isReadonly: true } |
358 | + Signal { |
359 | + name: "showMessage" |
360 | + Parameter { name: "text"; type: "string" } |
361 | + Parameter { name: "isError"; type: "bool" } |
362 | + } |
363 | + Signal { |
364 | + name: "showPrompt" |
365 | + Parameter { name: "text"; type: "string" } |
366 | + Parameter { name: "isSecret"; type: "bool" } |
367 | + } |
368 | + Signal { name: "authenticationComplete" } |
369 | + Signal { |
370 | + name: "authenticationUserChanged" |
371 | + Parameter { name: "user"; type: "string" } |
372 | + } |
373 | + Signal { |
374 | + name: "requestAuthenticationUser" |
375 | + Parameter { name: "user"; type: "string" } |
376 | + } |
377 | + Method { |
378 | + name: "authenticate" |
379 | + Parameter { name: "username"; type: "string" } |
380 | + } |
381 | + Method { name: "authenticate" } |
382 | + Method { |
383 | + name: "respond" |
384 | + Parameter { name: "response"; type: "string" } |
385 | + } |
386 | + Method { |
387 | + name: "startSessionSync" |
388 | + type: "bool" |
389 | + Parameter { name: "session"; type: "string" } |
390 | + } |
391 | + Method { name: "startSessionSync"; type: "bool" } |
392 | + } |
393 | + Component { |
394 | + name: "QAbstractProxyModel" |
395 | + prototype: "QAbstractItemModel" |
396 | + Property { name: "sourceModel"; type: "QAbstractItemModel"; isPointer: true } |
397 | + } |
398 | + Component { |
399 | + name: "QLightDM::UsersModel" |
400 | + prototype: "QAbstractListModel" |
401 | + exports: ["LightDM/UserRoles 0.1"] |
402 | + isCreatable: false |
403 | + exportMetaObjectRevisions: [0] |
404 | + Enum { |
405 | + name: "UserModelRoles" |
406 | + values: { |
407 | + "NameRole": 256, |
408 | + "RealNameRole": 257, |
409 | + "LoggedInRole": 258, |
410 | + "BackgroundRole": 259, |
411 | + "SessionRole": 260, |
412 | + "HasMessagesRole": 261, |
413 | + "ImagePathRole": 262, |
414 | + "BackgroundPathRole": 263 |
415 | + } |
416 | + } |
417 | + } |
418 | + Component { |
419 | + name: "QSortFilterProxyModel" |
420 | + prototype: "QAbstractProxyModel" |
421 | + Property { name: "filterRegExp"; type: "QRegExp" } |
422 | + Property { name: "filterKeyColumn"; type: "int" } |
423 | + Property { name: "dynamicSortFilter"; type: "bool" } |
424 | + Property { name: "filterCaseSensitivity"; type: "Qt::CaseSensitivity" } |
425 | + Property { name: "sortCaseSensitivity"; type: "Qt::CaseSensitivity" } |
426 | + Property { name: "isSortLocaleAware"; type: "bool" } |
427 | + Property { name: "sortRole"; type: "int" } |
428 | + Property { name: "filterRole"; type: "int" } |
429 | + Method { |
430 | + name: "setFilterRegExp" |
431 | + Parameter { name: "pattern"; type: "string" } |
432 | + } |
433 | + Method { |
434 | + name: "setFilterWildcard" |
435 | + Parameter { name: "pattern"; type: "string" } |
436 | + } |
437 | + Method { |
438 | + name: "setFilterFixedString" |
439 | + Parameter { name: "pattern"; type: "string" } |
440 | + } |
441 | + Method { name: "clear" } |
442 | + Method { name: "invalidate" } |
443 | + } |
444 | + Component { |
445 | + name: "QSortFilterProxyModelQML" |
446 | + prototype: "QSortFilterProxyModel" |
447 | + Property { name: "model"; type: "QAbstractItemModel"; isPointer: true } |
448 | + Property { name: "totalCount"; type: "int"; isReadonly: true } |
449 | + Property { name: "count"; type: "int"; isReadonly: true } |
450 | + Property { name: "invertMatch"; type: "bool" } |
451 | + Signal { |
452 | + name: "invertMatchChanged" |
453 | + Parameter { type: "bool" } |
454 | + } |
455 | + Method { |
456 | + name: "get" |
457 | + type: "QVariantMap" |
458 | + Parameter { name: "row"; type: "int" } |
459 | + } |
460 | + Method { |
461 | + name: "data" |
462 | + type: "QVariant" |
463 | + Parameter { name: "row"; type: "int" } |
464 | + Parameter { name: "role"; type: "int" } |
465 | + } |
466 | + Method { name: "count"; type: "int" } |
467 | + Method { |
468 | + name: "findFirst" |
469 | + type: "int" |
470 | + Parameter { name: "role"; type: "int" } |
471 | + Parameter { name: "value"; type: "QVariant" } |
472 | + } |
473 | + Method { |
474 | + name: "mapRowToSource" |
475 | + type: "int" |
476 | + Parameter { name: "row"; type: "int" } |
477 | + } |
478 | + Method { |
479 | + name: "mapFromSource" |
480 | + type: "int" |
481 | + Parameter { name: "row"; type: "int" } |
482 | + } |
483 | + Method { |
484 | + name: "mapToSource" |
485 | + type: "int" |
486 | + Parameter { name: "row"; type: "int" } |
487 | + } |
488 | + } |
489 | + Component { |
490 | + name: "UserMetricsOutput::ColorTheme" |
491 | + prototype: "QObject" |
492 | + Property { name: "start"; type: "QColor"; isReadonly: true } |
493 | + Property { name: "main"; type: "QColor"; isReadonly: true } |
494 | + Property { name: "end"; type: "QColor"; isReadonly: true } |
495 | + Signal { |
496 | + name: "startChanged" |
497 | + Parameter { name: "color"; type: "QColor" } |
498 | + } |
499 | + Signal { |
500 | + name: "mainChanged" |
501 | + Parameter { name: "color"; type: "QColor" } |
502 | + } |
503 | + Signal { |
504 | + name: "endChanged" |
505 | + Parameter { name: "color"; type: "QColor" } |
506 | + } |
507 | + } |
508 | + Component { |
509 | + name: "UserMetricsOutput::UserMetrics" |
510 | + prototype: "QObject" |
511 | + exports: ["LightDM/Infographic 0.1"] |
512 | + isCreatable: false |
513 | + isSingleton: true |
514 | + exportMetaObjectRevisions: [0] |
515 | + Property { name: "label"; type: "string"; isReadonly: true } |
516 | + Property { name: "username"; type: "string" } |
517 | + Property { |
518 | + name: "firstColor" |
519 | + type: "UserMetricsOutput::ColorTheme" |
520 | + isReadonly: true |
521 | + isPointer: true |
522 | + } |
523 | + Property { |
524 | + name: "secondColor" |
525 | + type: "UserMetricsOutput::ColorTheme" |
526 | + isReadonly: true |
527 | + isPointer: true |
528 | + } |
529 | + Property { name: "firstMonth"; type: "QAbstractItemModel"; isReadonly: true; isPointer: true } |
530 | + Property { name: "secondMonth"; type: "QAbstractItemModel"; isReadonly: true; isPointer: true } |
531 | + Property { name: "currentDay"; type: "int"; isReadonly: true } |
532 | + Signal { |
533 | + name: "labelChanged" |
534 | + Parameter { name: "label"; type: "string" } |
535 | + } |
536 | + Signal { |
537 | + name: "usernameChanged" |
538 | + Parameter { name: "username"; type: "string" } |
539 | + } |
540 | + Signal { |
541 | + name: "firstColorChanged" |
542 | + Parameter { name: "color"; type: "ColorTheme"; isPointer: true } |
543 | + } |
544 | + Signal { |
545 | + name: "firstMonthChanged" |
546 | + Parameter { name: "firstMonth"; type: "QAbstractItemModel"; isPointer: true } |
547 | + } |
548 | + Signal { |
549 | + name: "currentDayChanged" |
550 | + Parameter { name: "currentDay"; type: "int" } |
551 | + } |
552 | + Signal { |
553 | + name: "secondColorChanged" |
554 | + Parameter { name: "color"; type: "ColorTheme"; isPointer: true } |
555 | + } |
556 | + Signal { |
557 | + name: "secondMonthChanged" |
558 | + Parameter { name: "secondMonth"; type: "QAbstractItemModel"; isPointer: true } |
559 | + } |
560 | + Signal { name: "nextDataSource" } |
561 | + Signal { name: "readyForDataChange" } |
562 | + Signal { name: "dataAboutToAppear" } |
563 | + Signal { name: "dataAppeared" } |
564 | + Signal { name: "dataAboutToChange" } |
565 | + Signal { name: "dataChanged" } |
566 | + Signal { name: "dataAboutToDisappear" } |
567 | + Signal { name: "dataDisappeared" } |
568 | + Method { name: "nextDataSourceSlot" } |
569 | + Method { name: "readyForDataChangeSlot" } |
570 | + } |
571 | + Component { |
572 | + name: "UsersModel" |
573 | + prototype: "QSortFilterProxyModelQML" |
574 | + exports: ["LightDM/Users 0.1"] |
575 | + isCreatable: false |
576 | + isSingleton: true |
577 | + exportMetaObjectRevisions: [0] |
578 | + } |
579 | +} |
580 | |
581 | === added file 'plugins/Powerd/Powerd.qmltypes' |
582 | --- plugins/Powerd/Powerd.qmltypes 1970-01-01 00:00:00 +0000 |
583 | +++ plugins/Powerd/Powerd.qmltypes 2014-06-26 10:07:27 +0000 |
584 | @@ -0,0 +1,46 @@ |
585 | +import QtQuick.tooling 1.1 |
586 | + |
587 | +// This file describes the plugin-supplied types contained in the library. |
588 | +// It is used for QML tooling purposes only. |
589 | +// |
590 | +// This file was auto-generated by: |
591 | +// 'qmlplugindump -notrelocatable Powerd 0.1 plugins' |
592 | + |
593 | +Module { |
594 | + Component { |
595 | + name: "Powerd" |
596 | + prototype: "QObject" |
597 | + exports: ["Powerd/Powerd 0.1"] |
598 | + isCreatable: false |
599 | + isSingleton: true |
600 | + exportMetaObjectRevisions: [0] |
601 | + Enum { |
602 | + name: "DisplayFlag" |
603 | + values: { |
604 | + "UseProximity": 1, |
605 | + "DisableAutoBrightness": 2, |
606 | + "Bright": 4 |
607 | + } |
608 | + } |
609 | + Enum { |
610 | + name: "DisplayFlags" |
611 | + values: { |
612 | + "UseProximity": 1, |
613 | + "DisableAutoBrightness": 2, |
614 | + "Bright": 4 |
615 | + } |
616 | + } |
617 | + Enum { |
618 | + name: "Status" |
619 | + values: { |
620 | + "Off": 0, |
621 | + "On": 1 |
622 | + } |
623 | + } |
624 | + Signal { |
625 | + name: "displayPowerStateChange" |
626 | + Parameter { name: "status"; type: "int" } |
627 | + Parameter { name: "flags"; type: "uint" } |
628 | + } |
629 | + } |
630 | +} |
631 | |
632 | === added file 'plugins/SessionBroadcast/SessionBroadcast.qmltypes' |
633 | --- plugins/SessionBroadcast/SessionBroadcast.qmltypes 1970-01-01 00:00:00 +0000 |
634 | +++ plugins/SessionBroadcast/SessionBroadcast.qmltypes 2014-06-26 10:07:27 +0000 |
635 | @@ -0,0 +1,19 @@ |
636 | +import QtQuick.tooling 1.1 |
637 | + |
638 | +// This file describes the plugin-supplied types contained in the library. |
639 | +// It is used for QML tooling purposes only. |
640 | +// |
641 | +// This file was auto-generated by: |
642 | +// 'qmlplugindump -notrelocatable SessionBroadcast 0.1 plugins' |
643 | + |
644 | +Module { |
645 | + Component { |
646 | + name: "SessionBroadcast" |
647 | + prototype: "QObject" |
648 | + exports: ["SessionBroadcast/SessionBroadcast 0.1"] |
649 | + isCreatable: false |
650 | + isSingleton: true |
651 | + exportMetaObjectRevisions: [0] |
652 | + Signal { name: "showHome" } |
653 | + } |
654 | +} |
655 | |
656 | === added file 'plugins/Ubuntu/DownloadDaemonListener/DownloadDaemonListener.qmltypes' |
657 | --- plugins/Ubuntu/DownloadDaemonListener/DownloadDaemonListener.qmltypes 1970-01-01 00:00:00 +0000 |
658 | +++ plugins/Ubuntu/DownloadDaemonListener/DownloadDaemonListener.qmltypes 2014-06-26 10:07:27 +0000 |
659 | @@ -0,0 +1,60 @@ |
660 | +import QtQuick.tooling 1.1 |
661 | + |
662 | +// This file describes the plugin-supplied types contained in the library. |
663 | +// It is used for QML tooling purposes only. |
664 | +// |
665 | +// This file was auto-generated by: |
666 | +// 'qmlplugindump -notrelocatable Ubuntu.DownloadDaemonListener 0.1 plugins' |
667 | + |
668 | +Module { |
669 | + Component { |
670 | + name: "DownloadTracker" |
671 | + prototype: "QObject" |
672 | + exports: ["Ubuntu.DownloadDaemonListener/DownloadTracker 0.1"] |
673 | + exportMetaObjectRevisions: [0] |
674 | + Property { name: "service"; type: "string" } |
675 | + Property { name: "dbusPath"; type: "string" } |
676 | + Property { name: "serviceReady"; type: "bool"; isReadonly: true } |
677 | + Signal { |
678 | + name: "serviceChanged" |
679 | + Parameter { name: "service"; type: "string" } |
680 | + } |
681 | + Signal { |
682 | + name: "dbusPathChanged" |
683 | + Parameter { name: "dbusPath"; type: "string" } |
684 | + } |
685 | + Signal { |
686 | + name: "serviceReadyChanged" |
687 | + Parameter { name: "serviceReady"; type: "bool" } |
688 | + } |
689 | + Signal { |
690 | + name: "canceled" |
691 | + Parameter { name: "success"; type: "bool" } |
692 | + } |
693 | + Signal { |
694 | + name: "error" |
695 | + Parameter { name: "error"; type: "string" } |
696 | + } |
697 | + Signal { |
698 | + name: "finished" |
699 | + Parameter { name: "path"; type: "string" } |
700 | + } |
701 | + Signal { |
702 | + name: "paused" |
703 | + Parameter { name: "success"; type: "bool" } |
704 | + } |
705 | + Signal { |
706 | + name: "progress" |
707 | + Parameter { name: "received"; type: "qulonglong" } |
708 | + Parameter { name: "total"; type: "qulonglong" } |
709 | + } |
710 | + Signal { |
711 | + name: "resumed" |
712 | + Parameter { name: "success"; type: "bool" } |
713 | + } |
714 | + Signal { |
715 | + name: "started" |
716 | + Parameter { name: "success"; type: "bool" } |
717 | + } |
718 | + } |
719 | +} |
720 | |
721 | === added file 'plugins/Ubuntu/Gestures/Gestures.qmltypes' |
722 | --- plugins/Ubuntu/Gestures/Gestures.qmltypes 1970-01-01 00:00:00 +0000 |
723 | +++ plugins/Ubuntu/Gestures/Gestures.qmltypes 2014-06-26 10:07:27 +0000 |
724 | @@ -0,0 +1,153 @@ |
725 | +import QtQuick.tooling 1.1 |
726 | + |
727 | +// This file describes the plugin-supplied types contained in the library. |
728 | +// It is used for QML tooling purposes only. |
729 | +// |
730 | +// This file was auto-generated by: |
731 | +// 'qmlplugindump -notrelocatable Ubuntu.Gestures 0.1 plugins' |
732 | + |
733 | +Module { |
734 | + Component { |
735 | + name: "AxisVelocityCalculator" |
736 | + prototype: "QObject" |
737 | + exports: ["Ubuntu.Gestures/AxisVelocityCalculator 0.1"] |
738 | + exportMetaObjectRevisions: [0] |
739 | + Property { name: "trackedPosition"; type: "double" } |
740 | + Signal { |
741 | + name: "trackedPositionChanged" |
742 | + Parameter { name: "value"; type: "double" } |
743 | + } |
744 | + Method { name: "calculate"; type: "double" } |
745 | + Method { name: "reset" } |
746 | + } |
747 | + Component { |
748 | + name: "Direction" |
749 | + prototype: "QObject" |
750 | + exports: ["Ubuntu.Gestures/Direction 0.1"] |
751 | + isCreatable: false |
752 | + isSingleton: true |
753 | + exportMetaObjectRevisions: [0] |
754 | + Enum { |
755 | + name: "Type" |
756 | + values: { |
757 | + "Rightwards": 0, |
758 | + "Leftwards": 1, |
759 | + "Downwards": 2, |
760 | + "Upwards": 3 |
761 | + } |
762 | + } |
763 | + Method { |
764 | + name: "isHorizontal" |
765 | + type: "bool" |
766 | + Parameter { name: "type"; type: "Direction::Type" } |
767 | + } |
768 | + Method { |
769 | + name: "isVertical" |
770 | + type: "bool" |
771 | + Parameter { name: "type"; type: "Direction::Type" } |
772 | + } |
773 | + Method { |
774 | + name: "isPositive" |
775 | + type: "bool" |
776 | + Parameter { name: "type"; type: "Direction::Type" } |
777 | + } |
778 | + } |
779 | + Component { |
780 | + name: "DirectionalDragArea" |
781 | + defaultProperty: "data" |
782 | + prototype: "QQuickItem" |
783 | + exports: ["Ubuntu.Gestures/DirectionalDragArea 0.1"] |
784 | + exportMetaObjectRevisions: [0] |
785 | + Enum { |
786 | + name: "Status" |
787 | + values: { |
788 | + "WaitingForTouch": 0, |
789 | + "Undecided": 1, |
790 | + "Recognized": 2 |
791 | + } |
792 | + } |
793 | + Property { name: "direction"; type: "Direction::Type" } |
794 | + Property { name: "distance"; type: "double"; isReadonly: true } |
795 | + Property { name: "sceneDistance"; type: "double"; isReadonly: true } |
796 | + Property { name: "touchX"; type: "double"; isReadonly: true } |
797 | + Property { name: "touchY"; type: "double"; isReadonly: true } |
798 | + Property { name: "touchSceneX"; type: "double"; isReadonly: true } |
799 | + Property { name: "touchSceneY"; type: "double"; isReadonly: true } |
800 | + Property { name: "status"; type: "Status"; isReadonly: true } |
801 | + Property { name: "dragging"; type: "bool"; isReadonly: true } |
802 | + Property { name: "maxDeviation"; type: "double" } |
803 | + Property { name: "wideningAngle"; type: "double" } |
804 | + Property { name: "distanceThreshold"; type: "double" } |
805 | + Property { name: "minSpeed"; type: "double" } |
806 | + Property { name: "maxSilenceTime"; type: "int" } |
807 | + Property { name: "compositionTime"; type: "int" } |
808 | + Signal { |
809 | + name: "directionChanged" |
810 | + Parameter { name: "direction"; type: "Direction::Type" } |
811 | + } |
812 | + Signal { |
813 | + name: "statusChanged" |
814 | + Parameter { name: "value"; type: "Status" } |
815 | + } |
816 | + Signal { |
817 | + name: "draggingChanged" |
818 | + Parameter { name: "value"; type: "bool" } |
819 | + } |
820 | + Signal { |
821 | + name: "distanceChanged" |
822 | + Parameter { name: "value"; type: "double" } |
823 | + } |
824 | + Signal { |
825 | + name: "sceneDistanceChanged" |
826 | + Parameter { name: "value"; type: "double" } |
827 | + } |
828 | + Signal { |
829 | + name: "maxDeviationChanged" |
830 | + Parameter { name: "value"; type: "double" } |
831 | + } |
832 | + Signal { |
833 | + name: "wideningAngleChanged" |
834 | + Parameter { name: "value"; type: "double" } |
835 | + } |
836 | + Signal { |
837 | + name: "distanceThresholdChanged" |
838 | + Parameter { name: "value"; type: "double" } |
839 | + } |
840 | + Signal { |
841 | + name: "minSpeedChanged" |
842 | + Parameter { name: "value"; type: "double" } |
843 | + } |
844 | + Signal { |
845 | + name: "maxSilenceTimeChanged" |
846 | + Parameter { name: "value"; type: "int" } |
847 | + } |
848 | + Signal { |
849 | + name: "compositionTimeChanged" |
850 | + Parameter { name: "value"; type: "int" } |
851 | + } |
852 | + Signal { |
853 | + name: "touchXChanged" |
854 | + Parameter { name: "value"; type: "double" } |
855 | + } |
856 | + Signal { |
857 | + name: "touchYChanged" |
858 | + Parameter { name: "value"; type: "double" } |
859 | + } |
860 | + Signal { |
861 | + name: "touchSceneXChanged" |
862 | + Parameter { name: "value"; type: "double" } |
863 | + } |
864 | + Signal { |
865 | + name: "touchSceneYChanged" |
866 | + Parameter { name: "value"; type: "double" } |
867 | + } |
868 | + } |
869 | + Component { |
870 | + name: "PressedOutsideNotifier" |
871 | + defaultProperty: "data" |
872 | + prototype: "QQuickItem" |
873 | + exports: ["Ubuntu.Gestures/PressedOutsideNotifier 0.1"] |
874 | + exportMetaObjectRevisions: [0] |
875 | + Signal { name: "pressedOutside" } |
876 | + } |
877 | +} |
878 | |
879 | === modified file 'plugins/Unity/Indicators/CMakeLists.txt' |
880 | --- plugins/Unity/Indicators/CMakeLists.txt 2014-05-02 22:57:00 +0000 |
881 | +++ plugins/Unity/Indicators/CMakeLists.txt 2014-06-26 10:07:27 +0000 |
882 | @@ -51,7 +51,4 @@ |
883 | |
884 | qt5_use_modules(IndicatorsQml Core Qml Quick) |
885 | |
886 | -add_unity8_plugin(Unity.Indicators 0.1 Unity/Indicators |
887 | - SEARCH_PATH qml |
888 | - TARGETS IndicatorsQml |
889 | -) |
890 | +add_unity8_plugin(Unity.Indicators 0.1 Unity/Indicators TARGETS IndicatorsQml) |
891 | |
892 | === renamed file 'plugins/Unity/Indicators/qml/CachedUnityMenuModel.qml' => 'plugins/Unity/Indicators/CachedUnityMenuModel.qml' |
893 | === added file 'plugins/Unity/Indicators/Indicators.qmltypes' |
894 | --- plugins/Unity/Indicators/Indicators.qmltypes 1970-01-01 00:00:00 +0000 |
895 | +++ plugins/Unity/Indicators/Indicators.qmltypes 2014-06-26 10:07:27 +0000 |
896 | @@ -0,0 +1,278 @@ |
897 | +import QtQuick.tooling 1.1 |
898 | + |
899 | +// This file describes the plugin-supplied types contained in the library. |
900 | +// It is used for QML tooling purposes only. |
901 | +// |
902 | +// This file was auto-generated by: |
903 | +// 'qmlplugindump -notrelocatable Unity.Indicators 0.1 plugins' |
904 | + |
905 | +Module { |
906 | + Component { |
907 | + name: "ActionState" |
908 | + prototype: "QObject" |
909 | + exports: ["Unity.Indicators/ActionState 0.1"] |
910 | + isCreatable: false |
911 | + exportMetaObjectRevisions: [0] |
912 | + Enum { |
913 | + name: "ActionStates" |
914 | + values: { |
915 | + "Label": 0, |
916 | + "IconSource": 1, |
917 | + "AccessableName": 2, |
918 | + "Visible": 3 |
919 | + } |
920 | + } |
921 | + } |
922 | + Component { name: "ActionStateParser"; prototype: "QObject" } |
923 | + Component { |
924 | + name: "FlatMenuProxyModelRole" |
925 | + prototype: "QObject" |
926 | + exports: ["Unity.Indicators/FlatMenuProxyModelRole 0.1"] |
927 | + isCreatable: false |
928 | + exportMetaObjectRevisions: [0] |
929 | + Enum { |
930 | + name: "Roles" |
931 | + values: { |
932 | + "Action": 1, |
933 | + "Label": 2, |
934 | + "Extra": 3, |
935 | + "Depth": 4, |
936 | + "hasSection": 5, |
937 | + "hasSubMenu": 6 |
938 | + } |
939 | + } |
940 | + } |
941 | + Component { |
942 | + name: "IndicatorsManager" |
943 | + prototype: "QObject" |
944 | + exports: ["Unity.Indicators/IndicatorsManager 0.1"] |
945 | + exportMetaObjectRevisions: [0] |
946 | + Property { name: "loaded"; type: "bool"; isReadonly: true } |
947 | + Signal { |
948 | + name: "loadedChanged" |
949 | + Parameter { type: "bool" } |
950 | + } |
951 | + Signal { |
952 | + name: "indicatorLoaded" |
953 | + Parameter { name: "indicator_name"; type: "string" } |
954 | + } |
955 | + Signal { |
956 | + name: "indicatorAboutToBeUnloaded" |
957 | + Parameter { name: "indicator_name"; type: "string" } |
958 | + } |
959 | + Method { |
960 | + name: "load" |
961 | + Parameter { name: "profile"; type: "string" } |
962 | + } |
963 | + Method { name: "unload" } |
964 | + } |
965 | + Component { |
966 | + name: "IndicatorsModel" |
967 | + prototype: "QAbstractListModel" |
968 | + exports: ["Unity.Indicators/IndicatorsModel 0.1"] |
969 | + exportMetaObjectRevisions: [0] |
970 | + Property { name: "count"; type: "int"; isReadonly: true } |
971 | + Signal { |
972 | + name: "indicatorDataChanged" |
973 | + Parameter { name: "data"; type: "QVariant" } |
974 | + } |
975 | + Method { |
976 | + name: "load" |
977 | + Parameter { name: "profile"; type: "string" } |
978 | + } |
979 | + Method { name: "unload" } |
980 | + Method { |
981 | + name: "data" |
982 | + type: "QVariant" |
983 | + Parameter { name: "row"; type: "int" } |
984 | + Parameter { name: "role"; type: "int" } |
985 | + } |
986 | + } |
987 | + Component { |
988 | + name: "IndicatorsModelRole" |
989 | + prototype: "QObject" |
990 | + exports: ["Unity.Indicators/IndicatorsModelRole 0.1"] |
991 | + isCreatable: false |
992 | + exportMetaObjectRevisions: [0] |
993 | + Enum { |
994 | + name: "Roles" |
995 | + values: { |
996 | + "Identifier": 0, |
997 | + "Position": 1, |
998 | + "WidgetSource": 2, |
999 | + "PageSource": 3, |
1000 | + "IndicatorProperties": 4, |
1001 | + "IsVisible": 5 |
1002 | + } |
1003 | + } |
1004 | + } |
1005 | + Component { |
1006 | + name: "MenuContentActivator" |
1007 | + prototype: "QObject" |
1008 | + exports: ["Unity.Indicators/MenuContentActivator 0.1"] |
1009 | + exportMetaObjectRevisions: [0] |
1010 | + Property { name: "baseIndex"; type: "int" } |
1011 | + Property { name: "running"; type: "bool" } |
1012 | + Property { name: "count"; type: "int" } |
1013 | + Property { name: "content"; type: "MenuContentState"; isList: true; isReadonly: true } |
1014 | + Signal { |
1015 | + name: "baseIndexChanged" |
1016 | + Parameter { name: "baseIndex"; type: "int" } |
1017 | + } |
1018 | + Signal { |
1019 | + name: "deltaChanged" |
1020 | + Parameter { name: "delta"; type: "int" } |
1021 | + } |
1022 | + Signal { |
1023 | + name: "runningChanged" |
1024 | + Parameter { name: "running"; type: "bool" } |
1025 | + } |
1026 | + Signal { |
1027 | + name: "countChanged" |
1028 | + Parameter { name: "count"; type: "int" } |
1029 | + } |
1030 | + Method { name: "restart" } |
1031 | + Method { name: "stop" } |
1032 | + Method { name: "clear" } |
1033 | + Method { |
1034 | + name: "isMenuContentActive" |
1035 | + type: "bool" |
1036 | + Parameter { name: "index"; type: "int" } |
1037 | + } |
1038 | + } |
1039 | + Component { |
1040 | + name: "MenuContentState" |
1041 | + prototype: "QObject" |
1042 | + exports: ["Unity.Indicators/MenuContentState 0.1"] |
1043 | + isCreatable: false |
1044 | + exportMetaObjectRevisions: [0] |
1045 | + Property { name: "active"; type: "bool"; isReadonly: true } |
1046 | + } |
1047 | + Component { |
1048 | + name: "ModelPrinter" |
1049 | + prototype: "QObject" |
1050 | + exports: ["Unity.Indicators/ModelPrinter 0.1"] |
1051 | + exportMetaObjectRevisions: [0] |
1052 | + Property { name: "model"; type: "UnityMenuModel"; isPointer: true } |
1053 | + Property { name: "text"; type: "string"; isReadonly: true } |
1054 | + Method { name: "text"; type: "string" } |
1055 | + } |
1056 | + Component { |
1057 | + name: "NetworkActionState" |
1058 | + prototype: "QObject" |
1059 | + exports: ["Unity.Indicators/NetworkActionState 0.1"] |
1060 | + isCreatable: false |
1061 | + exportMetaObjectRevisions: [0] |
1062 | + Enum { |
1063 | + name: "NetworkActionStates" |
1064 | + values: { |
1065 | + "Connection": 1, |
1066 | + "SignalStrength": 2 |
1067 | + } |
1068 | + } |
1069 | + } |
1070 | + Component { |
1071 | + name: "NetworkConnection" |
1072 | + prototype: "QObject" |
1073 | + exports: ["Unity.Indicators/NetworkConnection 0.1"] |
1074 | + isCreatable: false |
1075 | + exportMetaObjectRevisions: [0] |
1076 | + Enum { |
1077 | + name: "NetworkConnectionStates" |
1078 | + values: { |
1079 | + "Initial": 0, |
1080 | + "Activating": 1, |
1081 | + "Activated": 2, |
1082 | + "Deactivating": 3 |
1083 | + } |
1084 | + } |
1085 | + } |
1086 | + Component { |
1087 | + name: "QAbstractProxyModel" |
1088 | + prototype: "QAbstractItemModel" |
1089 | + Property { name: "sourceModel"; type: "QAbstractItemModel"; isPointer: true } |
1090 | + } |
1091 | + Component { name: "QIdentityProxyModel"; prototype: "QAbstractProxyModel" } |
1092 | + Component { |
1093 | + name: "RootActionState" |
1094 | + prototype: "ActionStateParser" |
1095 | + exports: ["Unity.Indicators/RootActionState 0.1"] |
1096 | + exportMetaObjectRevisions: [0] |
1097 | + Property { name: "menu"; type: "UnityMenuModel"; isPointer: true } |
1098 | + Property { name: "valid"; type: "bool"; isReadonly: true } |
1099 | + Property { name: "title"; type: "string"; isReadonly: true } |
1100 | + Property { name: "leftLabel"; type: "string"; isReadonly: true } |
1101 | + Property { name: "rightLabel"; type: "string"; isReadonly: true } |
1102 | + Property { name: "icons"; type: "QStringList"; isReadonly: true } |
1103 | + Property { name: "accessibleName"; type: "string"; isReadonly: true } |
1104 | + Property { name: "visible"; type: "bool"; isReadonly: true } |
1105 | + Signal { name: "updated" } |
1106 | + Signal { name: "indexChanged" } |
1107 | + } |
1108 | + Component { |
1109 | + name: "UnityMenuModelCache" |
1110 | + prototype: "QObject" |
1111 | + exports: ["Unity.Indicators/UnityMenuModelCache 0.1"] |
1112 | + isCreatable: false |
1113 | + isSingleton: true |
1114 | + exportMetaObjectRevisions: [0] |
1115 | + Method { |
1116 | + name: "model" |
1117 | + type: "UnityMenuModel*" |
1118 | + Parameter { name: "path"; type: "string" } |
1119 | + } |
1120 | + Method { |
1121 | + name: "registerModel" |
1122 | + Parameter { name: "path"; type: "string" } |
1123 | + Parameter { name: "menuModel"; type: "UnityMenuModel"; isPointer: true } |
1124 | + } |
1125 | + } |
1126 | + Component { |
1127 | + name: "UnityMenuModelStack" |
1128 | + prototype: "QObject" |
1129 | + exports: ["Unity.Indicators/UnityMenuModelStack 0.1"] |
1130 | + exportMetaObjectRevisions: [0] |
1131 | + Property { name: "head"; type: "UnityMenuModel"; isPointer: true } |
1132 | + Property { name: "tail"; type: "UnityMenuModel"; isReadonly: true; isPointer: true } |
1133 | + Property { name: "count"; type: "int"; isReadonly: true } |
1134 | + Signal { |
1135 | + name: "headChanged" |
1136 | + Parameter { name: "head"; type: "UnityMenuModel"; isPointer: true } |
1137 | + } |
1138 | + Signal { |
1139 | + name: "tailChanged" |
1140 | + Parameter { name: "tail"; type: "UnityMenuModel"; isPointer: true } |
1141 | + } |
1142 | + Signal { |
1143 | + name: "countChanged" |
1144 | + Parameter { name: "count"; type: "int" } |
1145 | + } |
1146 | + Method { |
1147 | + name: "push" |
1148 | + Parameter { name: "model"; type: "UnityMenuModel"; isPointer: true } |
1149 | + Parameter { name: "menuIndex"; type: "int" } |
1150 | + } |
1151 | + Method { name: "pop"; type: "UnityMenuModel*" } |
1152 | + } |
1153 | + Component { |
1154 | + name: "VisibleIndicatorsModel" |
1155 | + prototype: "QIdentityProxyModel" |
1156 | + exports: ["Unity.Indicators/VisibleIndicatorsModel 0.1"] |
1157 | + exportMetaObjectRevisions: [0] |
1158 | + Property { name: "model"; type: "QAbstractItemModel"; isPointer: true } |
1159 | + Property { name: "visible"; type: "QVariantMap" } |
1160 | + Signal { name: "totalCountChanged" } |
1161 | + Method { |
1162 | + name: "onBeginRowInserted" |
1163 | + Parameter { type: "QModelIndex" } |
1164 | + Parameter { name: "start"; type: "int" } |
1165 | + Parameter { name: "end"; type: "int" } |
1166 | + } |
1167 | + Method { |
1168 | + name: "onRowInserted" |
1169 | + Parameter { type: "QModelIndex" } |
1170 | + Parameter { name: "start"; type: "int" } |
1171 | + Parameter { name: "end"; type: "int" } |
1172 | + } |
1173 | + } |
1174 | +} |
1175 | |
1176 | === removed directory 'plugins/Unity/Indicators/qml' |
1177 | === renamed file 'plugins/Unity/Indicators/qml/qmldir' => 'plugins/Unity/Indicators/qmldir' |
1178 | --- plugins/Unity/Indicators/qml/qmldir 2014-05-02 22:57:00 +0000 |
1179 | +++ plugins/Unity/Indicators/qmldir 2014-06-26 10:07:27 +0000 |
1180 | @@ -4,7 +4,3 @@ |
1181 | |
1182 | CachedUnityMenuModel 0.1 CachedUnityMenuModel.qml |
1183 | IndicatorBase 0.1 IndicatorBase.qml |
1184 | -MenuItemFactory 0.1 MenuItemFactory.qml |
1185 | -MessageMenuItemFactory 0.1 MessageMenuItemFactory.qml |
1186 | - |
1187 | -internal RemoveBackground RemoveBackground.qml |
1188 | |
1189 | === added file 'plugins/Unity/Launcher/Launcher.qmltypes' |
1190 | --- plugins/Unity/Launcher/Launcher.qmltypes 1970-01-01 00:00:00 +0000 |
1191 | +++ plugins/Unity/Launcher/Launcher.qmltypes 2014-06-26 10:07:27 +0000 |
1192 | @@ -0,0 +1,174 @@ |
1193 | +import QtQuick.tooling 1.1 |
1194 | + |
1195 | +// This file describes the plugin-supplied types contained in the library. |
1196 | +// It is used for QML tooling purposes only. |
1197 | +// |
1198 | +// This file was auto-generated by: |
1199 | +// 'qmlplugindump -notrelocatable Unity.Launcher 0.1 plugins' |
1200 | + |
1201 | +Module { |
1202 | + Component { |
1203 | + name: "LauncherItem" |
1204 | + prototype: "unity::shell::launcher::LauncherItemInterface" |
1205 | + exports: ["Unity.Launcher/LauncherItem 0.1"] |
1206 | + isCreatable: false |
1207 | + exportMetaObjectRevisions: [0] |
1208 | + Signal { |
1209 | + name: "favoriteChanged" |
1210 | + Parameter { name: "favorite"; type: "bool" } |
1211 | + } |
1212 | + Signal { |
1213 | + name: "runningChanged" |
1214 | + Parameter { name: "running"; type: "bool" } |
1215 | + } |
1216 | + } |
1217 | + Component { |
1218 | + name: "LauncherModel" |
1219 | + prototype: "unity::shell::launcher::LauncherModelInterface" |
1220 | + exports: ["Unity.Launcher/LauncherModel 0.1"] |
1221 | + isCreatable: false |
1222 | + isSingleton: true |
1223 | + exportMetaObjectRevisions: [0] |
1224 | + Method { |
1225 | + name: "get" |
1226 | + type: "unity::shell::launcher::LauncherItemInterface*" |
1227 | + Parameter { name: "index"; type: "int" } |
1228 | + } |
1229 | + Method { |
1230 | + name: "move" |
1231 | + Parameter { name: "oldIndex"; type: "int" } |
1232 | + Parameter { name: "newIndex"; type: "int" } |
1233 | + } |
1234 | + Method { |
1235 | + name: "pin" |
1236 | + Parameter { name: "appId"; type: "string" } |
1237 | + Parameter { name: "index"; type: "int" } |
1238 | + } |
1239 | + Method { |
1240 | + name: "pin" |
1241 | + Parameter { name: "appId"; type: "string" } |
1242 | + } |
1243 | + Method { |
1244 | + name: "requestRemove" |
1245 | + Parameter { name: "appId"; type: "string" } |
1246 | + } |
1247 | + Method { |
1248 | + name: "quickListActionInvoked" |
1249 | + Parameter { name: "appId"; type: "string" } |
1250 | + Parameter { name: "actionIndex"; type: "int" } |
1251 | + } |
1252 | + Method { |
1253 | + name: "setUser" |
1254 | + Parameter { name: "username"; type: "string" } |
1255 | + } |
1256 | + Method { |
1257 | + name: "getUrlForAppId" |
1258 | + type: "string" |
1259 | + Parameter { name: "appId"; type: "string" } |
1260 | + } |
1261 | + } |
1262 | + Component { |
1263 | + name: "QuickListModel" |
1264 | + prototype: "unity::shell::launcher::QuickListModelInterface" |
1265 | + exports: ["Unity.Launcher/QuickListModel 0.1"] |
1266 | + isCreatable: false |
1267 | + exportMetaObjectRevisions: [0] |
1268 | + } |
1269 | + Component { |
1270 | + name: "unity::shell::launcher::LauncherItemInterface" |
1271 | + prototype: "QObject" |
1272 | + exports: ["Unity.Launcher/LauncherItemInterface 0.1"] |
1273 | + isCreatable: false |
1274 | + exportMetaObjectRevisions: [0] |
1275 | + Property { name: "appId"; type: "string"; isReadonly: true } |
1276 | + Property { name: "name"; type: "string"; isReadonly: true } |
1277 | + Property { name: "icon"; type: "string"; isReadonly: true } |
1278 | + Property { name: "pinned"; type: "bool"; isReadonly: true } |
1279 | + Property { name: "running"; type: "bool"; isReadonly: true } |
1280 | + Property { name: "recent"; type: "bool"; isReadonly: true } |
1281 | + Property { name: "progress"; type: "int"; isReadonly: true } |
1282 | + Property { name: "count"; type: "int"; isReadonly: true } |
1283 | + Property { name: "focused"; type: "bool"; isReadonly: true } |
1284 | + Property { |
1285 | + name: "quickList" |
1286 | + type: "unity::shell::launcher::QuickListModelInterface" |
1287 | + isReadonly: true |
1288 | + isPointer: true |
1289 | + } |
1290 | + Signal { |
1291 | + name: "pinnedChanged" |
1292 | + Parameter { name: "pinned"; type: "bool" } |
1293 | + } |
1294 | + Signal { |
1295 | + name: "runningChanged" |
1296 | + Parameter { name: "running"; type: "bool" } |
1297 | + } |
1298 | + Signal { |
1299 | + name: "recentChanged" |
1300 | + Parameter { name: "running"; type: "bool" } |
1301 | + } |
1302 | + Signal { |
1303 | + name: "progressChanged" |
1304 | + Parameter { name: "progress"; type: "int" } |
1305 | + } |
1306 | + Signal { |
1307 | + name: "countChanged" |
1308 | + Parameter { name: "count"; type: "int" } |
1309 | + } |
1310 | + Signal { |
1311 | + name: "focusedChanged" |
1312 | + Parameter { name: "focused"; type: "bool" } |
1313 | + } |
1314 | + } |
1315 | + Component { |
1316 | + name: "unity::shell::launcher::LauncherModelInterface" |
1317 | + prototype: "QAbstractListModel" |
1318 | + exports: ["Unity.Launcher/LauncherModelInterface 0.1"] |
1319 | + isCreatable: false |
1320 | + exportMetaObjectRevisions: [0] |
1321 | + Property { |
1322 | + name: "applicationManager" |
1323 | + type: "unity::shell::application::ApplicationManagerInterface" |
1324 | + isPointer: true |
1325 | + } |
1326 | + Method { |
1327 | + name: "move" |
1328 | + Parameter { name: "oldIndex"; type: "int" } |
1329 | + Parameter { name: "newIndex"; type: "int" } |
1330 | + } |
1331 | + Method { |
1332 | + name: "get" |
1333 | + type: "unity::shell::launcher::LauncherItemInterface*" |
1334 | + Parameter { name: "index"; type: "int" } |
1335 | + } |
1336 | + Method { |
1337 | + name: "pin" |
1338 | + Parameter { name: "appId"; type: "string" } |
1339 | + Parameter { name: "index"; type: "int" } |
1340 | + } |
1341 | + Method { |
1342 | + name: "pin" |
1343 | + Parameter { name: "appId"; type: "string" } |
1344 | + } |
1345 | + Method { |
1346 | + name: "requestRemove" |
1347 | + Parameter { name: "appId"; type: "string" } |
1348 | + } |
1349 | + Method { |
1350 | + name: "quickListActionInvoked" |
1351 | + Parameter { name: "appId"; type: "string" } |
1352 | + Parameter { name: "actionIndex"; type: "int" } |
1353 | + } |
1354 | + Method { |
1355 | + name: "setUser" |
1356 | + Parameter { name: "username"; type: "string" } |
1357 | + } |
1358 | + } |
1359 | + Component { |
1360 | + name: "unity::shell::launcher::QuickListModelInterface" |
1361 | + prototype: "QAbstractListModel" |
1362 | + exports: ["Unity.Launcher/QuickListInterface 0.1"] |
1363 | + isCreatable: false |
1364 | + exportMetaObjectRevisions: [0] |
1365 | + } |
1366 | +} |
1367 | |
1368 | === added file 'plugins/Unity/Session/Session.qmltypes' |
1369 | --- plugins/Unity/Session/Session.qmltypes 1970-01-01 00:00:00 +0000 |
1370 | +++ plugins/Unity/Session/Session.qmltypes 2014-06-26 10:07:27 +0000 |
1371 | @@ -0,0 +1,25 @@ |
1372 | +import QtQuick.tooling 1.1 |
1373 | + |
1374 | +// This file describes the plugin-supplied types contained in the library. |
1375 | +// It is used for QML tooling purposes only. |
1376 | +// |
1377 | +// This file was auto-generated by: |
1378 | +// 'qmlplugindump -notrelocatable Unity.Session 0.1 plugins' |
1379 | + |
1380 | +Module { |
1381 | + Component { |
1382 | + name: "DBusUnitySessionService" |
1383 | + prototype: "QObject" |
1384 | + exports: ["Unity.Session/DBusUnitySessionService 0.1"] |
1385 | + isCreatable: false |
1386 | + isSingleton: true |
1387 | + exportMetaObjectRevisions: [0] |
1388 | + Signal { |
1389 | + name: "logoutRequested" |
1390 | + Parameter { name: "have_inhibitors"; type: "bool" } |
1391 | + } |
1392 | + Signal { name: "logoutReady" } |
1393 | + Method { name: "Logout" } |
1394 | + Method { name: "RequestLogout" } |
1395 | + } |
1396 | +} |
1397 | |
1398 | === added file 'plugins/Utils/Utils.qmltypes' |
1399 | --- plugins/Utils/Utils.qmltypes 1970-01-01 00:00:00 +0000 |
1400 | +++ plugins/Utils/Utils.qmltypes 2014-06-26 10:07:27 +0000 |
1401 | @@ -0,0 +1,143 @@ |
1402 | +import QtQuick.tooling 1.1 |
1403 | + |
1404 | +// This file describes the plugin-supplied types contained in the library. |
1405 | +// It is used for QML tooling purposes only. |
1406 | +// |
1407 | +// This file was auto-generated by: |
1408 | +// 'qmlplugindump -notrelocatable Utils 0.1 plugins' |
1409 | + |
1410 | +Module { |
1411 | + Component { |
1412 | + name: "EasingCurve" |
1413 | + prototype: "QObject" |
1414 | + exports: ["Utils/EasingCurve 0.1"] |
1415 | + exportMetaObjectRevisions: [0] |
1416 | + Property { name: "type"; type: "QEasingCurve::Type" } |
1417 | + Property { name: "period"; type: "double" } |
1418 | + Property { name: "progress"; type: "double" } |
1419 | + Property { name: "value"; type: "double"; isReadonly: true } |
1420 | + } |
1421 | + Component { |
1422 | + name: "QAbstractProxyModel" |
1423 | + prototype: "QAbstractItemModel" |
1424 | + Property { name: "sourceModel"; type: "QAbstractItemModel"; isPointer: true } |
1425 | + } |
1426 | + Component { name: "QIdentityProxyModel"; prototype: "QAbstractProxyModel" } |
1427 | + Component { |
1428 | + name: "QLimitProxyModelQML" |
1429 | + prototype: "QIdentityProxyModel" |
1430 | + exports: ["Utils/LimitProxyModel 0.1"] |
1431 | + exportMetaObjectRevisions: [0] |
1432 | + Property { name: "model"; type: "QAbstractItemModel"; isPointer: true } |
1433 | + Property { name: "limit"; type: "int" } |
1434 | + Property { name: "count"; type: "int"; isReadonly: true } |
1435 | + Signal { name: "totalCountChanged" } |
1436 | + } |
1437 | + Component { |
1438 | + name: "QSortFilterProxyModel" |
1439 | + prototype: "QAbstractProxyModel" |
1440 | + Property { name: "filterRegExp"; type: "QRegExp" } |
1441 | + Property { name: "filterKeyColumn"; type: "int" } |
1442 | + Property { name: "dynamicSortFilter"; type: "bool" } |
1443 | + Property { name: "filterCaseSensitivity"; type: "Qt::CaseSensitivity" } |
1444 | + Property { name: "sortCaseSensitivity"; type: "Qt::CaseSensitivity" } |
1445 | + Property { name: "isSortLocaleAware"; type: "bool" } |
1446 | + Property { name: "sortRole"; type: "int" } |
1447 | + Property { name: "filterRole"; type: "int" } |
1448 | + Method { |
1449 | + name: "setFilterRegExp" |
1450 | + Parameter { name: "pattern"; type: "string" } |
1451 | + } |
1452 | + Method { |
1453 | + name: "setFilterWildcard" |
1454 | + Parameter { name: "pattern"; type: "string" } |
1455 | + } |
1456 | + Method { |
1457 | + name: "setFilterFixedString" |
1458 | + Parameter { name: "pattern"; type: "string" } |
1459 | + } |
1460 | + Method { name: "clear" } |
1461 | + Method { name: "invalidate" } |
1462 | + } |
1463 | + Component { |
1464 | + name: "QSortFilterProxyModelQML" |
1465 | + prototype: "QSortFilterProxyModel" |
1466 | + exports: ["Utils/SortFilterProxyModel 0.1"] |
1467 | + exportMetaObjectRevisions: [0] |
1468 | + Property { name: "model"; type: "QAbstractItemModel"; isPointer: true } |
1469 | + Property { name: "totalCount"; type: "int"; isReadonly: true } |
1470 | + Property { name: "count"; type: "int"; isReadonly: true } |
1471 | + Property { name: "invertMatch"; type: "bool" } |
1472 | + Signal { |
1473 | + name: "invertMatchChanged" |
1474 | + Parameter { type: "bool" } |
1475 | + } |
1476 | + Method { |
1477 | + name: "get" |
1478 | + type: "QVariantMap" |
1479 | + Parameter { name: "row"; type: "int" } |
1480 | + } |
1481 | + Method { |
1482 | + name: "data" |
1483 | + type: "QVariant" |
1484 | + Parameter { name: "row"; type: "int" } |
1485 | + Parameter { name: "role"; type: "int" } |
1486 | + } |
1487 | + Method { name: "count"; type: "int" } |
1488 | + Method { |
1489 | + name: "findFirst" |
1490 | + type: "int" |
1491 | + Parameter { name: "role"; type: "int" } |
1492 | + Parameter { name: "value"; type: "QVariant" } |
1493 | + } |
1494 | + Method { |
1495 | + name: "mapRowToSource" |
1496 | + type: "int" |
1497 | + Parameter { name: "row"; type: "int" } |
1498 | + } |
1499 | + Method { |
1500 | + name: "mapFromSource" |
1501 | + type: "int" |
1502 | + Parameter { name: "row"; type: "int" } |
1503 | + } |
1504 | + Method { |
1505 | + name: "mapToSource" |
1506 | + type: "int" |
1507 | + Parameter { name: "row"; type: "int" } |
1508 | + } |
1509 | + } |
1510 | + Component { |
1511 | + name: "TimeFormatter" |
1512 | + prototype: "QObject" |
1513 | + exports: ["Utils/GDateTimeFormatter 0.1", "Utils/TimeFormatter 0.1"] |
1514 | + exportMetaObjectRevisions: [0, 0] |
1515 | + Property { name: "format"; type: "string" } |
1516 | + Property { name: "timeString"; type: "string"; isReadonly: true } |
1517 | + Property { name: "time"; type: "qlonglong" } |
1518 | + Signal { |
1519 | + name: "formatChanged" |
1520 | + Parameter { name: "format"; type: "string" } |
1521 | + } |
1522 | + Signal { |
1523 | + name: "timeStringChanged" |
1524 | + Parameter { name: "timeString"; type: "string" } |
1525 | + } |
1526 | + Signal { |
1527 | + name: "timeChanged" |
1528 | + Parameter { name: "time"; type: "qlonglong" } |
1529 | + } |
1530 | + } |
1531 | + Component { |
1532 | + name: "UnityMenuModelPaths" |
1533 | + prototype: "QObject" |
1534 | + exports: ["Utils/UnityMenuModelPaths 0.1"] |
1535 | + exportMetaObjectRevisions: [0] |
1536 | + Property { name: "source"; type: "QVariant" } |
1537 | + Property { name: "busName"; type: "QByteArray"; isReadonly: true } |
1538 | + Property { name: "actions"; type: "QVariantMap"; isReadonly: true } |
1539 | + Property { name: "menuObjectPath"; type: "QByteArray"; isReadonly: true } |
1540 | + Property { name: "busNameHint"; type: "QByteArray" } |
1541 | + Property { name: "actionsHint"; type: "QByteArray" } |
1542 | + Property { name: "menuObjectPathHint"; type: "QByteArray" } |
1543 | + } |
1544 | +} |
1545 | |
1546 | === modified file 'qml/Panel/Indicators/DefaultIndicatorPage.qml' |
1547 | --- qml/Panel/Indicators/DefaultIndicatorPage.qml 2013-12-13 14:59:04 +0000 |
1548 | +++ qml/Panel/Indicators/DefaultIndicatorPage.qml 2014-06-26 10:07:27 +0000 |
1549 | @@ -22,7 +22,7 @@ |
1550 | import Ubuntu.Components 0.1 as Components |
1551 | import Unity.Indicators 0.1 as Indicators |
1552 | |
1553 | -Indicators.IndicatorBase { |
1554 | +IndicatorBase { |
1555 | id: main |
1556 | |
1557 | //const |
1558 | @@ -174,7 +174,7 @@ |
1559 | } |
1560 | } |
1561 | |
1562 | - Indicators.MenuItemFactory { |
1563 | + MenuItemFactory { |
1564 | id: factory |
1565 | menuModel: mainMenu.model ? mainMenu.model : null |
1566 | } |
1567 | |
1568 | === modified file 'qml/Panel/Indicators/DefaultIndicatorWidget.qml' |
1569 | --- qml/Panel/Indicators/DefaultIndicatorWidget.qml 2013-12-12 09:55:17 +0000 |
1570 | +++ qml/Panel/Indicators/DefaultIndicatorWidget.qml 2014-06-26 10:07:27 +0000 |
1571 | @@ -19,9 +19,8 @@ |
1572 | |
1573 | import QtQuick 2.0 |
1574 | import Ubuntu.Components 0.1 |
1575 | -import Unity.Indicators 0.1 as Indicators |
1576 | |
1577 | -Indicators.IndicatorBase { |
1578 | +IndicatorBase { |
1579 | id: indicatorWidget |
1580 | |
1581 | property int iconSize: height |
1582 | |
1583 | === renamed file 'plugins/Unity/Indicators/qml/IndicatorBase.qml' => 'qml/Panel/Indicators/IndicatorBase.qml' |
1584 | --- plugins/Unity/Indicators/qml/IndicatorBase.qml 2013-11-24 02:23:56 +0000 |
1585 | +++ qml/Panel/Indicators/IndicatorBase.qml 2014-06-26 10:07:27 +0000 |
1586 | @@ -36,7 +36,7 @@ |
1587 | |
1588 | property alias menuModel: cachedModel.model |
1589 | |
1590 | - CachedUnityMenuModel { |
1591 | + Indicators.CachedUnityMenuModel { |
1592 | id: cachedModel |
1593 | busName: indicatorItem.busName |
1594 | actionsObjectPath: indicatorItem.actionsObjectPath |
1595 | |
1596 | === modified file 'qml/Panel/Indicators/IndicatorDelegate.qml' |
1597 | --- qml/Panel/Indicators/IndicatorDelegate.qml 2014-01-14 15:35:57 +0000 |
1598 | +++ qml/Panel/Indicators/IndicatorDelegate.qml 2014-06-26 10:07:27 +0000 |
1599 | @@ -18,9 +18,8 @@ |
1600 | */ |
1601 | |
1602 | import QtQuick 2.0 |
1603 | -import Unity.Indicators 0.1 as Indicators |
1604 | |
1605 | -Indicators.IndicatorBase { |
1606 | +IndicatorBase { |
1607 | enabled: false |
1608 | |
1609 | onRootActionStateChanged: { |
1610 | |
1611 | === renamed file 'plugins/Unity/Indicators/qml/MenuItemFactory.qml' => 'qml/Panel/Indicators/MenuItemFactory.qml' |
1612 | === renamed file 'plugins/Unity/Indicators/qml/MessageMenuItemFactory.qml' => 'qml/Panel/Indicators/MessageMenuItemFactory.qml' |
1613 | === renamed file 'plugins/Unity/Indicators/qml/RemoveBackground.qml' => 'qml/Panel/Indicators/RemoveBackground.qml' |
1614 | === added file 'tests/mocks/AccountsService/AccountsService.qmltypes' |
1615 | --- tests/mocks/AccountsService/AccountsService.qmltypes 1970-01-01 00:00:00 +0000 |
1616 | +++ tests/mocks/AccountsService/AccountsService.qmltypes 2014-06-26 10:07:27 +0000 |
1617 | @@ -0,0 +1,22 @@ |
1618 | +import QtQuick.tooling 1.1 |
1619 | + |
1620 | +// This file describes the plugin-supplied types contained in the library. |
1621 | +// It is used for QML tooling purposes only. |
1622 | +// |
1623 | +// This file was auto-generated by: |
1624 | +// 'qmlplugindump -notrelocatable AccountsService 0.1 tests/mocks' |
1625 | + |
1626 | +Module { |
1627 | + Component { |
1628 | + name: "AccountsService" |
1629 | + prototype: "QObject" |
1630 | + exports: ["AccountsService/AccountsService 0.1"] |
1631 | + isCreatable: false |
1632 | + isSingleton: true |
1633 | + exportMetaObjectRevisions: [0] |
1634 | + Property { name: "user"; type: "string" } |
1635 | + Property { name: "demoEdges"; type: "bool" } |
1636 | + Property { name: "backgroundFile"; type: "string" } |
1637 | + Property { name: "statsWelcomeScreen"; type: "bool" } |
1638 | + } |
1639 | +} |
1640 | |
1641 | === added file 'tests/mocks/GSettings.1.0/GSettings.qmltypes' |
1642 | --- tests/mocks/GSettings.1.0/GSettings.qmltypes 1970-01-01 00:00:00 +0000 |
1643 | +++ tests/mocks/GSettings.1.0/GSettings.qmltypes 2014-06-26 10:07:27 +0000 |
1644 | @@ -0,0 +1,42 @@ |
1645 | +import QtQuick.tooling 1.1 |
1646 | + |
1647 | +// This file describes the plugin-supplied types contained in the library. |
1648 | +// It is used for QML tooling purposes only. |
1649 | +// |
1650 | +// This file was auto-generated by: |
1651 | +// 'qmlplugindump -notrelocatable GSettings 1.0 tests/mocks' |
1652 | + |
1653 | +Module { |
1654 | + Component { |
1655 | + name: "GSettingsControllerQml" |
1656 | + prototype: "QObject" |
1657 | + exports: ["GSettings/GSettingsController 1.0"] |
1658 | + isCreatable: false |
1659 | + isSingleton: true |
1660 | + exportMetaObjectRevisions: [0] |
1661 | + Method { |
1662 | + name: "setPictureUri" |
1663 | + Parameter { name: "str"; type: "string" } |
1664 | + } |
1665 | + } |
1666 | + Component { |
1667 | + name: "GSettingsQml" |
1668 | + prototype: "QObject" |
1669 | + exports: ["GSettings/GSettings 1.0"] |
1670 | + exportMetaObjectRevisions: [0] |
1671 | + Property { name: "schema"; type: "GSettingsSchemaQml"; isReadonly: true; isPointer: true } |
1672 | + Property { name: "pictureUri"; type: "string" } |
1673 | + Signal { |
1674 | + name: "pictureUriChanged" |
1675 | + Parameter { type: "string" } |
1676 | + } |
1677 | + } |
1678 | + Component { |
1679 | + name: "GSettingsSchemaQml" |
1680 | + prototype: "QObject" |
1681 | + exports: ["GSettings/GSettingsSchema 1.0"] |
1682 | + isCreatable: false |
1683 | + exportMetaObjectRevisions: [0] |
1684 | + Property { name: "id"; type: "QByteArray" } |
1685 | + } |
1686 | +} |
1687 | |
1688 | === added file 'tests/mocks/HudClient/HudClient.qmltypes' |
1689 | --- tests/mocks/HudClient/HudClient.qmltypes 1970-01-01 00:00:00 +0000 |
1690 | +++ tests/mocks/HudClient/HudClient.qmltypes 2014-06-26 10:07:27 +0000 |
1691 | @@ -0,0 +1,113 @@ |
1692 | +import QtQuick.tooling 1.1 |
1693 | + |
1694 | +// This file describes the plugin-supplied types contained in the library. |
1695 | +// It is used for QML tooling purposes only. |
1696 | +// |
1697 | +// This file was auto-generated by: |
1698 | +// 'qmlplugindump -notrelocatable HudClient 0.1 tests/mocks' |
1699 | + |
1700 | +Module { |
1701 | + Component { |
1702 | + name: "DeeListModel" |
1703 | + prototype: "QAbstractListModel" |
1704 | + Property { name: "name"; type: "string" } |
1705 | + Property { name: "synchronized"; type: "bool"; isReadonly: true } |
1706 | + Property { name: "count"; type: "int"; isReadonly: true } |
1707 | + Signal { |
1708 | + name: "nameChanged" |
1709 | + Parameter { type: "string" } |
1710 | + } |
1711 | + Signal { |
1712 | + name: "synchronizedChanged" |
1713 | + Parameter { type: "bool" } |
1714 | + } |
1715 | + Signal { |
1716 | + name: "roleNamesChanged" |
1717 | + Parameter { type: "QHash<int,QByteArray>" } |
1718 | + } |
1719 | + Method { |
1720 | + name: "get" |
1721 | + type: "QVariantMap" |
1722 | + Parameter { name: "row"; type: "int" } |
1723 | + } |
1724 | + Method { name: "count"; type: "int" } |
1725 | + } |
1726 | + Component { |
1727 | + name: "HudClient" |
1728 | + prototype: "QObject" |
1729 | + exports: ["HudClient/HudClient 0.1"] |
1730 | + exportMetaObjectRevisions: [0] |
1731 | + Property { name: "results"; type: "DeeListModel"; isReadonly: true; isPointer: true } |
1732 | + Property { name: "toolBarModel"; type: "QAbstractItemModel"; isReadonly: true; isPointer: true } |
1733 | + Signal { name: "voiceQueryLoading" } |
1734 | + Signal { name: "voiceQueryListening" } |
1735 | + Signal { name: "voiceQueryHeardSomething" } |
1736 | + Signal { name: "voiceQueryFailed" } |
1737 | + Signal { |
1738 | + name: "voiceQueryFinished" |
1739 | + Parameter { name: "query"; type: "string" } |
1740 | + } |
1741 | + Signal { name: "commandExecuted" } |
1742 | + Signal { |
1743 | + name: "showParametrizedAction" |
1744 | + Parameter { name: "action"; type: "string" } |
1745 | + Parameter { name: "items"; type: "QVariant" } |
1746 | + } |
1747 | + Method { |
1748 | + name: "executeCommand" |
1749 | + Parameter { name: "index"; type: "int" } |
1750 | + } |
1751 | + Method { |
1752 | + name: "setQuery" |
1753 | + Parameter { name: "new_query"; type: "string" } |
1754 | + } |
1755 | + Method { name: "startVoiceQuery" } |
1756 | + Method { |
1757 | + name: "executeParametrizedAction" |
1758 | + Parameter { name: "values"; type: "QVariant" } |
1759 | + } |
1760 | + Method { |
1761 | + name: "updateParametrizedAction" |
1762 | + Parameter { name: "values"; type: "QVariant" } |
1763 | + } |
1764 | + Method { name: "cancelParametrizedAction" } |
1765 | + Method { |
1766 | + name: "executeToolBarAction" |
1767 | + Parameter { name: "action"; type: "HudClientQueryToolbarItems" } |
1768 | + } |
1769 | + } |
1770 | + Component { |
1771 | + name: "HudClientStub" |
1772 | + prototype: "QObject" |
1773 | + exports: ["HudClient/HudClientStub 0.1"] |
1774 | + exportMetaObjectRevisions: [0] |
1775 | + Property { name: "lastExecutedToolbarItem"; type: "int"; isReadonly: true } |
1776 | + Property { name: "lastSetQuery"; type: "string"; isReadonly: true } |
1777 | + Property { name: "lastExecutedCommandRow"; type: "int"; isReadonly: true } |
1778 | + Property { name: "lastExecutedParametrizedCommandRow"; type: "int"; isReadonly: true } |
1779 | + Property { name: "lastParametrizedCommandCommited"; type: "bool"; isReadonly: true } |
1780 | + Property { name: "activatedActions"; type: "QVariantMap"; isReadonly: true } |
1781 | + Method { name: "reset" } |
1782 | + Method { name: "fullScreenToolbarItemValue"; type: "int" } |
1783 | + Method { name: "helpToolbarItemValue"; type: "int" } |
1784 | + Method { name: "preferencesToolbarItemValue"; type: "int" } |
1785 | + Method { name: "undoToolbarItemValue"; type: "int" } |
1786 | + Method { |
1787 | + name: "setHelpToolbarItemEnabled" |
1788 | + Parameter { name: "enabled"; type: "bool" } |
1789 | + } |
1790 | + } |
1791 | + Component { name: "HudToolBarModel"; prototype: "QAbstractListModel" } |
1792 | + Component { |
1793 | + name: "VolumePeakDetector" |
1794 | + prototype: "QObject" |
1795 | + exports: ["HudClient/VolumePeakDetector 0.1"] |
1796 | + exportMetaObjectRevisions: [0] |
1797 | + Property { name: "enabled"; type: "bool" } |
1798 | + Property { name: "desiredInterval"; type: "int" } |
1799 | + Signal { |
1800 | + name: "newPeak" |
1801 | + Parameter { name: "volume"; type: "float" } |
1802 | + } |
1803 | + } |
1804 | +} |
1805 | |
1806 | === added file 'tests/mocks/LightDM/LightDM.qmltypes' |
1807 | --- tests/mocks/LightDM/LightDM.qmltypes 1970-01-01 00:00:00 +0000 |
1808 | +++ tests/mocks/LightDM/LightDM.qmltypes 2014-06-26 10:07:27 +0000 |
1809 | @@ -0,0 +1,241 @@ |
1810 | +import QtQuick.tooling 1.1 |
1811 | + |
1812 | +// This file describes the plugin-supplied types contained in the library. |
1813 | +// It is used for QML tooling purposes only. |
1814 | +// |
1815 | +// This file was auto-generated by: |
1816 | +// 'qmlplugindump -notrelocatable LightDM 0.1 tests/mocks' |
1817 | + |
1818 | +Module { |
1819 | + Component { |
1820 | + name: "Greeter" |
1821 | + prototype: "QObject" |
1822 | + exports: ["LightDM/Greeter 0.1"] |
1823 | + isCreatable: false |
1824 | + isSingleton: true |
1825 | + exportMetaObjectRevisions: [0] |
1826 | + Property { name: "authenticated"; type: "bool"; isReadonly: true } |
1827 | + Property { name: "authenticationUser"; type: "string"; isReadonly: true } |
1828 | + Property { name: "promptless"; type: "bool"; isReadonly: true } |
1829 | + Signal { |
1830 | + name: "showMessage" |
1831 | + Parameter { name: "text"; type: "string" } |
1832 | + Parameter { name: "isError"; type: "bool" } |
1833 | + } |
1834 | + Signal { |
1835 | + name: "showPrompt" |
1836 | + Parameter { name: "text"; type: "string" } |
1837 | + Parameter { name: "isSecret"; type: "bool" } |
1838 | + } |
1839 | + Signal { name: "authenticationComplete" } |
1840 | + Signal { |
1841 | + name: "authenticationUserChanged" |
1842 | + Parameter { name: "user"; type: "string" } |
1843 | + } |
1844 | + Signal { |
1845 | + name: "requestAuthenticationUser" |
1846 | + Parameter { name: "user"; type: "string" } |
1847 | + } |
1848 | + Method { |
1849 | + name: "authenticate" |
1850 | + Parameter { name: "username"; type: "string" } |
1851 | + } |
1852 | + Method { name: "authenticate" } |
1853 | + Method { |
1854 | + name: "respond" |
1855 | + Parameter { name: "response"; type: "string" } |
1856 | + } |
1857 | + Method { |
1858 | + name: "startSessionSync" |
1859 | + type: "bool" |
1860 | + Parameter { name: "session"; type: "string" } |
1861 | + } |
1862 | + Method { name: "startSessionSync"; type: "bool" } |
1863 | + } |
1864 | + Component { |
1865 | + name: "QAbstractProxyModel" |
1866 | + prototype: "QAbstractItemModel" |
1867 | + Property { name: "sourceModel"; type: "QAbstractItemModel"; isPointer: true } |
1868 | + } |
1869 | + Component { |
1870 | + name: "QLightDM::UsersModel" |
1871 | + prototype: "QAbstractListModel" |
1872 | + exports: ["LightDM/UserRoles 0.1"] |
1873 | + isCreatable: false |
1874 | + exportMetaObjectRevisions: [0] |
1875 | + Enum { |
1876 | + name: "UserModelRoles" |
1877 | + values: { |
1878 | + "NameRole": 256, |
1879 | + "RealNameRole": 257, |
1880 | + "LoggedInRole": 258, |
1881 | + "BackgroundRole": 259, |
1882 | + "SessionRole": 260, |
1883 | + "HasMessagesRole": 261, |
1884 | + "ImagePathRole": 262, |
1885 | + "BackgroundPathRole": 263 |
1886 | + } |
1887 | + } |
1888 | + } |
1889 | + Component { |
1890 | + name: "QSortFilterProxyModel" |
1891 | + prototype: "QAbstractProxyModel" |
1892 | + Property { name: "filterRegExp"; type: "QRegExp" } |
1893 | + Property { name: "filterKeyColumn"; type: "int" } |
1894 | + Property { name: "dynamicSortFilter"; type: "bool" } |
1895 | + Property { name: "filterCaseSensitivity"; type: "Qt::CaseSensitivity" } |
1896 | + Property { name: "sortCaseSensitivity"; type: "Qt::CaseSensitivity" } |
1897 | + Property { name: "isSortLocaleAware"; type: "bool" } |
1898 | + Property { name: "sortRole"; type: "int" } |
1899 | + Property { name: "filterRole"; type: "int" } |
1900 | + Method { |
1901 | + name: "setFilterRegExp" |
1902 | + Parameter { name: "pattern"; type: "string" } |
1903 | + } |
1904 | + Method { |
1905 | + name: "setFilterWildcard" |
1906 | + Parameter { name: "pattern"; type: "string" } |
1907 | + } |
1908 | + Method { |
1909 | + name: "setFilterFixedString" |
1910 | + Parameter { name: "pattern"; type: "string" } |
1911 | + } |
1912 | + Method { name: "clear" } |
1913 | + Method { name: "invalidate" } |
1914 | + } |
1915 | + Component { |
1916 | + name: "QSortFilterProxyModelQML" |
1917 | + prototype: "QSortFilterProxyModel" |
1918 | + Property { name: "model"; type: "QAbstractItemModel"; isPointer: true } |
1919 | + Property { name: "totalCount"; type: "int"; isReadonly: true } |
1920 | + Property { name: "count"; type: "int"; isReadonly: true } |
1921 | + Property { name: "invertMatch"; type: "bool" } |
1922 | + Signal { |
1923 | + name: "invertMatchChanged" |
1924 | + Parameter { type: "bool" } |
1925 | + } |
1926 | + Method { |
1927 | + name: "get" |
1928 | + type: "QVariantMap" |
1929 | + Parameter { name: "row"; type: "int" } |
1930 | + } |
1931 | + Method { |
1932 | + name: "data" |
1933 | + type: "QVariant" |
1934 | + Parameter { name: "row"; type: "int" } |
1935 | + Parameter { name: "role"; type: "int" } |
1936 | + } |
1937 | + Method { name: "count"; type: "int" } |
1938 | + Method { |
1939 | + name: "findFirst" |
1940 | + type: "int" |
1941 | + Parameter { name: "role"; type: "int" } |
1942 | + Parameter { name: "value"; type: "QVariant" } |
1943 | + } |
1944 | + Method { |
1945 | + name: "mapRowToSource" |
1946 | + type: "int" |
1947 | + Parameter { name: "row"; type: "int" } |
1948 | + } |
1949 | + Method { |
1950 | + name: "mapFromSource" |
1951 | + type: "int" |
1952 | + Parameter { name: "row"; type: "int" } |
1953 | + } |
1954 | + Method { |
1955 | + name: "mapToSource" |
1956 | + type: "int" |
1957 | + Parameter { name: "row"; type: "int" } |
1958 | + } |
1959 | + } |
1960 | + Component { |
1961 | + name: "UserMetricsOutput::ColorTheme" |
1962 | + prototype: "QObject" |
1963 | + Property { name: "start"; type: "QColor"; isReadonly: true } |
1964 | + Property { name: "main"; type: "QColor"; isReadonly: true } |
1965 | + Property { name: "end"; type: "QColor"; isReadonly: true } |
1966 | + Signal { |
1967 | + name: "startChanged" |
1968 | + Parameter { name: "color"; type: "QColor" } |
1969 | + } |
1970 | + Signal { |
1971 | + name: "mainChanged" |
1972 | + Parameter { name: "color"; type: "QColor" } |
1973 | + } |
1974 | + Signal { |
1975 | + name: "endChanged" |
1976 | + Parameter { name: "color"; type: "QColor" } |
1977 | + } |
1978 | + } |
1979 | + Component { |
1980 | + name: "UserMetricsOutput::UserMetrics" |
1981 | + prototype: "QObject" |
1982 | + exports: ["LightDM/Infographic 0.1"] |
1983 | + isCreatable: false |
1984 | + isSingleton: true |
1985 | + exportMetaObjectRevisions: [0] |
1986 | + Property { name: "label"; type: "string"; isReadonly: true } |
1987 | + Property { name: "username"; type: "string" } |
1988 | + Property { |
1989 | + name: "firstColor" |
1990 | + type: "UserMetricsOutput::ColorTheme" |
1991 | + isReadonly: true |
1992 | + isPointer: true |
1993 | + } |
1994 | + Property { |
1995 | + name: "secondColor" |
1996 | + type: "UserMetricsOutput::ColorTheme" |
1997 | + isReadonly: true |
1998 | + isPointer: true |
1999 | + } |
2000 | + Property { name: "firstMonth"; type: "QAbstractItemModel"; isReadonly: true; isPointer: true } |
2001 | + Property { name: "secondMonth"; type: "QAbstractItemModel"; isReadonly: true; isPointer: true } |
2002 | + Property { name: "currentDay"; type: "int"; isReadonly: true } |
2003 | + Signal { |
2004 | + name: "labelChanged" |
2005 | + Parameter { name: "label"; type: "string" } |
2006 | + } |
2007 | + Signal { |
2008 | + name: "usernameChanged" |
2009 | + Parameter { name: "username"; type: "string" } |
2010 | + } |
2011 | + Signal { |
2012 | + name: "firstColorChanged" |
2013 | + Parameter { name: "color"; type: "ColorTheme"; isPointer: true } |
2014 | + } |
2015 | + Signal { |
2016 | + name: "firstMonthChanged" |
2017 | + Parameter { name: "firstMonth"; type: "QAbstractItemModel"; isPointer: true } |
2018 | + } |
2019 | + Signal { |
2020 | + name: "currentDayChanged" |
2021 | + Parameter { name: "currentDay"; type: "int" } |
2022 | + } |
2023 | + Signal { |
2024 | + name: "secondColorChanged" |
2025 | + Parameter { name: "color"; type: "ColorTheme"; isPointer: true } |
2026 | + } |
2027 | + Signal { |
2028 | + name: "secondMonthChanged" |
2029 | + Parameter { name: "secondMonth"; type: "QAbstractItemModel"; isPointer: true } |
2030 | + } |
2031 | + Signal { name: "nextDataSource" } |
2032 | + Signal { name: "readyForDataChange" } |
2033 | + Signal { name: "dataAboutToAppear" } |
2034 | + Signal { name: "dataAppeared" } |
2035 | + Signal { name: "dataAboutToChange" } |
2036 | + Signal { name: "dataChanged" } |
2037 | + Signal { name: "dataAboutToDisappear" } |
2038 | + Signal { name: "dataDisappeared" } |
2039 | + Method { name: "nextDataSourceSlot" } |
2040 | + Method { name: "readyForDataChangeSlot" } |
2041 | + } |
2042 | + Component { |
2043 | + name: "UsersModel" |
2044 | + prototype: "QSortFilterProxyModelQML" |
2045 | + exports: ["LightDM/Users 0.1"] |
2046 | + isCreatable: false |
2047 | + isSingleton: true |
2048 | + exportMetaObjectRevisions: [0] |
2049 | + } |
2050 | +} |
2051 | |
2052 | === added file 'tests/mocks/Powerd/Powerd.qmltypes' |
2053 | --- tests/mocks/Powerd/Powerd.qmltypes 1970-01-01 00:00:00 +0000 |
2054 | +++ tests/mocks/Powerd/Powerd.qmltypes 2014-06-26 10:07:27 +0000 |
2055 | @@ -0,0 +1,46 @@ |
2056 | +import QtQuick.tooling 1.1 |
2057 | + |
2058 | +// This file describes the plugin-supplied types contained in the library. |
2059 | +// It is used for QML tooling purposes only. |
2060 | +// |
2061 | +// This file was auto-generated by: |
2062 | +// 'qmlplugindump -notrelocatable Powerd 0.1 tests/mocks' |
2063 | + |
2064 | +Module { |
2065 | + Component { |
2066 | + name: "Powerd" |
2067 | + prototype: "QObject" |
2068 | + exports: ["Powerd/Powerd 0.1"] |
2069 | + isCreatable: false |
2070 | + isSingleton: true |
2071 | + exportMetaObjectRevisions: [0] |
2072 | + Enum { |
2073 | + name: "DisplayFlag" |
2074 | + values: { |
2075 | + "UseProximity": 1, |
2076 | + "DisableAutoBrightness": 2, |
2077 | + "Bright": 4 |
2078 | + } |
2079 | + } |
2080 | + Enum { |
2081 | + name: "DisplayFlags" |
2082 | + values: { |
2083 | + "UseProximity": 1, |
2084 | + "DisableAutoBrightness": 2, |
2085 | + "Bright": 4 |
2086 | + } |
2087 | + } |
2088 | + Enum { |
2089 | + name: "Status" |
2090 | + values: { |
2091 | + "Off": 0, |
2092 | + "On": 1 |
2093 | + } |
2094 | + } |
2095 | + Signal { |
2096 | + name: "displayPowerStateChange" |
2097 | + Parameter { name: "status"; type: "int" } |
2098 | + Parameter { name: "flags"; type: "uint" } |
2099 | + } |
2100 | + } |
2101 | +} |
2102 | |
2103 | === added file 'tests/mocks/QMenuModel/QMenuModel.qmltypes' |
2104 | --- tests/mocks/QMenuModel/QMenuModel.qmltypes 1970-01-01 00:00:00 +0000 |
2105 | +++ tests/mocks/QMenuModel/QMenuModel.qmltypes 2014-06-26 10:07:27 +0000 |
2106 | @@ -0,0 +1,77 @@ |
2107 | +import QtQuick.tooling 1.1 |
2108 | + |
2109 | +// This file describes the plugin-supplied types contained in the library. |
2110 | +// It is used for QML tooling purposes only. |
2111 | +// |
2112 | +// This file was auto-generated by: |
2113 | +// 'qmlplugindump -notrelocatable QMenuModel 0.1 tests/mocks' |
2114 | + |
2115 | +Module { |
2116 | + Component { |
2117 | + name: "ActionStateParser" |
2118 | + prototype: "QObject" |
2119 | + exports: ["QMenuModel/ActionStateParser 0.1"] |
2120 | + exportMetaObjectRevisions: [0] |
2121 | + } |
2122 | + Component { |
2123 | + name: "UnityMenuModel" |
2124 | + prototype: "QAbstractListModel" |
2125 | + exports: ["QMenuModel/UnityMenuModel 0.1"] |
2126 | + exportMetaObjectRevisions: [0] |
2127 | + Property { name: "modelData"; type: "QVariant" } |
2128 | + Property { name: "busName"; type: "QByteArray" } |
2129 | + Property { name: "actions"; type: "QVariantMap" } |
2130 | + Property { name: "menuObjectPath"; type: "QByteArray" } |
2131 | + Property { name: "actionStateParser"; type: "ActionStateParser"; isPointer: true } |
2132 | + Method { |
2133 | + name: "insertRow" |
2134 | + Parameter { name: "row"; type: "int" } |
2135 | + Parameter { name: "data"; type: "QVariant" } |
2136 | + } |
2137 | + Method { |
2138 | + name: "appendRow" |
2139 | + Parameter { name: "data"; type: "QVariant" } |
2140 | + } |
2141 | + Method { |
2142 | + name: "removeRow" |
2143 | + Parameter { name: "row"; type: "int" } |
2144 | + } |
2145 | + Method { |
2146 | + name: "submenu" |
2147 | + type: "QObject*" |
2148 | + Parameter { name: "position"; type: "int" } |
2149 | + Parameter { name: "actionStateParser"; type: "QQmlComponent"; isPointer: true } |
2150 | + } |
2151 | + Method { |
2152 | + name: "submenu" |
2153 | + type: "QObject*" |
2154 | + Parameter { name: "position"; type: "int" } |
2155 | + } |
2156 | + Method { |
2157 | + name: "loadExtendedAttributes" |
2158 | + type: "bool" |
2159 | + Parameter { name: "position"; type: "int" } |
2160 | + Parameter { name: "schema"; type: "QVariantMap" } |
2161 | + } |
2162 | + Method { |
2163 | + name: "get" |
2164 | + type: "QVariant" |
2165 | + Parameter { name: "row"; type: "int" } |
2166 | + Parameter { name: "role"; type: "QByteArray" } |
2167 | + } |
2168 | + Method { |
2169 | + name: "activate" |
2170 | + Parameter { name: "index"; type: "int" } |
2171 | + Parameter { name: "parameter"; type: "QVariant" } |
2172 | + } |
2173 | + Method { |
2174 | + name: "activate" |
2175 | + Parameter { name: "index"; type: "int" } |
2176 | + } |
2177 | + Method { |
2178 | + name: "changeState" |
2179 | + Parameter { name: "index"; type: "int" } |
2180 | + Parameter { name: "parameter"; type: "QVariant" } |
2181 | + } |
2182 | + } |
2183 | +} |
2184 | |
2185 | === added file 'tests/mocks/QtMultimedia/QtMultimedia.qmltypes' |
2186 | --- tests/mocks/QtMultimedia/QtMultimedia.qmltypes 1970-01-01 00:00:00 +0000 |
2187 | +++ tests/mocks/QtMultimedia/QtMultimedia.qmltypes 2014-06-26 10:07:27 +0000 |
2188 | @@ -0,0 +1,52 @@ |
2189 | +import QtQuick.tooling 1.1 |
2190 | + |
2191 | +// This file describes the plugin-supplied types contained in the library. |
2192 | +// It is used for QML tooling purposes only. |
2193 | +// |
2194 | +// This file was auto-generated by: |
2195 | +// 'qmlplugindump -notrelocatable QtMultimedia 5.0 tests/mocks' |
2196 | + |
2197 | +Module { |
2198 | + Component { |
2199 | + name: "Audio" |
2200 | + prototype: "QObject" |
2201 | + exports: ["QtMultimedia/Audio 5.0"] |
2202 | + exportMetaObjectRevisions: [0] |
2203 | + Enum { |
2204 | + name: "PlaybackState" |
2205 | + values: { |
2206 | + "PlayingState": 0, |
2207 | + "PausedState": 1, |
2208 | + "StoppedState": 2 |
2209 | + } |
2210 | + } |
2211 | + Property { name: "source"; type: "QUrl" } |
2212 | + Property { name: "playbackState"; type: "PlaybackState"; isReadonly: true } |
2213 | + Property { name: "position"; type: "int"; isReadonly: true } |
2214 | + Property { name: "duration"; type: "int"; isReadonly: true } |
2215 | + Property { name: "errorString"; type: "string"; isReadonly: true } |
2216 | + Signal { |
2217 | + name: "sourceChanged" |
2218 | + Parameter { name: "source"; type: "QUrl" } |
2219 | + } |
2220 | + Signal { |
2221 | + name: "playbackStateChanged" |
2222 | + Parameter { name: "playbackState"; type: "PlaybackState" } |
2223 | + } |
2224 | + Signal { |
2225 | + name: "positionChanged" |
2226 | + Parameter { name: "position"; type: "int" } |
2227 | + } |
2228 | + Signal { |
2229 | + name: "durationChanged" |
2230 | + Parameter { name: "duration"; type: "int" } |
2231 | + } |
2232 | + Signal { |
2233 | + name: "errorStringChanged" |
2234 | + Parameter { name: "errorString"; type: "string" } |
2235 | + } |
2236 | + Method { name: "pause" } |
2237 | + Method { name: "play" } |
2238 | + Method { name: "stop" } |
2239 | + } |
2240 | +} |
2241 | |
2242 | === added file 'tests/mocks/Ubuntu/DownloadDaemonListener/DownloadDaemonListener.qmltypes' |
2243 | --- tests/mocks/Ubuntu/DownloadDaemonListener/DownloadDaemonListener.qmltypes 1970-01-01 00:00:00 +0000 |
2244 | +++ tests/mocks/Ubuntu/DownloadDaemonListener/DownloadDaemonListener.qmltypes 2014-06-26 10:07:27 +0000 |
2245 | @@ -0,0 +1,60 @@ |
2246 | +import QtQuick.tooling 1.1 |
2247 | + |
2248 | +// This file describes the plugin-supplied types contained in the library. |
2249 | +// It is used for QML tooling purposes only. |
2250 | +// |
2251 | +// This file was auto-generated by: |
2252 | +// 'qmlplugindump -notrelocatable Ubuntu.DownloadDaemonListener 0.1 tests/mocks' |
2253 | + |
2254 | +Module { |
2255 | + Component { |
2256 | + name: "MockDownloadTracker" |
2257 | + prototype: "QObject" |
2258 | + exports: ["Ubuntu.DownloadDaemonListener/DownloadTracker 0.1"] |
2259 | + exportMetaObjectRevisions: [0] |
2260 | + Property { name: "service"; type: "string" } |
2261 | + Property { name: "dbusPath"; type: "string" } |
2262 | + Property { name: "serviceReady"; type: "bool"; isReadonly: true } |
2263 | + Signal { |
2264 | + name: "serviceChanged" |
2265 | + Parameter { name: "service"; type: "string" } |
2266 | + } |
2267 | + Signal { |
2268 | + name: "dbusPathChanged" |
2269 | + Parameter { name: "dbusPath"; type: "string" } |
2270 | + } |
2271 | + Signal { |
2272 | + name: "serviceReadyChanged" |
2273 | + Parameter { name: "serviceReady"; type: "bool" } |
2274 | + } |
2275 | + Signal { |
2276 | + name: "canceled" |
2277 | + Parameter { name: "success"; type: "bool" } |
2278 | + } |
2279 | + Signal { |
2280 | + name: "error" |
2281 | + Parameter { name: "error"; type: "string" } |
2282 | + } |
2283 | + Signal { |
2284 | + name: "finished" |
2285 | + Parameter { name: "path"; type: "string" } |
2286 | + } |
2287 | + Signal { |
2288 | + name: "paused" |
2289 | + Parameter { name: "success"; type: "bool" } |
2290 | + } |
2291 | + Signal { |
2292 | + name: "progress" |
2293 | + Parameter { name: "received"; type: "qulonglong" } |
2294 | + Parameter { name: "total"; type: "qulonglong" } |
2295 | + } |
2296 | + Signal { |
2297 | + name: "resumed" |
2298 | + Parameter { name: "success"; type: "bool" } |
2299 | + } |
2300 | + Signal { |
2301 | + name: "started" |
2302 | + Parameter { name: "success"; type: "bool" } |
2303 | + } |
2304 | + } |
2305 | +} |
2306 | |
2307 | === added file 'tests/mocks/Ubuntu/Thumbnailer/Thumbnailer.qmltypes' |
2308 | --- tests/mocks/Ubuntu/Thumbnailer/Thumbnailer.qmltypes 1970-01-01 00:00:00 +0000 |
2309 | +++ tests/mocks/Ubuntu/Thumbnailer/Thumbnailer.qmltypes 2014-06-26 10:07:27 +0000 |
2310 | @@ -0,0 +1,17 @@ |
2311 | +import QtQuick.tooling 1.1 |
2312 | + |
2313 | +// This file describes the plugin-supplied types contained in the library. |
2314 | +// It is used for QML tooling purposes only. |
2315 | +// |
2316 | +// This file was auto-generated by: |
2317 | +// 'qmlplugindump -notrelocatable Ubuntu.Thumbnailer 0.1 tests/mocks' |
2318 | + |
2319 | +Module { |
2320 | + Component { |
2321 | + name: "QQmlTypeNotAvailable" |
2322 | + prototype: "QObject" |
2323 | + exports: ["Ubuntu.Thumbnailer/__ThumbnailerIgnoreMe 0.1"] |
2324 | + isCreatable: false |
2325 | + exportMetaObjectRevisions: [0] |
2326 | + } |
2327 | +} |
2328 | |
2329 | === added file 'tests/mocks/Unity/Application/Application.qmltypes' |
2330 | --- tests/mocks/Unity/Application/Application.qmltypes 1970-01-01 00:00:00 +0000 |
2331 | +++ tests/mocks/Unity/Application/Application.qmltypes 2014-06-26 10:07:27 +0000 |
2332 | @@ -0,0 +1,313 @@ |
2333 | +import QtQuick.tooling 1.1 |
2334 | + |
2335 | +// This file describes the plugin-supplied types contained in the library. |
2336 | +// It is used for QML tooling purposes only. |
2337 | +// |
2338 | +// This file was auto-generated by: |
2339 | +// 'qmlplugindump -notrelocatable Unity.Application 0.1 tests/mocks' |
2340 | + |
2341 | +Module { |
2342 | + Component { |
2343 | + name: "ApplicationImage" |
2344 | + defaultProperty: "data" |
2345 | + prototype: "QQuickItem" |
2346 | + exports: ["Unity.Application/ApplicationImage 0.1"] |
2347 | + exportMetaObjectRevisions: [0] |
2348 | + Enum { |
2349 | + name: "FillMode" |
2350 | + values: { |
2351 | + "Stretch": 0, |
2352 | + "PreserveAspectCrop": 1 |
2353 | + } |
2354 | + } |
2355 | + Property { name: "source"; type: "ApplicationInfo"; isPointer: true } |
2356 | + Property { name: "fillMode"; type: "FillMode" } |
2357 | + Property { name: "ready"; type: "bool" } |
2358 | + Method { name: "scheduleUpdate" } |
2359 | + Method { name: "updateFromCache" } |
2360 | + } |
2361 | + Component { |
2362 | + name: "ApplicationInfo" |
2363 | + prototype: "unity::shell::application::ApplicationInfoInterface" |
2364 | + exports: ["Unity.Application/ApplicationInfo 0.1"] |
2365 | + exportMetaObjectRevisions: [0] |
2366 | + Property { name: "fullscreen"; type: "bool" } |
2367 | + Property { name: "stage"; type: "Stage" } |
2368 | + Property { name: "imageQml"; type: "string" } |
2369 | + Property { name: "windowQml"; type: "string" } |
2370 | + Signal { name: "appIdChanged" } |
2371 | + Signal { name: "nameChanged" } |
2372 | + Signal { name: "commentChanged" } |
2373 | + Signal { name: "iconChanged" } |
2374 | + Signal { name: "stateChanged" } |
2375 | + Signal { name: "focusedChanged" } |
2376 | + Signal { name: "screenshotChanged" } |
2377 | + } |
2378 | + Component { |
2379 | + name: "ApplicationManager" |
2380 | + prototype: "unity::shell::application::ApplicationManagerInterface" |
2381 | + exports: ["Unity.Application/ApplicationManager 0.1"] |
2382 | + isCreatable: false |
2383 | + isSingleton: true |
2384 | + exportMetaObjectRevisions: [0] |
2385 | + Enum { |
2386 | + name: "Role" |
2387 | + values: { |
2388 | + "Dash": 0, |
2389 | + "Default": 1, |
2390 | + "Indicators": 2, |
2391 | + "Notifications": 3, |
2392 | + "Greeter": 4, |
2393 | + "Launcher": 5, |
2394 | + "OnScreenKeyboard": 6, |
2395 | + "ShutdownDialog": 7 |
2396 | + } |
2397 | + } |
2398 | + Enum { |
2399 | + name: "StageHint" |
2400 | + values: { |
2401 | + "MainStage": 0, |
2402 | + "IntegrationStage": 1, |
2403 | + "ShareStage": 2, |
2404 | + "ContentPickingStage": 3, |
2405 | + "SideStage": 4, |
2406 | + "ConfigurationStage": 5 |
2407 | + } |
2408 | + } |
2409 | + Enum { |
2410 | + name: "FormFactorHint" |
2411 | + values: { |
2412 | + "DesktopFormFactor": 0, |
2413 | + "PhoneFormFactor": 1, |
2414 | + "TabletFormFactor": 2 |
2415 | + } |
2416 | + } |
2417 | + Enum { |
2418 | + name: "FavoriteApplication" |
2419 | + values: { |
2420 | + "CameraApplication": 0, |
2421 | + "GalleryApplication": 1, |
2422 | + "BrowserApplication": 2, |
2423 | + "ShareApplication": 3, |
2424 | + "PhoneApplication": 4, |
2425 | + "DialerApplication": 5, |
2426 | + "MessagingApplication": 6, |
2427 | + "AddressbookApplication": 7 |
2428 | + } |
2429 | + } |
2430 | + Enum { |
2431 | + name: "ExecFlags" |
2432 | + values: { |
2433 | + "NoFlag": 0, |
2434 | + "ForceMainStage": 1 |
2435 | + } |
2436 | + } |
2437 | + Property { name: "keyboardHeight"; type: "int"; isReadonly: true } |
2438 | + Property { name: "keyboardVisible"; type: "bool"; isReadonly: true } |
2439 | + Property { name: "sideStageWidth"; type: "int"; isReadonly: true } |
2440 | + Property { name: "stageHint"; type: "StageHint"; isReadonly: true } |
2441 | + Property { name: "formFactorHint"; type: "FormFactorHint"; isReadonly: true } |
2442 | + Property { name: "fake"; type: "bool"; isReadonly: true } |
2443 | + Property { name: "rightMargin"; type: "int" } |
2444 | + Signal { |
2445 | + name: "focusRequested" |
2446 | + Parameter { name: "favoriteApplication"; type: "FavoriteApplication" } |
2447 | + } |
2448 | + Signal { |
2449 | + name: "focusRequested" |
2450 | + Parameter { name: "appId"; type: "string" } |
2451 | + } |
2452 | + Method { |
2453 | + name: "get" |
2454 | + type: "ApplicationInfo*" |
2455 | + Parameter { name: "index"; type: "int" } |
2456 | + } |
2457 | + Method { |
2458 | + name: "findApplication" |
2459 | + type: "ApplicationInfo*" |
2460 | + Parameter { name: "appId"; type: "string" } |
2461 | + } |
2462 | + Method { |
2463 | + name: "move" |
2464 | + Parameter { name: "from"; type: "int" } |
2465 | + Parameter { name: "to"; type: "int" } |
2466 | + } |
2467 | + Method { |
2468 | + name: "requestFocusApplication" |
2469 | + type: "bool" |
2470 | + Parameter { name: "appId"; type: "string" } |
2471 | + } |
2472 | + Method { |
2473 | + name: "focusApplication" |
2474 | + type: "bool" |
2475 | + Parameter { name: "appId"; type: "string" } |
2476 | + } |
2477 | + Method { name: "unfocusCurrentApplication" } |
2478 | + Method { |
2479 | + name: "startApplication" |
2480 | + type: "ApplicationInfo*" |
2481 | + Parameter { name: "appId"; type: "string" } |
2482 | + Parameter { name: "arguments"; type: "QStringList" } |
2483 | + } |
2484 | + Method { |
2485 | + name: "startApplication" |
2486 | + type: "ApplicationInfo*" |
2487 | + Parameter { name: "appId"; type: "string" } |
2488 | + } |
2489 | + Method { |
2490 | + name: "startApplication" |
2491 | + type: "ApplicationInfo*" |
2492 | + Parameter { name: "appId"; type: "string" } |
2493 | + Parameter { name: "flags"; type: "ExecFlags" } |
2494 | + Parameter { name: "arguments"; type: "QStringList" } |
2495 | + } |
2496 | + Method { |
2497 | + name: "startApplication" |
2498 | + type: "ApplicationInfo*" |
2499 | + Parameter { name: "appId"; type: "string" } |
2500 | + Parameter { name: "flags"; type: "ExecFlags" } |
2501 | + } |
2502 | + Method { |
2503 | + name: "stopApplication" |
2504 | + type: "bool" |
2505 | + Parameter { name: "appId"; type: "string" } |
2506 | + } |
2507 | + Method { |
2508 | + name: "updateScreenshot" |
2509 | + type: "bool" |
2510 | + Parameter { name: "appId"; type: "string" } |
2511 | + } |
2512 | + Method { name: "availableApplications"; type: "QStringList" } |
2513 | + } |
2514 | + Component { |
2515 | + name: "unity::shell::application::ApplicationInfoInterface" |
2516 | + prototype: "QObject" |
2517 | + exports: ["Unity.Application/ApplicationInfoInterface 0.1"] |
2518 | + isCreatable: false |
2519 | + exportMetaObjectRevisions: [0] |
2520 | + Enum { |
2521 | + name: "Stage" |
2522 | + values: { |
2523 | + "MainStage": 0, |
2524 | + "SideStage": 1 |
2525 | + } |
2526 | + } |
2527 | + Enum { |
2528 | + name: "State" |
2529 | + values: { |
2530 | + "Starting": 0, |
2531 | + "Running": 1, |
2532 | + "Suspended": 2, |
2533 | + "Stopped": 3 |
2534 | + } |
2535 | + } |
2536 | + Property { name: "appId"; type: "string"; isReadonly: true } |
2537 | + Property { name: "name"; type: "string"; isReadonly: true } |
2538 | + Property { name: "comment"; type: "string"; isReadonly: true } |
2539 | + Property { name: "icon"; type: "QUrl"; isReadonly: true } |
2540 | + Property { name: "stage"; type: "Stage"; isReadonly: true } |
2541 | + Property { name: "state"; type: "State"; isReadonly: true } |
2542 | + Property { name: "focused"; type: "bool"; isReadonly: true } |
2543 | + Property { name: "screenshot"; type: "QUrl"; isReadonly: true } |
2544 | + Signal { |
2545 | + name: "nameChanged" |
2546 | + Parameter { name: "name"; type: "string" } |
2547 | + } |
2548 | + Signal { |
2549 | + name: "commentChanged" |
2550 | + Parameter { name: "comment"; type: "string" } |
2551 | + } |
2552 | + Signal { |
2553 | + name: "iconChanged" |
2554 | + Parameter { name: "icon"; type: "QUrl" } |
2555 | + } |
2556 | + Signal { |
2557 | + name: "stageChanged" |
2558 | + Parameter { name: "stage"; type: "Stage" } |
2559 | + } |
2560 | + Signal { |
2561 | + name: "stateChanged" |
2562 | + Parameter { name: "state"; type: "State" } |
2563 | + } |
2564 | + Signal { |
2565 | + name: "focusedChanged" |
2566 | + Parameter { name: "focused"; type: "bool" } |
2567 | + } |
2568 | + Signal { |
2569 | + name: "screenshotChanged" |
2570 | + Parameter { name: "screenshot"; type: "QUrl" } |
2571 | + } |
2572 | + } |
2573 | + Component { |
2574 | + name: "unity::shell::application::ApplicationManagerInterface" |
2575 | + prototype: "QAbstractListModel" |
2576 | + exports: ["Unity.Application/ApplicationManagerInterface 0.1"] |
2577 | + isCreatable: false |
2578 | + exportMetaObjectRevisions: [0] |
2579 | + Enum { |
2580 | + name: "Roles" |
2581 | + values: { |
2582 | + "RoleAppId": 256, |
2583 | + "RoleName": 257, |
2584 | + "RoleComment": 258, |
2585 | + "RoleIcon": 259, |
2586 | + "RoleStage": 260, |
2587 | + "RoleState": 261, |
2588 | + "RoleFocused": 262, |
2589 | + "RoleScreenshot": 263 |
2590 | + } |
2591 | + } |
2592 | + Property { name: "count"; type: "int"; isReadonly: true } |
2593 | + Property { name: "focusedApplicationId"; type: "string"; isReadonly: true } |
2594 | + Property { name: "suspended"; type: "bool" } |
2595 | + Signal { |
2596 | + name: "focusRequested" |
2597 | + Parameter { name: "appId"; type: "string" } |
2598 | + } |
2599 | + Signal { |
2600 | + name: "applicationAdded" |
2601 | + Parameter { name: "appId"; type: "string" } |
2602 | + } |
2603 | + Signal { |
2604 | + name: "applicationRemoved" |
2605 | + Parameter { name: "appId"; type: "string" } |
2606 | + } |
2607 | + Method { |
2608 | + name: "get" |
2609 | + type: "unity::shell::application::ApplicationInfoInterface*" |
2610 | + Parameter { name: "index"; type: "int" } |
2611 | + } |
2612 | + Method { |
2613 | + name: "findApplication" |
2614 | + type: "unity::shell::application::ApplicationInfoInterface*" |
2615 | + Parameter { name: "appId"; type: "string" } |
2616 | + } |
2617 | + Method { |
2618 | + name: "requestFocusApplication" |
2619 | + type: "bool" |
2620 | + Parameter { name: "appId"; type: "string" } |
2621 | + } |
2622 | + Method { |
2623 | + name: "focusApplication" |
2624 | + type: "bool" |
2625 | + Parameter { name: "appId"; type: "string" } |
2626 | + } |
2627 | + Method { name: "unfocusCurrentApplication" } |
2628 | + Method { |
2629 | + name: "startApplication" |
2630 | + type: "unity::shell::application::ApplicationInfoInterface*" |
2631 | + Parameter { name: "appId"; type: "string" } |
2632 | + Parameter { name: "arguments"; type: "QStringList" } |
2633 | + } |
2634 | + Method { |
2635 | + name: "stopApplication" |
2636 | + type: "bool" |
2637 | + Parameter { name: "appId"; type: "string" } |
2638 | + } |
2639 | + Method { |
2640 | + name: "updateScreenshot" |
2641 | + type: "bool" |
2642 | + Parameter { name: "appId"; type: "string" } |
2643 | + } |
2644 | + } |
2645 | +} |
2646 | |
2647 | === modified file 'tests/mocks/Unity/Application/CMakeLists.txt' |
2648 | --- tests/mocks/Unity/Application/CMakeLists.txt 2014-05-15 14:57:23 +0000 |
2649 | +++ tests/mocks/Unity/Application/CMakeLists.txt 2014-06-26 10:07:27 +0000 |
2650 | @@ -22,4 +22,5 @@ |
2651 | add_unity8_mock(Unity.Application 0.1 Unity/Application |
2652 | PREFIX nonmirplugins |
2653 | TARGETS NonMirUnityApplicationQml |
2654 | - BINARY_DIR ${CMAKE_BINARY_DIR}/nonmirplugins) |
2655 | + BINARY_DIR ${CMAKE_BINARY_DIR}/nonmirplugins |
2656 | + NO_TYPES) |
2657 | |
2658 | === added file 'tests/mocks/Unity/Indicators/Indicators.qmltypes' |
2659 | --- tests/mocks/Unity/Indicators/Indicators.qmltypes 1970-01-01 00:00:00 +0000 |
2660 | +++ tests/mocks/Unity/Indicators/Indicators.qmltypes 2014-06-26 10:07:27 +0000 |
2661 | @@ -0,0 +1,210 @@ |
2662 | +import QtQuick.tooling 1.1 |
2663 | + |
2664 | +// This file describes the plugin-supplied types contained in the library. |
2665 | +// It is used for QML tooling purposes only. |
2666 | +// |
2667 | +// This file was auto-generated by: |
2668 | +// 'qmlplugindump -notrelocatable Unity.Indicators 0.1 tests/mocks' |
2669 | + |
2670 | +Module { |
2671 | + Component { |
2672 | + name: "ActionState" |
2673 | + prototype: "QObject" |
2674 | + exports: ["Unity.Indicators/ActionState 0.1"] |
2675 | + isCreatable: false |
2676 | + exportMetaObjectRevisions: [0] |
2677 | + Enum { |
2678 | + name: "ActionStates" |
2679 | + values: { |
2680 | + "Label": 0, |
2681 | + "IconSource": 1, |
2682 | + "AccessableName": 2, |
2683 | + "Visible": 3 |
2684 | + } |
2685 | + } |
2686 | + } |
2687 | + Component { |
2688 | + name: "FakeIndicatorsModel" |
2689 | + prototype: "QAbstractListModel" |
2690 | + exports: ["Unity.Indicators/FakeIndicatorsModel 0.1"] |
2691 | + exportMetaObjectRevisions: [0] |
2692 | + Property { name: "count"; type: "int"; isReadonly: true } |
2693 | + Method { |
2694 | + name: "load" |
2695 | + Parameter { name: "profile"; type: "string" } |
2696 | + } |
2697 | + Method { name: "unload" } |
2698 | + Method { |
2699 | + name: "append" |
2700 | + Parameter { name: "row"; type: "QVariantMap" } |
2701 | + } |
2702 | + Method { |
2703 | + name: "data" |
2704 | + type: "QVariant" |
2705 | + Parameter { name: "row"; type: "int" } |
2706 | + Parameter { name: "role"; type: "int" } |
2707 | + } |
2708 | + } |
2709 | + Component { |
2710 | + name: "FlatMenuProxyModelRole" |
2711 | + prototype: "QObject" |
2712 | + exports: ["Unity.Indicators/FlatMenuProxyModelRole 0.1"] |
2713 | + isCreatable: false |
2714 | + exportMetaObjectRevisions: [0] |
2715 | + Enum { |
2716 | + name: "Roles" |
2717 | + values: { |
2718 | + "Action": 1, |
2719 | + "Label": 2, |
2720 | + "Extra": 3, |
2721 | + "Depth": 4, |
2722 | + "hasSection": 5, |
2723 | + "hasSubMenu": 6 |
2724 | + } |
2725 | + } |
2726 | + } |
2727 | + Component { |
2728 | + name: "IndicatorsModelRole" |
2729 | + prototype: "QObject" |
2730 | + exports: ["Unity.Indicators/IndicatorsModelRole 0.1"] |
2731 | + isCreatable: false |
2732 | + exportMetaObjectRevisions: [0] |
2733 | + Enum { |
2734 | + name: "Roles" |
2735 | + values: { |
2736 | + "Identifier": 0, |
2737 | + "Position": 1, |
2738 | + "WidgetSource": 2, |
2739 | + "PageSource": 3, |
2740 | + "IndicatorProperties": 4, |
2741 | + "IsVisible": 5 |
2742 | + } |
2743 | + } |
2744 | + } |
2745 | + Component { |
2746 | + name: "MenuContentActivator" |
2747 | + prototype: "QObject" |
2748 | + exports: ["Unity.Indicators/MenuContentActivator 0.1"] |
2749 | + exportMetaObjectRevisions: [0] |
2750 | + Property { name: "baseIndex"; type: "int" } |
2751 | + Property { name: "running"; type: "bool" } |
2752 | + Property { name: "count"; type: "int" } |
2753 | + Property { name: "content"; type: "MenuContentState"; isList: true; isReadonly: true } |
2754 | + Signal { |
2755 | + name: "baseIndexChanged" |
2756 | + Parameter { name: "baseIndex"; type: "int" } |
2757 | + } |
2758 | + Signal { |
2759 | + name: "deltaChanged" |
2760 | + Parameter { name: "delta"; type: "int" } |
2761 | + } |
2762 | + Signal { |
2763 | + name: "runningChanged" |
2764 | + Parameter { name: "running"; type: "bool" } |
2765 | + } |
2766 | + Signal { |
2767 | + name: "countChanged" |
2768 | + Parameter { name: "count"; type: "int" } |
2769 | + } |
2770 | + Method { name: "restart" } |
2771 | + Method { name: "stop" } |
2772 | + Method { name: "clear" } |
2773 | + Method { |
2774 | + name: "isMenuContentActive" |
2775 | + type: "bool" |
2776 | + Parameter { name: "index"; type: "int" } |
2777 | + } |
2778 | + } |
2779 | + Component { |
2780 | + name: "MenuContentState" |
2781 | + prototype: "QObject" |
2782 | + exports: ["Unity.Indicators/MenuContentState 0.1"] |
2783 | + isCreatable: false |
2784 | + exportMetaObjectRevisions: [0] |
2785 | + Property { name: "active"; type: "bool"; isReadonly: true } |
2786 | + } |
2787 | + Component { |
2788 | + name: "NetworkActionState" |
2789 | + prototype: "QObject" |
2790 | + exports: ["Unity.Indicators/NetworkActionState 0.1"] |
2791 | + isCreatable: false |
2792 | + exportMetaObjectRevisions: [0] |
2793 | + Enum { |
2794 | + name: "NetworkActionStates" |
2795 | + values: { |
2796 | + "Connection": 1, |
2797 | + "SignalStrength": 2 |
2798 | + } |
2799 | + } |
2800 | + } |
2801 | + Component { |
2802 | + name: "NetworkConnection" |
2803 | + prototype: "QObject" |
2804 | + exports: ["Unity.Indicators/NetworkConnection 0.1"] |
2805 | + isCreatable: false |
2806 | + exportMetaObjectRevisions: [0] |
2807 | + Enum { |
2808 | + name: "NetworkConnectionStates" |
2809 | + values: { |
2810 | + "Initial": 0, |
2811 | + "Activating": 1, |
2812 | + "Activated": 2, |
2813 | + "Deactivating": 3 |
2814 | + } |
2815 | + } |
2816 | + } |
2817 | + Component { |
2818 | + name: "QAbstractProxyModel" |
2819 | + prototype: "QAbstractItemModel" |
2820 | + Property { name: "sourceModel"; type: "QAbstractItemModel"; isPointer: true } |
2821 | + } |
2822 | + Component { name: "QIdentityProxyModel"; prototype: "QAbstractProxyModel" } |
2823 | + Component { |
2824 | + name: "UnityMenuModelStack" |
2825 | + prototype: "QObject" |
2826 | + exports: ["Unity.Indicators/UnityMenuModelStack 0.1"] |
2827 | + exportMetaObjectRevisions: [0] |
2828 | + Property { name: "head"; type: "UnityMenuModel"; isPointer: true } |
2829 | + Property { name: "tail"; type: "UnityMenuModel"; isReadonly: true; isPointer: true } |
2830 | + Property { name: "count"; type: "int"; isReadonly: true } |
2831 | + Signal { |
2832 | + name: "headChanged" |
2833 | + Parameter { name: "head"; type: "UnityMenuModel"; isPointer: true } |
2834 | + } |
2835 | + Signal { |
2836 | + name: "tailChanged" |
2837 | + Parameter { name: "tail"; type: "UnityMenuModel"; isPointer: true } |
2838 | + } |
2839 | + Signal { |
2840 | + name: "countChanged" |
2841 | + Parameter { name: "count"; type: "int" } |
2842 | + } |
2843 | + Method { |
2844 | + name: "push" |
2845 | + Parameter { name: "model"; type: "UnityMenuModel"; isPointer: true } |
2846 | + Parameter { name: "menuIndex"; type: "int" } |
2847 | + } |
2848 | + Method { name: "pop"; type: "UnityMenuModel*" } |
2849 | + } |
2850 | + Component { |
2851 | + name: "VisibleIndicatorsModel" |
2852 | + prototype: "QIdentityProxyModel" |
2853 | + exports: ["Unity.Indicators/VisibleIndicatorsModel 0.1"] |
2854 | + exportMetaObjectRevisions: [0] |
2855 | + Property { name: "model"; type: "QAbstractItemModel"; isPointer: true } |
2856 | + Property { name: "visible"; type: "QVariantMap" } |
2857 | + Signal { name: "totalCountChanged" } |
2858 | + Method { |
2859 | + name: "onBeginRowInserted" |
2860 | + Parameter { type: "QModelIndex" } |
2861 | + Parameter { name: "start"; type: "int" } |
2862 | + Parameter { name: "end"; type: "int" } |
2863 | + } |
2864 | + Method { |
2865 | + name: "onRowInserted" |
2866 | + Parameter { type: "QModelIndex" } |
2867 | + Parameter { name: "start"; type: "int" } |
2868 | + Parameter { name: "end"; type: "int" } |
2869 | + } |
2870 | + } |
2871 | +} |
2872 | |
2873 | === removed file 'tests/mocks/Unity/Indicators/MenuItemFactory.qml' |
2874 | --- tests/mocks/Unity/Indicators/MenuItemFactory.qml 2013-12-13 13:12:40 +0000 |
2875 | +++ tests/mocks/Unity/Indicators/MenuItemFactory.qml 1970-01-01 00:00:00 +0000 |
2876 | @@ -1,38 +0,0 @@ |
2877 | -/* |
2878 | - * Copyright 2013 Canonical Ltd. |
2879 | - * |
2880 | - * This program is free software; you can redistribute it and/or modify |
2881 | - * it under the terms of the GNU Lesser General Public License as published by |
2882 | - * the Free Software Foundation; version 3. |
2883 | - * |
2884 | - * This program is distributed in the hope that it will be useful, |
2885 | - * but WITHOUT ANY WARRANTY; without even the implied warranty of |
2886 | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
2887 | - * GNU Lesser General Public License for more details. |
2888 | - * |
2889 | - * You should have received a copy of the GNU Lesser General Public License |
2890 | - * along with this program. If not, see <http://www.gnu.org/licenses/>. |
2891 | - * |
2892 | - * Authors: |
2893 | - * Nick Dedekind <nick.dedekind@canonical.com> |
2894 | - */ |
2895 | - |
2896 | -import QtQuick 2.0 |
2897 | -import Ubuntu.Components.ListItems 0.1 as ListItem |
2898 | - |
2899 | -Item { |
2900 | - id: menuFactory |
2901 | - |
2902 | - property var menuModel: null |
2903 | - |
2904 | - Component { |
2905 | - id: standardMenu; |
2906 | - ListItem.Standard { |
2907 | - objectName: "standardMenu" |
2908 | - } |
2909 | - } |
2910 | - |
2911 | - function load(modelData) { |
2912 | - return standardMenu; |
2913 | - } |
2914 | -} |
2915 | |
2916 | === modified file 'tests/mocks/Unity/Indicators/qmldir' |
2917 | --- tests/mocks/Unity/Indicators/qmldir 2014-05-02 22:57:21 +0000 |
2918 | +++ tests/mocks/Unity/Indicators/qmldir 2014-06-26 10:07:27 +0000 |
2919 | @@ -6,5 +6,4 @@ |
2920 | IndicatorBase 0.1 IndicatorBase.qml |
2921 | IndicatorsModel 0.1 IndicatorsModel.qml |
2922 | FakeMenuPage 0.1 FakeMenuPage.qml |
2923 | -MenuItemFactory 0.1 MenuItemFactory.qml |
2924 | RootActionState 0.1 RootActionState.qml |
2925 | |
2926 | === added file 'tests/mocks/Unity/Launcher/Launcher.qmltypes' |
2927 | --- tests/mocks/Unity/Launcher/Launcher.qmltypes 1970-01-01 00:00:00 +0000 |
2928 | +++ tests/mocks/Unity/Launcher/Launcher.qmltypes 2014-06-26 10:07:27 +0000 |
2929 | @@ -0,0 +1,171 @@ |
2930 | +import QtQuick.tooling 1.1 |
2931 | + |
2932 | +// This file describes the plugin-supplied types contained in the library. |
2933 | +// It is used for QML tooling purposes only. |
2934 | +// |
2935 | +// This file was auto-generated by: |
2936 | +// 'qmlplugindump -notrelocatable Unity.Launcher 0.1 tests/mocks' |
2937 | + |
2938 | +Module { |
2939 | + Component { |
2940 | + name: "MockLauncherItem" |
2941 | + prototype: "unity::shell::launcher::LauncherItemInterface" |
2942 | + exports: ["Unity.Launcher/LauncherItem 0.1"] |
2943 | + isCreatable: false |
2944 | + exportMetaObjectRevisions: [0] |
2945 | + } |
2946 | + Component { |
2947 | + name: "MockLauncherModel" |
2948 | + prototype: "unity::shell::launcher::LauncherModelInterface" |
2949 | + exports: ["Unity.Launcher/LauncherModel 0.1"] |
2950 | + isCreatable: false |
2951 | + isSingleton: true |
2952 | + exportMetaObjectRevisions: [0] |
2953 | + Signal { |
2954 | + name: "quickListTriggered" |
2955 | + Parameter { name: "appId"; type: "string" } |
2956 | + Parameter { name: "index"; type: "int" } |
2957 | + } |
2958 | + Method { |
2959 | + name: "get" |
2960 | + type: "unity::shell::launcher::LauncherItemInterface*" |
2961 | + Parameter { name: "index"; type: "int" } |
2962 | + } |
2963 | + Method { |
2964 | + name: "move" |
2965 | + Parameter { name: "oldIndex"; type: "int" } |
2966 | + Parameter { name: "newIndex"; type: "int" } |
2967 | + } |
2968 | + Method { |
2969 | + name: "pin" |
2970 | + Parameter { name: "appId"; type: "string" } |
2971 | + Parameter { name: "index"; type: "int" } |
2972 | + } |
2973 | + Method { |
2974 | + name: "pin" |
2975 | + Parameter { name: "appId"; type: "string" } |
2976 | + } |
2977 | + Method { |
2978 | + name: "requestRemove" |
2979 | + Parameter { name: "appId"; type: "string" } |
2980 | + } |
2981 | + Method { |
2982 | + name: "quickListActionInvoked" |
2983 | + Parameter { name: "appId"; type: "string" } |
2984 | + Parameter { name: "actionIndex"; type: "int" } |
2985 | + } |
2986 | + Method { |
2987 | + name: "setUser" |
2988 | + Parameter { name: "username"; type: "string" } |
2989 | + } |
2990 | + Method { |
2991 | + name: "getUrlForAppId" |
2992 | + type: "string" |
2993 | + Parameter { name: "appId"; type: "string" } |
2994 | + } |
2995 | + } |
2996 | + Component { |
2997 | + name: "MockQuickListModel" |
2998 | + prototype: "unity::shell::launcher::QuickListModelInterface" |
2999 | + exports: ["Unity.Launcher/QuickListModel 0.1"] |
3000 | + isCreatable: false |
3001 | + exportMetaObjectRevisions: [0] |
3002 | + } |
3003 | + Component { |
3004 | + name: "unity::shell::launcher::LauncherItemInterface" |
3005 | + prototype: "QObject" |
3006 | + exports: ["Unity.Launcher/LauncherItemInterface 0.1"] |
3007 | + isCreatable: false |
3008 | + exportMetaObjectRevisions: [0] |
3009 | + Property { name: "appId"; type: "string"; isReadonly: true } |
3010 | + Property { name: "name"; type: "string"; isReadonly: true } |
3011 | + Property { name: "icon"; type: "string"; isReadonly: true } |
3012 | + Property { name: "pinned"; type: "bool"; isReadonly: true } |
3013 | + Property { name: "running"; type: "bool"; isReadonly: true } |
3014 | + Property { name: "recent"; type: "bool"; isReadonly: true } |
3015 | + Property { name: "progress"; type: "int"; isReadonly: true } |
3016 | + Property { name: "count"; type: "int"; isReadonly: true } |
3017 | + Property { name: "focused"; type: "bool"; isReadonly: true } |
3018 | + Property { |
3019 | + name: "quickList" |
3020 | + type: "unity::shell::launcher::QuickListModelInterface" |
3021 | + isReadonly: true |
3022 | + isPointer: true |
3023 | + } |
3024 | + Signal { |
3025 | + name: "pinnedChanged" |
3026 | + Parameter { name: "pinned"; type: "bool" } |
3027 | + } |
3028 | + Signal { |
3029 | + name: "runningChanged" |
3030 | + Parameter { name: "running"; type: "bool" } |
3031 | + } |
3032 | + Signal { |
3033 | + name: "recentChanged" |
3034 | + Parameter { name: "running"; type: "bool" } |
3035 | + } |
3036 | + Signal { |
3037 | + name: "progressChanged" |
3038 | + Parameter { name: "progress"; type: "int" } |
3039 | + } |
3040 | + Signal { |
3041 | + name: "countChanged" |
3042 | + Parameter { name: "count"; type: "int" } |
3043 | + } |
3044 | + Signal { |
3045 | + name: "focusedChanged" |
3046 | + Parameter { name: "focused"; type: "bool" } |
3047 | + } |
3048 | + } |
3049 | + Component { |
3050 | + name: "unity::shell::launcher::LauncherModelInterface" |
3051 | + prototype: "QAbstractListModel" |
3052 | + exports: ["Unity.Launcher/LauncherModelInterface 0.1"] |
3053 | + isCreatable: false |
3054 | + exportMetaObjectRevisions: [0] |
3055 | + Property { |
3056 | + name: "applicationManager" |
3057 | + type: "unity::shell::application::ApplicationManagerInterface" |
3058 | + isPointer: true |
3059 | + } |
3060 | + Method { |
3061 | + name: "move" |
3062 | + Parameter { name: "oldIndex"; type: "int" } |
3063 | + Parameter { name: "newIndex"; type: "int" } |
3064 | + } |
3065 | + Method { |
3066 | + name: "get" |
3067 | + type: "unity::shell::launcher::LauncherItemInterface*" |
3068 | + Parameter { name: "index"; type: "int" } |
3069 | + } |
3070 | + Method { |
3071 | + name: "pin" |
3072 | + Parameter { name: "appId"; type: "string" } |
3073 | + Parameter { name: "index"; type: "int" } |
3074 | + } |
3075 | + Method { |
3076 | + name: "pin" |
3077 | + Parameter { name: "appId"; type: "string" } |
3078 | + } |
3079 | + Method { |
3080 | + name: "requestRemove" |
3081 | + Parameter { name: "appId"; type: "string" } |
3082 | + } |
3083 | + Method { |
3084 | + name: "quickListActionInvoked" |
3085 | + Parameter { name: "appId"; type: "string" } |
3086 | + Parameter { name: "actionIndex"; type: "int" } |
3087 | + } |
3088 | + Method { |
3089 | + name: "setUser" |
3090 | + Parameter { name: "username"; type: "string" } |
3091 | + } |
3092 | + } |
3093 | + Component { |
3094 | + name: "unity::shell::launcher::QuickListModelInterface" |
3095 | + prototype: "QAbstractListModel" |
3096 | + exports: ["Unity.Launcher/QuickListModelInterface 0.1"] |
3097 | + isCreatable: false |
3098 | + exportMetaObjectRevisions: [0] |
3099 | + } |
3100 | +} |
3101 | |
3102 | === added file 'tests/mocks/Unity/Notifications/Notifications.qmltypes' |
3103 | --- tests/mocks/Unity/Notifications/Notifications.qmltypes 1970-01-01 00:00:00 +0000 |
3104 | +++ tests/mocks/Unity/Notifications/Notifications.qmltypes 2014-06-26 10:07:27 +0000 |
3105 | @@ -0,0 +1,10 @@ |
3106 | +import QtQuick.tooling 1.1 |
3107 | + |
3108 | +// This file describes the plugin-supplied types contained in the library. |
3109 | +// It is used for QML tooling purposes only. |
3110 | +// |
3111 | +// This file was auto-generated by: |
3112 | +// 'qmlplugindump -notrelocatable Unity.Notifications 1.0 tests/mocks' |
3113 | + |
3114 | +Module { |
3115 | +} |
3116 | |
3117 | === added file 'tests/mocks/Unity/Unity.qmltypes' |
3118 | --- tests/mocks/Unity/Unity.qmltypes 1970-01-01 00:00:00 +0000 |
3119 | +++ tests/mocks/Unity/Unity.qmltypes 2014-06-26 10:07:27 +0000 |
3120 | @@ -0,0 +1,345 @@ |
3121 | +import QtQuick.tooling 1.1 |
3122 | + |
3123 | +// This file describes the plugin-supplied types contained in the library. |
3124 | +// It is used for QML tooling purposes only. |
3125 | +// |
3126 | +// This file was auto-generated by: |
3127 | +// 'qmlplugindump -notrelocatable Unity 0.2 tests/mocks' |
3128 | + |
3129 | +Module { |
3130 | + Component { |
3131 | + name: "Categories" |
3132 | + prototype: "unity::shell::scopes::CategoriesInterface" |
3133 | + Method { |
3134 | + name: "addSpecialCategory" |
3135 | + Parameter { name: "categoryId"; type: "string" } |
3136 | + Parameter { name: "name"; type: "string" } |
3137 | + Parameter { name: "icon"; type: "string" } |
3138 | + Parameter { name: "rawTemplate"; type: "string" } |
3139 | + Parameter { name: "countObject"; type: "QObject"; isPointer: true } |
3140 | + } |
3141 | + Method { |
3142 | + name: "overrideCategoryJson" |
3143 | + type: "bool" |
3144 | + Parameter { name: "categoryId"; type: "string" } |
3145 | + Parameter { name: "json"; type: "string" } |
3146 | + } |
3147 | + } |
3148 | + Component { |
3149 | + name: "PreviewModel" |
3150 | + prototype: "unity::shell::scopes::PreviewModelInterface" |
3151 | + exports: ["Unity/FakePreviewModel 0.2"] |
3152 | + exportMetaObjectRevisions: [0] |
3153 | + } |
3154 | + Component { |
3155 | + name: "PreviewStack" |
3156 | + prototype: "unity::shell::scopes::PreviewStackInterface" |
3157 | + exports: ["Unity/PreviewStack 0.2"] |
3158 | + isCreatable: false |
3159 | + exportMetaObjectRevisions: [0] |
3160 | + Method { |
3161 | + name: "getPreviewModel" |
3162 | + type: "unity::shell::scopes::PreviewModelInterface*" |
3163 | + Parameter { name: "index"; type: "int" } |
3164 | + } |
3165 | + } |
3166 | + Component { |
3167 | + name: "PreviewWidgetModel" |
3168 | + prototype: "unity::shell::scopes::PreviewWidgetModelInterface" |
3169 | + exports: ["Unity/PreviewWidgetModel 0.2"] |
3170 | + isCreatable: false |
3171 | + exportMetaObjectRevisions: [0] |
3172 | + } |
3173 | + Component { |
3174 | + name: "ResultsModel" |
3175 | + prototype: "unity::shell::scopes::ResultsModelInterface" |
3176 | + exports: ["Unity/ResultsModel 0.2"] |
3177 | + isCreatable: false |
3178 | + exportMetaObjectRevisions: [0] |
3179 | + } |
3180 | + Component { |
3181 | + name: "Scope" |
3182 | + prototype: "unity::shell::scopes::ScopeInterface" |
3183 | + exports: ["Unity/MockScope 0.2"] |
3184 | + exportMetaObjectRevisions: [0] |
3185 | + Method { |
3186 | + name: "setSearchInProgress" |
3187 | + Parameter { name: "inProg"; type: "bool" } |
3188 | + } |
3189 | + Method { |
3190 | + name: "activate" |
3191 | + Parameter { name: "result"; type: "QVariant" } |
3192 | + } |
3193 | + Method { |
3194 | + name: "preview" |
3195 | + type: "PreviewStack*" |
3196 | + Parameter { name: "result"; type: "QVariant" } |
3197 | + } |
3198 | + Method { name: "cancelActivation" } |
3199 | + Method { |
3200 | + name: "closeScope" |
3201 | + Parameter { name: "scope"; type: "unity::shell::scopes::ScopeInterface"; isPointer: true } |
3202 | + } |
3203 | + Method { |
3204 | + name: "getDepartment" |
3205 | + type: "unity::shell::scopes::DepartmentInterface*" |
3206 | + Parameter { name: "id"; type: "string" } |
3207 | + } |
3208 | + Method { |
3209 | + name: "loadDepartment" |
3210 | + Parameter { name: "id"; type: "string" } |
3211 | + } |
3212 | + } |
3213 | + Component { |
3214 | + name: "Scopes" |
3215 | + prototype: "unity::shell::scopes::ScopesInterface" |
3216 | + exports: ["Unity/Scopes 0.2"] |
3217 | + exportMetaObjectRevisions: [0] |
3218 | + Method { |
3219 | + name: "rowCount" |
3220 | + type: "int" |
3221 | + Parameter { name: "parent"; type: "QModelIndex" } |
3222 | + } |
3223 | + Method { name: "rowCount"; type: "int" } |
3224 | + Method { |
3225 | + name: "getScope" |
3226 | + type: "unity::shell::scopes::ScopeInterface*" |
3227 | + Parameter { name: "row"; type: "int" } |
3228 | + } |
3229 | + Method { |
3230 | + name: "getScope" |
3231 | + type: "unity::shell::scopes::ScopeInterface*" |
3232 | + Parameter { name: "scope_id"; type: "string" } |
3233 | + } |
3234 | + Method { |
3235 | + name: "addScope" |
3236 | + Parameter { name: "scope"; type: "Scope"; isPointer: true } |
3237 | + } |
3238 | + Method { name: "clear" } |
3239 | + Method { name: "load" } |
3240 | + } |
3241 | + Component { |
3242 | + name: "unity::shell::scopes::CategoriesInterface" |
3243 | + prototype: "QAbstractListModel" |
3244 | + exports: ["Unity/Categories 0.2"] |
3245 | + isCreatable: false |
3246 | + exportMetaObjectRevisions: [0] |
3247 | + Enum { |
3248 | + name: "Roles" |
3249 | + values: { |
3250 | + "RoleCategoryId": 0, |
3251 | + "RoleName": 1, |
3252 | + "RoleIcon": 2, |
3253 | + "RoleRawRendererTemplate": 3, |
3254 | + "RoleRenderer": 4, |
3255 | + "RoleComponents": 5, |
3256 | + "RoleResults": 6, |
3257 | + "RoleCount": 7 |
3258 | + } |
3259 | + } |
3260 | + Method { |
3261 | + name: "overrideCategoryJson" |
3262 | + type: "bool" |
3263 | + Parameter { name: "categoryId"; type: "string" } |
3264 | + Parameter { name: "json"; type: "string" } |
3265 | + } |
3266 | + Method { |
3267 | + name: "addSpecialCategory" |
3268 | + Parameter { name: "categoryId"; type: "string" } |
3269 | + Parameter { name: "name"; type: "string" } |
3270 | + Parameter { name: "icon"; type: "string" } |
3271 | + Parameter { name: "rawTemplate"; type: "string" } |
3272 | + Parameter { name: "countObject"; type: "QObject"; isPointer: true } |
3273 | + } |
3274 | + } |
3275 | + Component { |
3276 | + name: "unity::shell::scopes::DepartmentInterface" |
3277 | + prototype: "QAbstractListModel" |
3278 | + exports: ["Unity/Department 0.2"] |
3279 | + isCreatable: false |
3280 | + exportMetaObjectRevisions: [0] |
3281 | + Enum { |
3282 | + name: "Roles" |
3283 | + values: { |
3284 | + "RoleDepartmentId": 0, |
3285 | + "RoleLabel": 1, |
3286 | + "RoleHasChildren": 2, |
3287 | + "RoleIsActive": 3 |
3288 | + } |
3289 | + } |
3290 | + Property { name: "departmentId"; type: "string"; isReadonly: true } |
3291 | + Property { name: "label"; type: "string"; isReadonly: true } |
3292 | + Property { name: "allLabel"; type: "string"; isReadonly: true } |
3293 | + Property { name: "parentDepartmentId"; type: "string"; isReadonly: true } |
3294 | + Property { name: "parentLabel"; type: "string"; isReadonly: true } |
3295 | + Property { name: "loaded"; type: "bool"; isReadonly: true } |
3296 | + Property { name: "isRoot"; type: "bool"; isReadonly: true } |
3297 | + Property { name: "count"; type: "int"; isReadonly: true } |
3298 | + } |
3299 | + Component { |
3300 | + name: "unity::shell::scopes::PreviewModelInterface" |
3301 | + prototype: "QAbstractListModel" |
3302 | + Enum { |
3303 | + name: "Roles" |
3304 | + values: { |
3305 | + "RoleColumnModel": 0 |
3306 | + } |
3307 | + } |
3308 | + Property { name: "widgetColumnCount"; type: "int" } |
3309 | + Property { name: "loaded"; type: "bool"; isReadonly: true } |
3310 | + Property { name: "processingAction"; type: "bool"; isReadonly: true } |
3311 | + Signal { |
3312 | + name: "triggered" |
3313 | + Parameter { type: "string" } |
3314 | + Parameter { type: "string" } |
3315 | + Parameter { type: "QVariantMap" } |
3316 | + } |
3317 | + } |
3318 | + Component { |
3319 | + name: "unity::shell::scopes::PreviewStackInterface" |
3320 | + prototype: "QAbstractListModel" |
3321 | + Enum { |
3322 | + name: "Roles" |
3323 | + values: { |
3324 | + "RolePreviewModel": 0 |
3325 | + } |
3326 | + } |
3327 | + Property { name: "widgetColumnCount"; type: "int" } |
3328 | + Method { |
3329 | + name: "getPreviewModel" |
3330 | + type: "unity::shell::scopes::PreviewModelInterface*" |
3331 | + Parameter { name: "index"; type: "int" } |
3332 | + } |
3333 | + } |
3334 | + Component { |
3335 | + name: "unity::shell::scopes::PreviewWidgetModelInterface" |
3336 | + prototype: "QAbstractListModel" |
3337 | + Enum { |
3338 | + name: "Roles" |
3339 | + values: { |
3340 | + "RoleWidgetId": 0, |
3341 | + "RoleType": 1, |
3342 | + "RoleProperties": 2 |
3343 | + } |
3344 | + } |
3345 | + } |
3346 | + Component { |
3347 | + name: "unity::shell::scopes::ResultsModelInterface" |
3348 | + prototype: "QAbstractListModel" |
3349 | + Enum { |
3350 | + name: "Roles" |
3351 | + values: { |
3352 | + "RoleUri": 0, |
3353 | + "RoleCategoryId": 1, |
3354 | + "RoleDndUri": 2, |
3355 | + "RoleResult": 3, |
3356 | + "RoleTitle": 4, |
3357 | + "RoleArt": 5, |
3358 | + "RoleSubtitle": 6, |
3359 | + "RoleMascot": 7, |
3360 | + "RoleEmblem": 8, |
3361 | + "RoleSummary": 9, |
3362 | + "RoleAttributes": 10, |
3363 | + "RoleBackground": 11 |
3364 | + } |
3365 | + } |
3366 | + Property { name: "categoryId"; type: "string" } |
3367 | + Property { name: "count"; type: "int"; isReadonly: true } |
3368 | + } |
3369 | + Component { |
3370 | + name: "unity::shell::scopes::ScopeInterface" |
3371 | + prototype: "QObject" |
3372 | + exports: ["Unity/Scope 0.2"] |
3373 | + isCreatable: false |
3374 | + exportMetaObjectRevisions: [0] |
3375 | + Property { name: "id"; type: "string"; isReadonly: true } |
3376 | + Property { name: "name"; type: "string"; isReadonly: true } |
3377 | + Property { name: "iconHint"; type: "string"; isReadonly: true } |
3378 | + Property { name: "description"; type: "string"; isReadonly: true } |
3379 | + Property { name: "searchHint"; type: "string"; isReadonly: true } |
3380 | + Property { name: "searchInProgress"; type: "bool"; isReadonly: true } |
3381 | + Property { name: "visible"; type: "bool"; isReadonly: true } |
3382 | + Property { name: "shortcut"; type: "string"; isReadonly: true } |
3383 | + Property { |
3384 | + name: "categories" |
3385 | + type: "unity::shell::scopes::CategoriesInterface" |
3386 | + isReadonly: true |
3387 | + isPointer: true |
3388 | + } |
3389 | + Property { name: "searchQuery"; type: "string" } |
3390 | + Property { name: "noResultsHint"; type: "string" } |
3391 | + Property { name: "formFactor"; type: "string" } |
3392 | + Property { name: "isActive"; type: "bool" } |
3393 | + Property { name: "currentDepartmentId"; type: "string"; isReadonly: true } |
3394 | + Property { name: "hasDepartments"; type: "bool"; isReadonly: true } |
3395 | + Signal { name: "showDash" } |
3396 | + Signal { name: "hideDash" } |
3397 | + Signal { |
3398 | + name: "gotoUri" |
3399 | + Parameter { name: "uri"; type: "string" } |
3400 | + } |
3401 | + Signal { |
3402 | + name: "previewRequested" |
3403 | + Parameter { name: "result"; type: "QVariant" } |
3404 | + } |
3405 | + Signal { |
3406 | + name: "gotoScope" |
3407 | + Parameter { name: "scopeId"; type: "string" } |
3408 | + } |
3409 | + Signal { |
3410 | + name: "openScope" |
3411 | + Parameter { name: "scope"; type: "unity::shell::scopes::ScopeInterface"; isPointer: true } |
3412 | + } |
3413 | + Signal { |
3414 | + name: "activateApplication" |
3415 | + Parameter { name: "desktop"; type: "string" } |
3416 | + } |
3417 | + Method { |
3418 | + name: "activate" |
3419 | + Parameter { name: "result"; type: "QVariant" } |
3420 | + } |
3421 | + Method { |
3422 | + name: "preview" |
3423 | + type: "unity::shell::scopes::PreviewStackInterface*" |
3424 | + Parameter { name: "result"; type: "QVariant" } |
3425 | + } |
3426 | + Method { name: "cancelActivation" } |
3427 | + Method { |
3428 | + name: "closeScope" |
3429 | + Parameter { name: "scope"; type: "unity::shell::scopes::ScopeInterface"; isPointer: true } |
3430 | + } |
3431 | + Method { |
3432 | + name: "getDepartment" |
3433 | + type: "unity::shell::scopes::DepartmentInterface*" |
3434 | + Parameter { name: "departmentId"; type: "string" } |
3435 | + } |
3436 | + Method { |
3437 | + name: "loadDepartment" |
3438 | + Parameter { name: "departmentId"; type: "string" } |
3439 | + } |
3440 | + } |
3441 | + Component { |
3442 | + name: "unity::shell::scopes::ScopesInterface" |
3443 | + prototype: "QAbstractListModel" |
3444 | + Enum { |
3445 | + name: "Roles" |
3446 | + values: { |
3447 | + "RoleScope": 0, |
3448 | + "RoleId": 1, |
3449 | + "RoleVisible": 2, |
3450 | + "RoleTitle": 3 |
3451 | + } |
3452 | + } |
3453 | + Property { name: "loaded"; type: "bool"; isReadonly: true } |
3454 | + Method { |
3455 | + name: "getScope" |
3456 | + type: "unity::shell::scopes::ScopeInterface*" |
3457 | + Parameter { name: "row"; type: "int" } |
3458 | + } |
3459 | + Method { |
3460 | + name: "getScope" |
3461 | + type: "unity::shell::scopes::ScopeInterface*" |
3462 | + Parameter { name: "scopeId"; type: "string" } |
3463 | + } |
3464 | + } |
3465 | +} |
3466 | |
3467 | === modified file 'tests/qmltests/Panel/Indicators/tst_MenuItemFactory.qml' |
3468 | --- tests/qmltests/Panel/Indicators/tst_MenuItemFactory.qml 2014-05-01 14:25:18 +0000 |
3469 | +++ tests/qmltests/Panel/Indicators/tst_MenuItemFactory.qml 2014-06-26 10:07:27 +0000 |
3470 | @@ -18,15 +18,16 @@ |
3471 | import QtTest 1.0 |
3472 | import Unity.Test 0.1 as UT |
3473 | import QMenuModel 0.1 |
3474 | -import Unity.Indicators 0.1 as Indicators |
3475 | import Utils 0.1 as Utils |
3476 | +import "../../../../qml/Panel/Indicators" |
3477 | + |
3478 | |
3479 | Item { |
3480 | id: testView |
3481 | width: units.gu(40) |
3482 | height: units.gu(70) |
3483 | |
3484 | - Indicators.MenuItemFactory { |
3485 | + MenuItemFactory { |
3486 | id: factory |
3487 | menuModel: UnityMenuModel {} |
3488 | } |
3489 | |
3490 | === modified file 'tests/qmltests/Panel/Indicators/tst_MessageMenuItemFactory.qml' |
3491 | --- tests/qmltests/Panel/Indicators/tst_MessageMenuItemFactory.qml 2014-04-14 17:26:06 +0000 |
3492 | +++ tests/qmltests/Panel/Indicators/tst_MessageMenuItemFactory.qml 2014-06-26 10:07:27 +0000 |
3493 | @@ -18,15 +18,15 @@ |
3494 | import QtTest 1.0 |
3495 | import Unity.Test 0.1 as UT |
3496 | import QMenuModel 0.1 |
3497 | -import Unity.Indicators 0.1 as Indicators |
3498 | import Utils 0.1 as Utils |
3499 | +import "../../../../qml/Panel/Indicators" |
3500 | |
3501 | Item { |
3502 | id: testView |
3503 | width: units.gu(40) |
3504 | height: units.gu(70) |
3505 | |
3506 | - Indicators.MessageMenuItemFactory { |
3507 | + MessageMenuItemFactory { |
3508 | id: factory |
3509 | menuModel: UnityMenuModel {} |
3510 | menuIndex: 0 |
3511 | |
3512 | === added file 'tests/utils/modules/Unity/Test/Test.qmltypes' |
3513 | --- tests/utils/modules/Unity/Test/Test.qmltypes 1970-01-01 00:00:00 +0000 |
3514 | +++ tests/utils/modules/Unity/Test/Test.qmltypes 2014-06-26 10:07:27 +0000 |
3515 | @@ -0,0 +1,59 @@ |
3516 | +import QtQuick.tooling 1.1 |
3517 | + |
3518 | +// This file describes the plugin-supplied types contained in the library. |
3519 | +// It is used for QML tooling purposes only. |
3520 | +// |
3521 | +// This file was auto-generated by: |
3522 | +// 'qmlplugindump -notrelocatable Unity.Test 0.1 tests/utils/modules' |
3523 | + |
3524 | +Module { |
3525 | + Component { |
3526 | + name: "TestUtil" |
3527 | + prototype: "QObject" |
3528 | + exports: ["Unity.Test/Util 0.1"] |
3529 | + isCreatable: false |
3530 | + isSingleton: true |
3531 | + exportMetaObjectRevisions: [0] |
3532 | + Method { |
3533 | + name: "isInstanceOf" |
3534 | + type: "bool" |
3535 | + Parameter { type: "QObject"; isPointer: true } |
3536 | + Parameter { type: "string" } |
3537 | + } |
3538 | + Method { name: "touchEvent"; type: "TouchEventSequenceWrapper*" } |
3539 | + } |
3540 | + Component { |
3541 | + name: "TouchEventSequenceWrapper" |
3542 | + prototype: "QObject" |
3543 | + exports: ["Unity.Test/TouchEventSequence 0.1"] |
3544 | + isCreatable: false |
3545 | + exportMetaObjectRevisions: [0] |
3546 | + Method { |
3547 | + name: "commit" |
3548 | + Parameter { name: "processEvents"; type: "bool" } |
3549 | + } |
3550 | + Method { name: "commit" } |
3551 | + Method { |
3552 | + name: "move" |
3553 | + Parameter { name: "touchId"; type: "int" } |
3554 | + Parameter { name: "x"; type: "int" } |
3555 | + Parameter { name: "y"; type: "int" } |
3556 | + } |
3557 | + Method { |
3558 | + name: "press" |
3559 | + Parameter { name: "touchId"; type: "int" } |
3560 | + Parameter { name: "x"; type: "int" } |
3561 | + Parameter { name: "y"; type: "int" } |
3562 | + } |
3563 | + Method { |
3564 | + name: "release" |
3565 | + Parameter { name: "touchId"; type: "int" } |
3566 | + Parameter { name: "x"; type: "int" } |
3567 | + Parameter { name: "y"; type: "int" } |
3568 | + } |
3569 | + Method { |
3570 | + name: "stationary" |
3571 | + Parameter { name: "touchId"; type: "int" } |
3572 | + } |
3573 | + } |
3574 | +} |
We'll need to check those .qmltypes files into bzr, and copy/install them along with qmldir, so there's a bit more work involved here.
They should be generated into the source dirs, not binary.
I'll take this over tomorrow morning if you have no objections :).