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