Merge lp:~unity-team/unity8/manual-qmltypes into lp:unity8

Proposed by Michał Sawicz
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
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.

To post a comment you must log in.
Revision history for this message
Michał Sawicz (saviq) wrote : Posted in a previous version of this proposal

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 :).

review: Needs Fixing
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote : Posted in a previous version of this proposal
review: Needs Fixing (continuous-integration)
Revision history for this message
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. :)

Revision history for this message
PS Jenkins bot (ps-jenkins) wrote : Posted in a previous version of this proposal
review: Needs Fixing (continuous-integration)
988. By Michał Sawicz

Do not generate qmltypes for the duplicate plugin.

989. By Michał Sawicz

Merge move-indicator-qml.

Revision history for this message
PS Jenkins bot (ps-jenkins) wrote : Posted in a previous version of this proposal
review: Needs Fixing (continuous-integration)
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
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

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'cmake/modules/QmlPlugins.cmake'
--- cmake/modules/QmlPlugins.cmake 2014-05-15 14:56:56 +0000
+++ cmake/modules/QmlPlugins.cmake 2014-06-26 10:07:27 +0000
@@ -12,6 +12,12 @@
12 set_target_properties(qmlplugindump PROPERTIES IMPORTED_LOCATION ${qmlplugindump_exe})12 set_target_properties(qmlplugindump PROPERTIES IMPORTED_LOCATION ${qmlplugindump_exe})
13endif()13endif()
1414
15#
16# A custom target for building the qmltypes files manually.
17#
18if (NOT TARGET qmltypes)
19 add_custom_target(qmltypes)
20endif()
1521
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.
17#23#
@@ -51,6 +57,7 @@
51 ${QMLFILES_SEARCH_PATH}/*.png57 ${QMLFILES_SEARCH_PATH}/*.png
52 ${QMLFILES_SEARCH_PATH}/*.sci58 ${QMLFILES_SEARCH_PATH}/*.sci
53 ${QMLFILES_SEARCH_PATH}/*.svg59 ${QMLFILES_SEARCH_PATH}/*.svg
60 ${QMLFILES_SEARCH_PATH}/*.qmltypes
54 ${QMLFILES_SEARCH_PATH}/qmldir61 ${QMLFILES_SEARCH_PATH}/qmldir
55 )62 )
5663
@@ -69,14 +76,14 @@
69 DESTINATION ${QMLFILES_DESTINATION}/${PATH}76 DESTINATION ${QMLFILES_DESTINATION}/${PATH}
70 )77 )
71 endif()78 endif()
72endmacro(export_qmlfiles)79endmacro()
7380
7481
75# Creates a target for generating the typeinfo file for a QML plugin and optionally installs it82# Creates a target for generating the typeinfo file for a QML plugin and/or installs the plugin
76# and additional targets.83# targets.
77#84#
78# Files will be copied into ${BINARY_DIR}/${path} or ${CMAKE_CURRENT_BINARY_DIR} and installed85# Files will be copied into ${BINARY_DIR}/${path} or ${CMAKE_CURRENT_BINARY_DIR} and installed
79# into ${DESTINATION}/${path}. If you don't pass BINARY_DIR, it's assumed that current source86# into ${DESTINATION}/${path}. If you don't pass BINARY_DIR, it's assumed that current source
80# path ends with ${path}.87# path ends with ${path}.
81#88#
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.
@@ -87,15 +94,18 @@
87# [TARGET_PREFIX string] # Will be prefixed to the target name94# [TARGET_PREFIX string] # Will be prefixed to the target name
88# [ENVIRONMENT string] # Will be added to qmlplugindump's env95# [ENVIRONMENT string] # Will be added to qmlplugindump's env
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)
97# [NO_TYPES] # Do not create the qmltypes target
90# )98# )
91#99#
92# Created target:100# Created target:
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.
102# It will be made a dependency of the "qmltypes" target.
94103
95macro(export_qmlplugin PLUGIN VERSION PATH)104macro(export_qmlplugin PLUGIN VERSION PATH)
105 set(options NO_TYPES)
96 set(single BINARY_DIR DESTINATION TARGET_PREFIX ENVIRONMENT)106 set(single BINARY_DIR DESTINATION TARGET_PREFIX ENVIRONMENT)
97 set(multi TARGETS)107 set(multi TARGETS)
98 cmake_parse_arguments(QMLPLUGIN "" "${single}" "${multi}" ${ARGN})108 cmake_parse_arguments(QMLPLUGIN "${options}" "${single}" "${multi}" ${ARGN})
99109
100 get_target_property(qmlplugindump_executable qmlplugindump LOCATION)110 get_target_property(qmlplugindump_executable qmlplugindump LOCATION)
101111
@@ -103,29 +113,26 @@
103 set(qmlplugin_dir ${QMLPLUGIN_BINARY_DIR}/${PATH})113 set(qmlplugin_dir ${QMLPLUGIN_BINARY_DIR}/${PATH})
104 else()114 else()
105 # Find import path to point qmlplugindump at115 # Find import path to point qmlplugindump at
106 string(REGEX REPLACE "${PATH}$" "" QMLPLUGIN_BINARY_DIR "${CMAKE_CURRENT_BINARY_DIR}")116 string(REGEX REPLACE "/${PATH}$" "" QMLPLUGIN_BINARY_DIR "${CMAKE_CURRENT_BINARY_DIR}")
107 set(qmlplugin_dir ${CMAKE_CURRENT_BINARY_DIR})117 set(qmlplugin_dir ${CMAKE_CURRENT_BINARY_DIR})
108 endif()118 endif()
109119
110 # Find the last segment of the plugin name to use as qmltypes basename120 if(NOT QMLPLUGIN_NO_TYPES)
111 string(REGEX MATCH "[^.]+$" plugin_suffix ${PLUGIN})121 # Relative path for the module
112 set(target_prefix ${QMLPLUGIN_TARGET_PREFIX}${PLUGIN})122 string(REPLACE "${CMAKE_BINARY_DIR}/" "" QMLPLUGIN_MODULE_DIR "${QMLPLUGIN_BINARY_DIR}")
113 set(qmltypes_path ${qmlplugin_dir}/${plugin_suffix}.qmltypes)123
114124 # Find the last segment of the plugin name to use as qmltypes basename
115 # Only generate typeinfo if not cross compiling125 string(REGEX MATCH "[^.]+$" plugin_suffix ${PLUGIN})
116 if(NOT CMAKE_CROSSCOMPILING)126 set(target_prefix ${QMLPLUGIN_TARGET_PREFIX}${PLUGIN})
117 add_custom_target(${target_prefix}-qmltypes ALL127 set(qmltypes_path ${CMAKE_CURRENT_SOURCE_DIR}/${plugin_suffix}.qmltypes)
128
129 add_custom_target(${target_prefix}-qmltypes
118 COMMAND env ${QMLPLUGIN_ENVIRONMENT} ${qmlplugindump_executable} -notrelocatable130 COMMAND env ${QMLPLUGIN_ENVIRONMENT} ${qmlplugindump_executable} -notrelocatable
119 ${PLUGIN} ${VERSION} ${QMLPLUGIN_BINARY_DIR} > ${qmltypes_path}131 ${PLUGIN} ${VERSION} ${QMLPLUGIN_MODULE_DIR} > ${qmltypes_path}
132 WORKING_DIRECTORY ${CMAKE_BINARY_DIR}
120 )133 )
121 add_dependencies(${target_prefix}-qmltypes ${target_prefix}-qmlfiles ${QMLPLUGIN_TARGETS})134 add_dependencies(${target_prefix}-qmltypes ${target_prefix}-qmlfiles ${QMLPLUGIN_TARGETS})
122135 add_dependencies(qmltypes ${target_prefix}-qmltypes)
123 if (QMLPLUGIN_DESTINATION)
124 # Install the typeinfo file
125 install(FILES ${qmltypes_path}
126 DESTINATION ${QMLPLUGIN_DESTINATION}/${PATH}
127 )
128 endif()
129 endif()136 endif()
130137
131 set_target_properties(${QMLPLUGIN_TARGETS} PROPERTIES138 set_target_properties(${QMLPLUGIN_TARGETS} PROPERTIES
132139
=== added file 'plugins/AccountsService/AccountsService.qmltypes'
--- plugins/AccountsService/AccountsService.qmltypes 1970-01-01 00:00:00 +0000
+++ plugins/AccountsService/AccountsService.qmltypes 2014-06-26 10:07:27 +0000
@@ -0,0 +1,22 @@
1import QtQuick.tooling 1.1
2
3// This file describes the plugin-supplied types contained in the library.
4// It is used for QML tooling purposes only.
5//
6// This file was auto-generated by:
7// 'qmlplugindump -notrelocatable AccountsService 0.1 plugins'
8
9Module {
10 Component {
11 name: "AccountsService"
12 prototype: "QObject"
13 exports: ["AccountsService/AccountsService 0.1"]
14 isCreatable: false
15 isSingleton: true
16 exportMetaObjectRevisions: [0]
17 Property { name: "user"; type: "string" }
18 Property { name: "demoEdges"; type: "bool" }
19 Property { name: "backgroundFile"; type: "string"; isReadonly: true }
20 Property { name: "statsWelcomeScreen"; type: "bool"; isReadonly: true }
21 }
22}
023
=== added file 'plugins/Dash/Dash.qmltypes'
--- plugins/Dash/Dash.qmltypes 1970-01-01 00:00:00 +0000
+++ plugins/Dash/Dash.qmltypes 2014-06-26 10:07:27 +0000
@@ -0,0 +1,95 @@
1import QtQuick.tooling 1.1
2
3// This file describes the plugin-supplied types contained in the library.
4// It is used for QML tooling purposes only.
5//
6// This file was auto-generated by:
7// 'qmlplugindump -notrelocatable Dash 0.1 plugins'
8
9Module {
10 Component {
11 name: "AbstractDashView"
12 defaultProperty: "data"
13 prototype: "QQuickItem"
14 Property { name: "model"; type: "QAbstractItemModel"; isPointer: true }
15 Property { name: "delegate"; type: "QQmlComponent"; isPointer: true }
16 Property { name: "columnSpacing"; type: "double" }
17 Property { name: "rowSpacing"; type: "double" }
18 Property { name: "displayMarginBeginning"; type: "double" }
19 Property { name: "displayMarginEnd"; type: "double" }
20 }
21 Component {
22 name: "HorizontalJournal"
23 defaultProperty: "data"
24 prototype: "AbstractDashView"
25 exports: ["Dash/HorizontalJournal 0.1"]
26 exportMetaObjectRevisions: [0]
27 Property { name: "rowHeight"; type: "double" }
28 }
29 Component {
30 name: "ListViewWithPageHeader"
31 defaultProperty: "flickableData"
32 prototype: "QQuickFlickable"
33 exports: ["Dash/ListViewWithPageHeader 0.1"]
34 exportMetaObjectRevisions: [0]
35 Property { name: "model"; type: "QAbstractItemModel"; isPointer: true }
36 Property { name: "delegate"; type: "QQmlComponent"; isPointer: true }
37 Property { name: "pageHeader"; type: "QQuickItem"; isPointer: true }
38 Property { name: "sectionDelegate"; type: "QQmlComponent"; isPointer: true }
39 Property { name: "sectionProperty"; type: "string" }
40 Property { name: "forceNoClip"; type: "bool" }
41 Property { name: "stickyHeaderHeight"; type: "int"; isReadonly: true }
42 Signal { name: "headerChanged" }
43 Method { name: "positionAtBeginning" }
44 Method { name: "showHeader" }
45 Method {
46 name: "item"
47 type: "QQuickItem*"
48 Parameter { name: "modelIndex"; type: "int" }
49 }
50 Method {
51 name: "maximizeVisibleArea"
52 type: "bool"
53 Parameter { name: "modelIndex"; type: "int" }
54 }
55 Method {
56 name: "maximizeVisibleArea"
57 type: "bool"
58 Parameter { name: "modelIndex"; type: "int" }
59 Parameter { name: "itemHeight"; type: "int" }
60 }
61 }
62 Component {
63 name: "OrganicGrid"
64 defaultProperty: "data"
65 prototype: "AbstractDashView"
66 exports: ["Dash/OrganicGrid 0.1"]
67 exportMetaObjectRevisions: [0]
68 Property { name: "smallDelegateSize"; type: "QSizeF" }
69 Property { name: "bigDelegateSize"; type: "QSizeF" }
70 }
71 Component {
72 name: "VerticalJournal"
73 defaultProperty: "data"
74 prototype: "AbstractDashView"
75 exports: ["Dash/VerticalJournal 0.1"]
76 exportMetaObjectRevisions: [0]
77 Property { name: "columnWidth"; type: "double" }
78 }
79 Component {
80 prototype: "QObject"
81 name: "CardCreatorCache"
82 exports: ["CardCreatorCache -1.-1"]
83 exportMetaObjectRevisions: [-1]
84 isComposite: true
85 isCreatable: false
86 isSingleton: true
87 Property { name: "cache"; type: "QVariant" }
88 Method {
89 name: "getCardComponent"
90 type: "QVariant"
91 Parameter { name: "template"; type: "QVariant" }
92 Parameter { name: "components"; type: "QVariant" }
93 }
94 }
95}
096
=== added file 'plugins/HudClient/HudClient.qmltypes'
--- plugins/HudClient/HudClient.qmltypes 1970-01-01 00:00:00 +0000
+++ plugins/HudClient/HudClient.qmltypes 2014-06-26 10:07:27 +0000
@@ -0,0 +1,91 @@
1import QtQuick.tooling 1.1
2
3// This file describes the plugin-supplied types contained in the library.
4// It is used for QML tooling purposes only.
5//
6// This file was auto-generated by:
7// 'qmlplugindump -notrelocatable HudClient 0.1 plugins'
8
9Module {
10 Component {
11 name: "DeeListModel"
12 prototype: "QAbstractListModel"
13 Property { name: "name"; type: "string" }
14 Property { name: "synchronized"; type: "bool"; isReadonly: true }
15 Property { name: "count"; type: "int"; isReadonly: true }
16 Signal {
17 name: "nameChanged"
18 Parameter { type: "string" }
19 }
20 Signal {
21 name: "synchronizedChanged"
22 Parameter { type: "bool" }
23 }
24 Signal {
25 name: "roleNamesChanged"
26 Parameter { type: "QHash<int,QByteArray>" }
27 }
28 Method {
29 name: "get"
30 type: "QVariantMap"
31 Parameter { name: "row"; type: "int" }
32 }
33 Method { name: "count"; type: "int" }
34 }
35 Component {
36 name: "HudClient"
37 prototype: "QObject"
38 exports: ["HudClient/HudClient 0.1"]
39 exportMetaObjectRevisions: [0]
40 Property { name: "results"; type: "DeeListModel"; isReadonly: true; isPointer: true }
41 Property { name: "toolBarModel"; type: "QAbstractItemModel"; isReadonly: true; isPointer: true }
42 Signal { name: "voiceQueryLoading" }
43 Signal { name: "voiceQueryListening" }
44 Signal { name: "voiceQueryHeardSomething" }
45 Signal { name: "voiceQueryFailed" }
46 Signal {
47 name: "voiceQueryFinished"
48 Parameter { name: "query"; type: "string" }
49 }
50 Signal { name: "commandExecuted" }
51 Signal {
52 name: "showParametrizedAction"
53 Parameter { name: "action"; type: "string" }
54 Parameter { name: "items"; type: "QVariant" }
55 }
56 Method {
57 name: "executeCommand"
58 Parameter { name: "index"; type: "int" }
59 }
60 Method {
61 name: "setQuery"
62 Parameter { name: "new_query"; type: "string" }
63 }
64 Method { name: "startVoiceQuery" }
65 Method {
66 name: "executeParametrizedAction"
67 Parameter { name: "values"; type: "QVariant" }
68 }
69 Method {
70 name: "updateParametrizedAction"
71 Parameter { name: "values"; type: "QVariant" }
72 }
73 Method { name: "cancelParametrizedAction" }
74 Method {
75 name: "executeToolBarAction"
76 Parameter { name: "action"; type: "HudClientQueryToolbarItems" }
77 }
78 }
79 Component {
80 name: "VolumePeakDetector"
81 prototype: "QObject"
82 exports: ["HudClient/VolumePeakDetector 0.1"]
83 exportMetaObjectRevisions: [0]
84 Property { name: "enabled"; type: "bool" }
85 Property { name: "desiredInterval"; type: "int" }
86 Signal {
87 name: "newPeak"
88 Parameter { name: "volume"; type: "float" }
89 }
90 }
91}
092
=== added file 'plugins/LightDM/LightDM.qmltypes'
--- plugins/LightDM/LightDM.qmltypes 1970-01-01 00:00:00 +0000
+++ plugins/LightDM/LightDM.qmltypes 2014-06-26 10:07:27 +0000
@@ -0,0 +1,241 @@
1import QtQuick.tooling 1.1
2
3// This file describes the plugin-supplied types contained in the library.
4// It is used for QML tooling purposes only.
5//
6// This file was auto-generated by:
7// 'qmlplugindump -notrelocatable LightDM 0.1 plugins'
8
9Module {
10 Component {
11 name: "Greeter"
12 prototype: "QObject"
13 exports: ["LightDM/Greeter 0.1"]
14 isCreatable: false
15 isSingleton: true
16 exportMetaObjectRevisions: [0]
17 Property { name: "authenticated"; type: "bool"; isReadonly: true }
18 Property { name: "authenticationUser"; type: "string"; isReadonly: true }
19 Property { name: "promptless"; type: "bool"; isReadonly: true }
20 Signal {
21 name: "showMessage"
22 Parameter { name: "text"; type: "string" }
23 Parameter { name: "isError"; type: "bool" }
24 }
25 Signal {
26 name: "showPrompt"
27 Parameter { name: "text"; type: "string" }
28 Parameter { name: "isSecret"; type: "bool" }
29 }
30 Signal { name: "authenticationComplete" }
31 Signal {
32 name: "authenticationUserChanged"
33 Parameter { name: "user"; type: "string" }
34 }
35 Signal {
36 name: "requestAuthenticationUser"
37 Parameter { name: "user"; type: "string" }
38 }
39 Method {
40 name: "authenticate"
41 Parameter { name: "username"; type: "string" }
42 }
43 Method { name: "authenticate" }
44 Method {
45 name: "respond"
46 Parameter { name: "response"; type: "string" }
47 }
48 Method {
49 name: "startSessionSync"
50 type: "bool"
51 Parameter { name: "session"; type: "string" }
52 }
53 Method { name: "startSessionSync"; type: "bool" }
54 }
55 Component {
56 name: "QAbstractProxyModel"
57 prototype: "QAbstractItemModel"
58 Property { name: "sourceModel"; type: "QAbstractItemModel"; isPointer: true }
59 }
60 Component {
61 name: "QLightDM::UsersModel"
62 prototype: "QAbstractListModel"
63 exports: ["LightDM/UserRoles 0.1"]
64 isCreatable: false
65 exportMetaObjectRevisions: [0]
66 Enum {
67 name: "UserModelRoles"
68 values: {
69 "NameRole": 256,
70 "RealNameRole": 257,
71 "LoggedInRole": 258,
72 "BackgroundRole": 259,
73 "SessionRole": 260,
74 "HasMessagesRole": 261,
75 "ImagePathRole": 262,
76 "BackgroundPathRole": 263
77 }
78 }
79 }
80 Component {
81 name: "QSortFilterProxyModel"
82 prototype: "QAbstractProxyModel"
83 Property { name: "filterRegExp"; type: "QRegExp" }
84 Property { name: "filterKeyColumn"; type: "int" }
85 Property { name: "dynamicSortFilter"; type: "bool" }
86 Property { name: "filterCaseSensitivity"; type: "Qt::CaseSensitivity" }
87 Property { name: "sortCaseSensitivity"; type: "Qt::CaseSensitivity" }
88 Property { name: "isSortLocaleAware"; type: "bool" }
89 Property { name: "sortRole"; type: "int" }
90 Property { name: "filterRole"; type: "int" }
91 Method {
92 name: "setFilterRegExp"
93 Parameter { name: "pattern"; type: "string" }
94 }
95 Method {
96 name: "setFilterWildcard"
97 Parameter { name: "pattern"; type: "string" }
98 }
99 Method {
100 name: "setFilterFixedString"
101 Parameter { name: "pattern"; type: "string" }
102 }
103 Method { name: "clear" }
104 Method { name: "invalidate" }
105 }
106 Component {
107 name: "QSortFilterProxyModelQML"
108 prototype: "QSortFilterProxyModel"
109 Property { name: "model"; type: "QAbstractItemModel"; isPointer: true }
110 Property { name: "totalCount"; type: "int"; isReadonly: true }
111 Property { name: "count"; type: "int"; isReadonly: true }
112 Property { name: "invertMatch"; type: "bool" }
113 Signal {
114 name: "invertMatchChanged"
115 Parameter { type: "bool" }
116 }
117 Method {
118 name: "get"
119 type: "QVariantMap"
120 Parameter { name: "row"; type: "int" }
121 }
122 Method {
123 name: "data"
124 type: "QVariant"
125 Parameter { name: "row"; type: "int" }
126 Parameter { name: "role"; type: "int" }
127 }
128 Method { name: "count"; type: "int" }
129 Method {
130 name: "findFirst"
131 type: "int"
132 Parameter { name: "role"; type: "int" }
133 Parameter { name: "value"; type: "QVariant" }
134 }
135 Method {
136 name: "mapRowToSource"
137 type: "int"
138 Parameter { name: "row"; type: "int" }
139 }
140 Method {
141 name: "mapFromSource"
142 type: "int"
143 Parameter { name: "row"; type: "int" }
144 }
145 Method {
146 name: "mapToSource"
147 type: "int"
148 Parameter { name: "row"; type: "int" }
149 }
150 }
151 Component {
152 name: "UserMetricsOutput::ColorTheme"
153 prototype: "QObject"
154 Property { name: "start"; type: "QColor"; isReadonly: true }
155 Property { name: "main"; type: "QColor"; isReadonly: true }
156 Property { name: "end"; type: "QColor"; isReadonly: true }
157 Signal {
158 name: "startChanged"
159 Parameter { name: "color"; type: "QColor" }
160 }
161 Signal {
162 name: "mainChanged"
163 Parameter { name: "color"; type: "QColor" }
164 }
165 Signal {
166 name: "endChanged"
167 Parameter { name: "color"; type: "QColor" }
168 }
169 }
170 Component {
171 name: "UserMetricsOutput::UserMetrics"
172 prototype: "QObject"
173 exports: ["LightDM/Infographic 0.1"]
174 isCreatable: false
175 isSingleton: true
176 exportMetaObjectRevisions: [0]
177 Property { name: "label"; type: "string"; isReadonly: true }
178 Property { name: "username"; type: "string" }
179 Property {
180 name: "firstColor"
181 type: "UserMetricsOutput::ColorTheme"
182 isReadonly: true
183 isPointer: true
184 }
185 Property {
186 name: "secondColor"
187 type: "UserMetricsOutput::ColorTheme"
188 isReadonly: true
189 isPointer: true
190 }
191 Property { name: "firstMonth"; type: "QAbstractItemModel"; isReadonly: true; isPointer: true }
192 Property { name: "secondMonth"; type: "QAbstractItemModel"; isReadonly: true; isPointer: true }
193 Property { name: "currentDay"; type: "int"; isReadonly: true }
194 Signal {
195 name: "labelChanged"
196 Parameter { name: "label"; type: "string" }
197 }
198 Signal {
199 name: "usernameChanged"
200 Parameter { name: "username"; type: "string" }
201 }
202 Signal {
203 name: "firstColorChanged"
204 Parameter { name: "color"; type: "ColorTheme"; isPointer: true }
205 }
206 Signal {
207 name: "firstMonthChanged"
208 Parameter { name: "firstMonth"; type: "QAbstractItemModel"; isPointer: true }
209 }
210 Signal {
211 name: "currentDayChanged"
212 Parameter { name: "currentDay"; type: "int" }
213 }
214 Signal {
215 name: "secondColorChanged"
216 Parameter { name: "color"; type: "ColorTheme"; isPointer: true }
217 }
218 Signal {
219 name: "secondMonthChanged"
220 Parameter { name: "secondMonth"; type: "QAbstractItemModel"; isPointer: true }
221 }
222 Signal { name: "nextDataSource" }
223 Signal { name: "readyForDataChange" }
224 Signal { name: "dataAboutToAppear" }
225 Signal { name: "dataAppeared" }
226 Signal { name: "dataAboutToChange" }
227 Signal { name: "dataChanged" }
228 Signal { name: "dataAboutToDisappear" }
229 Signal { name: "dataDisappeared" }
230 Method { name: "nextDataSourceSlot" }
231 Method { name: "readyForDataChangeSlot" }
232 }
233 Component {
234 name: "UsersModel"
235 prototype: "QSortFilterProxyModelQML"
236 exports: ["LightDM/Users 0.1"]
237 isCreatable: false
238 isSingleton: true
239 exportMetaObjectRevisions: [0]
240 }
241}
0242
=== added file 'plugins/Powerd/Powerd.qmltypes'
--- plugins/Powerd/Powerd.qmltypes 1970-01-01 00:00:00 +0000
+++ plugins/Powerd/Powerd.qmltypes 2014-06-26 10:07:27 +0000
@@ -0,0 +1,46 @@
1import QtQuick.tooling 1.1
2
3// This file describes the plugin-supplied types contained in the library.
4// It is used for QML tooling purposes only.
5//
6// This file was auto-generated by:
7// 'qmlplugindump -notrelocatable Powerd 0.1 plugins'
8
9Module {
10 Component {
11 name: "Powerd"
12 prototype: "QObject"
13 exports: ["Powerd/Powerd 0.1"]
14 isCreatable: false
15 isSingleton: true
16 exportMetaObjectRevisions: [0]
17 Enum {
18 name: "DisplayFlag"
19 values: {
20 "UseProximity": 1,
21 "DisableAutoBrightness": 2,
22 "Bright": 4
23 }
24 }
25 Enum {
26 name: "DisplayFlags"
27 values: {
28 "UseProximity": 1,
29 "DisableAutoBrightness": 2,
30 "Bright": 4
31 }
32 }
33 Enum {
34 name: "Status"
35 values: {
36 "Off": 0,
37 "On": 1
38 }
39 }
40 Signal {
41 name: "displayPowerStateChange"
42 Parameter { name: "status"; type: "int" }
43 Parameter { name: "flags"; type: "uint" }
44 }
45 }
46}
047
=== added file 'plugins/SessionBroadcast/SessionBroadcast.qmltypes'
--- plugins/SessionBroadcast/SessionBroadcast.qmltypes 1970-01-01 00:00:00 +0000
+++ plugins/SessionBroadcast/SessionBroadcast.qmltypes 2014-06-26 10:07:27 +0000
@@ -0,0 +1,19 @@
1import QtQuick.tooling 1.1
2
3// This file describes the plugin-supplied types contained in the library.
4// It is used for QML tooling purposes only.
5//
6// This file was auto-generated by:
7// 'qmlplugindump -notrelocatable SessionBroadcast 0.1 plugins'
8
9Module {
10 Component {
11 name: "SessionBroadcast"
12 prototype: "QObject"
13 exports: ["SessionBroadcast/SessionBroadcast 0.1"]
14 isCreatable: false
15 isSingleton: true
16 exportMetaObjectRevisions: [0]
17 Signal { name: "showHome" }
18 }
19}
020
=== added file 'plugins/Ubuntu/DownloadDaemonListener/DownloadDaemonListener.qmltypes'
--- plugins/Ubuntu/DownloadDaemonListener/DownloadDaemonListener.qmltypes 1970-01-01 00:00:00 +0000
+++ plugins/Ubuntu/DownloadDaemonListener/DownloadDaemonListener.qmltypes 2014-06-26 10:07:27 +0000
@@ -0,0 +1,60 @@
1import QtQuick.tooling 1.1
2
3// This file describes the plugin-supplied types contained in the library.
4// It is used for QML tooling purposes only.
5//
6// This file was auto-generated by:
7// 'qmlplugindump -notrelocatable Ubuntu.DownloadDaemonListener 0.1 plugins'
8
9Module {
10 Component {
11 name: "DownloadTracker"
12 prototype: "QObject"
13 exports: ["Ubuntu.DownloadDaemonListener/DownloadTracker 0.1"]
14 exportMetaObjectRevisions: [0]
15 Property { name: "service"; type: "string" }
16 Property { name: "dbusPath"; type: "string" }
17 Property { name: "serviceReady"; type: "bool"; isReadonly: true }
18 Signal {
19 name: "serviceChanged"
20 Parameter { name: "service"; type: "string" }
21 }
22 Signal {
23 name: "dbusPathChanged"
24 Parameter { name: "dbusPath"; type: "string" }
25 }
26 Signal {
27 name: "serviceReadyChanged"
28 Parameter { name: "serviceReady"; type: "bool" }
29 }
30 Signal {
31 name: "canceled"
32 Parameter { name: "success"; type: "bool" }
33 }
34 Signal {
35 name: "error"
36 Parameter { name: "error"; type: "string" }
37 }
38 Signal {
39 name: "finished"
40 Parameter { name: "path"; type: "string" }
41 }
42 Signal {
43 name: "paused"
44 Parameter { name: "success"; type: "bool" }
45 }
46 Signal {
47 name: "progress"
48 Parameter { name: "received"; type: "qulonglong" }
49 Parameter { name: "total"; type: "qulonglong" }
50 }
51 Signal {
52 name: "resumed"
53 Parameter { name: "success"; type: "bool" }
54 }
55 Signal {
56 name: "started"
57 Parameter { name: "success"; type: "bool" }
58 }
59 }
60}
061
=== added file 'plugins/Ubuntu/Gestures/Gestures.qmltypes'
--- plugins/Ubuntu/Gestures/Gestures.qmltypes 1970-01-01 00:00:00 +0000
+++ plugins/Ubuntu/Gestures/Gestures.qmltypes 2014-06-26 10:07:27 +0000
@@ -0,0 +1,153 @@
1import QtQuick.tooling 1.1
2
3// This file describes the plugin-supplied types contained in the library.
4// It is used for QML tooling purposes only.
5//
6// This file was auto-generated by:
7// 'qmlplugindump -notrelocatable Ubuntu.Gestures 0.1 plugins'
8
9Module {
10 Component {
11 name: "AxisVelocityCalculator"
12 prototype: "QObject"
13 exports: ["Ubuntu.Gestures/AxisVelocityCalculator 0.1"]
14 exportMetaObjectRevisions: [0]
15 Property { name: "trackedPosition"; type: "double" }
16 Signal {
17 name: "trackedPositionChanged"
18 Parameter { name: "value"; type: "double" }
19 }
20 Method { name: "calculate"; type: "double" }
21 Method { name: "reset" }
22 }
23 Component {
24 name: "Direction"
25 prototype: "QObject"
26 exports: ["Ubuntu.Gestures/Direction 0.1"]
27 isCreatable: false
28 isSingleton: true
29 exportMetaObjectRevisions: [0]
30 Enum {
31 name: "Type"
32 values: {
33 "Rightwards": 0,
34 "Leftwards": 1,
35 "Downwards": 2,
36 "Upwards": 3
37 }
38 }
39 Method {
40 name: "isHorizontal"
41 type: "bool"
42 Parameter { name: "type"; type: "Direction::Type" }
43 }
44 Method {
45 name: "isVertical"
46 type: "bool"
47 Parameter { name: "type"; type: "Direction::Type" }
48 }
49 Method {
50 name: "isPositive"
51 type: "bool"
52 Parameter { name: "type"; type: "Direction::Type" }
53 }
54 }
55 Component {
56 name: "DirectionalDragArea"
57 defaultProperty: "data"
58 prototype: "QQuickItem"
59 exports: ["Ubuntu.Gestures/DirectionalDragArea 0.1"]
60 exportMetaObjectRevisions: [0]
61 Enum {
62 name: "Status"
63 values: {
64 "WaitingForTouch": 0,
65 "Undecided": 1,
66 "Recognized": 2
67 }
68 }
69 Property { name: "direction"; type: "Direction::Type" }
70 Property { name: "distance"; type: "double"; isReadonly: true }
71 Property { name: "sceneDistance"; type: "double"; isReadonly: true }
72 Property { name: "touchX"; type: "double"; isReadonly: true }
73 Property { name: "touchY"; type: "double"; isReadonly: true }
74 Property { name: "touchSceneX"; type: "double"; isReadonly: true }
75 Property { name: "touchSceneY"; type: "double"; isReadonly: true }
76 Property { name: "status"; type: "Status"; isReadonly: true }
77 Property { name: "dragging"; type: "bool"; isReadonly: true }
78 Property { name: "maxDeviation"; type: "double" }
79 Property { name: "wideningAngle"; type: "double" }
80 Property { name: "distanceThreshold"; type: "double" }
81 Property { name: "minSpeed"; type: "double" }
82 Property { name: "maxSilenceTime"; type: "int" }
83 Property { name: "compositionTime"; type: "int" }
84 Signal {
85 name: "directionChanged"
86 Parameter { name: "direction"; type: "Direction::Type" }
87 }
88 Signal {
89 name: "statusChanged"
90 Parameter { name: "value"; type: "Status" }
91 }
92 Signal {
93 name: "draggingChanged"
94 Parameter { name: "value"; type: "bool" }
95 }
96 Signal {
97 name: "distanceChanged"
98 Parameter { name: "value"; type: "double" }
99 }
100 Signal {
101 name: "sceneDistanceChanged"
102 Parameter { name: "value"; type: "double" }
103 }
104 Signal {
105 name: "maxDeviationChanged"
106 Parameter { name: "value"; type: "double" }
107 }
108 Signal {
109 name: "wideningAngleChanged"
110 Parameter { name: "value"; type: "double" }
111 }
112 Signal {
113 name: "distanceThresholdChanged"
114 Parameter { name: "value"; type: "double" }
115 }
116 Signal {
117 name: "minSpeedChanged"
118 Parameter { name: "value"; type: "double" }
119 }
120 Signal {
121 name: "maxSilenceTimeChanged"
122 Parameter { name: "value"; type: "int" }
123 }
124 Signal {
125 name: "compositionTimeChanged"
126 Parameter { name: "value"; type: "int" }
127 }
128 Signal {
129 name: "touchXChanged"
130 Parameter { name: "value"; type: "double" }
131 }
132 Signal {
133 name: "touchYChanged"
134 Parameter { name: "value"; type: "double" }
135 }
136 Signal {
137 name: "touchSceneXChanged"
138 Parameter { name: "value"; type: "double" }
139 }
140 Signal {
141 name: "touchSceneYChanged"
142 Parameter { name: "value"; type: "double" }
143 }
144 }
145 Component {
146 name: "PressedOutsideNotifier"
147 defaultProperty: "data"
148 prototype: "QQuickItem"
149 exports: ["Ubuntu.Gestures/PressedOutsideNotifier 0.1"]
150 exportMetaObjectRevisions: [0]
151 Signal { name: "pressedOutside" }
152 }
153}
0154
=== modified file 'plugins/Unity/Indicators/CMakeLists.txt'
--- plugins/Unity/Indicators/CMakeLists.txt 2014-05-02 22:57:00 +0000
+++ plugins/Unity/Indicators/CMakeLists.txt 2014-06-26 10:07:27 +0000
@@ -51,7 +51,4 @@
5151
52qt5_use_modules(IndicatorsQml Core Qml Quick)52qt5_use_modules(IndicatorsQml Core Qml Quick)
5353
54add_unity8_plugin(Unity.Indicators 0.1 Unity/Indicators54add_unity8_plugin(Unity.Indicators 0.1 Unity/Indicators TARGETS IndicatorsQml)
55 SEARCH_PATH qml
56 TARGETS IndicatorsQml
57)
5855
=== renamed file 'plugins/Unity/Indicators/qml/CachedUnityMenuModel.qml' => 'plugins/Unity/Indicators/CachedUnityMenuModel.qml'
=== added file 'plugins/Unity/Indicators/Indicators.qmltypes'
--- plugins/Unity/Indicators/Indicators.qmltypes 1970-01-01 00:00:00 +0000
+++ plugins/Unity/Indicators/Indicators.qmltypes 2014-06-26 10:07:27 +0000
@@ -0,0 +1,278 @@
1import QtQuick.tooling 1.1
2
3// This file describes the plugin-supplied types contained in the library.
4// It is used for QML tooling purposes only.
5//
6// This file was auto-generated by:
7// 'qmlplugindump -notrelocatable Unity.Indicators 0.1 plugins'
8
9Module {
10 Component {
11 name: "ActionState"
12 prototype: "QObject"
13 exports: ["Unity.Indicators/ActionState 0.1"]
14 isCreatable: false
15 exportMetaObjectRevisions: [0]
16 Enum {
17 name: "ActionStates"
18 values: {
19 "Label": 0,
20 "IconSource": 1,
21 "AccessableName": 2,
22 "Visible": 3
23 }
24 }
25 }
26 Component { name: "ActionStateParser"; prototype: "QObject" }
27 Component {
28 name: "FlatMenuProxyModelRole"
29 prototype: "QObject"
30 exports: ["Unity.Indicators/FlatMenuProxyModelRole 0.1"]
31 isCreatable: false
32 exportMetaObjectRevisions: [0]
33 Enum {
34 name: "Roles"
35 values: {
36 "Action": 1,
37 "Label": 2,
38 "Extra": 3,
39 "Depth": 4,
40 "hasSection": 5,
41 "hasSubMenu": 6
42 }
43 }
44 }
45 Component {
46 name: "IndicatorsManager"
47 prototype: "QObject"
48 exports: ["Unity.Indicators/IndicatorsManager 0.1"]
49 exportMetaObjectRevisions: [0]
50 Property { name: "loaded"; type: "bool"; isReadonly: true }
51 Signal {
52 name: "loadedChanged"
53 Parameter { type: "bool" }
54 }
55 Signal {
56 name: "indicatorLoaded"
57 Parameter { name: "indicator_name"; type: "string" }
58 }
59 Signal {
60 name: "indicatorAboutToBeUnloaded"
61 Parameter { name: "indicator_name"; type: "string" }
62 }
63 Method {
64 name: "load"
65 Parameter { name: "profile"; type: "string" }
66 }
67 Method { name: "unload" }
68 }
69 Component {
70 name: "IndicatorsModel"
71 prototype: "QAbstractListModel"
72 exports: ["Unity.Indicators/IndicatorsModel 0.1"]
73 exportMetaObjectRevisions: [0]
74 Property { name: "count"; type: "int"; isReadonly: true }
75 Signal {
76 name: "indicatorDataChanged"
77 Parameter { name: "data"; type: "QVariant" }
78 }
79 Method {
80 name: "load"
81 Parameter { name: "profile"; type: "string" }
82 }
83 Method { name: "unload" }
84 Method {
85 name: "data"
86 type: "QVariant"
87 Parameter { name: "row"; type: "int" }
88 Parameter { name: "role"; type: "int" }
89 }
90 }
91 Component {
92 name: "IndicatorsModelRole"
93 prototype: "QObject"
94 exports: ["Unity.Indicators/IndicatorsModelRole 0.1"]
95 isCreatable: false
96 exportMetaObjectRevisions: [0]
97 Enum {
98 name: "Roles"
99 values: {
100 "Identifier": 0,
101 "Position": 1,
102 "WidgetSource": 2,
103 "PageSource": 3,
104 "IndicatorProperties": 4,
105 "IsVisible": 5
106 }
107 }
108 }
109 Component {
110 name: "MenuContentActivator"
111 prototype: "QObject"
112 exports: ["Unity.Indicators/MenuContentActivator 0.1"]
113 exportMetaObjectRevisions: [0]
114 Property { name: "baseIndex"; type: "int" }
115 Property { name: "running"; type: "bool" }
116 Property { name: "count"; type: "int" }
117 Property { name: "content"; type: "MenuContentState"; isList: true; isReadonly: true }
118 Signal {
119 name: "baseIndexChanged"
120 Parameter { name: "baseIndex"; type: "int" }
121 }
122 Signal {
123 name: "deltaChanged"
124 Parameter { name: "delta"; type: "int" }
125 }
126 Signal {
127 name: "runningChanged"
128 Parameter { name: "running"; type: "bool" }
129 }
130 Signal {
131 name: "countChanged"
132 Parameter { name: "count"; type: "int" }
133 }
134 Method { name: "restart" }
135 Method { name: "stop" }
136 Method { name: "clear" }
137 Method {
138 name: "isMenuContentActive"
139 type: "bool"
140 Parameter { name: "index"; type: "int" }
141 }
142 }
143 Component {
144 name: "MenuContentState"
145 prototype: "QObject"
146 exports: ["Unity.Indicators/MenuContentState 0.1"]
147 isCreatable: false
148 exportMetaObjectRevisions: [0]
149 Property { name: "active"; type: "bool"; isReadonly: true }
150 }
151 Component {
152 name: "ModelPrinter"
153 prototype: "QObject"
154 exports: ["Unity.Indicators/ModelPrinter 0.1"]
155 exportMetaObjectRevisions: [0]
156 Property { name: "model"; type: "UnityMenuModel"; isPointer: true }
157 Property { name: "text"; type: "string"; isReadonly: true }
158 Method { name: "text"; type: "string" }
159 }
160 Component {
161 name: "NetworkActionState"
162 prototype: "QObject"
163 exports: ["Unity.Indicators/NetworkActionState 0.1"]
164 isCreatable: false
165 exportMetaObjectRevisions: [0]
166 Enum {
167 name: "NetworkActionStates"
168 values: {
169 "Connection": 1,
170 "SignalStrength": 2
171 }
172 }
173 }
174 Component {
175 name: "NetworkConnection"
176 prototype: "QObject"
177 exports: ["Unity.Indicators/NetworkConnection 0.1"]
178 isCreatable: false
179 exportMetaObjectRevisions: [0]
180 Enum {
181 name: "NetworkConnectionStates"
182 values: {
183 "Initial": 0,
184 "Activating": 1,
185 "Activated": 2,
186 "Deactivating": 3
187 }
188 }
189 }
190 Component {
191 name: "QAbstractProxyModel"
192 prototype: "QAbstractItemModel"
193 Property { name: "sourceModel"; type: "QAbstractItemModel"; isPointer: true }
194 }
195 Component { name: "QIdentityProxyModel"; prototype: "QAbstractProxyModel" }
196 Component {
197 name: "RootActionState"
198 prototype: "ActionStateParser"
199 exports: ["Unity.Indicators/RootActionState 0.1"]
200 exportMetaObjectRevisions: [0]
201 Property { name: "menu"; type: "UnityMenuModel"; isPointer: true }
202 Property { name: "valid"; type: "bool"; isReadonly: true }
203 Property { name: "title"; type: "string"; isReadonly: true }
204 Property { name: "leftLabel"; type: "string"; isReadonly: true }
205 Property { name: "rightLabel"; type: "string"; isReadonly: true }
206 Property { name: "icons"; type: "QStringList"; isReadonly: true }
207 Property { name: "accessibleName"; type: "string"; isReadonly: true }
208 Property { name: "visible"; type: "bool"; isReadonly: true }
209 Signal { name: "updated" }
210 Signal { name: "indexChanged" }
211 }
212 Component {
213 name: "UnityMenuModelCache"
214 prototype: "QObject"
215 exports: ["Unity.Indicators/UnityMenuModelCache 0.1"]
216 isCreatable: false
217 isSingleton: true
218 exportMetaObjectRevisions: [0]
219 Method {
220 name: "model"
221 type: "UnityMenuModel*"
222 Parameter { name: "path"; type: "string" }
223 }
224 Method {
225 name: "registerModel"
226 Parameter { name: "path"; type: "string" }
227 Parameter { name: "menuModel"; type: "UnityMenuModel"; isPointer: true }
228 }
229 }
230 Component {
231 name: "UnityMenuModelStack"
232 prototype: "QObject"
233 exports: ["Unity.Indicators/UnityMenuModelStack 0.1"]
234 exportMetaObjectRevisions: [0]
235 Property { name: "head"; type: "UnityMenuModel"; isPointer: true }
236 Property { name: "tail"; type: "UnityMenuModel"; isReadonly: true; isPointer: true }
237 Property { name: "count"; type: "int"; isReadonly: true }
238 Signal {
239 name: "headChanged"
240 Parameter { name: "head"; type: "UnityMenuModel"; isPointer: true }
241 }
242 Signal {
243 name: "tailChanged"
244 Parameter { name: "tail"; type: "UnityMenuModel"; isPointer: true }
245 }
246 Signal {
247 name: "countChanged"
248 Parameter { name: "count"; type: "int" }
249 }
250 Method {
251 name: "push"
252 Parameter { name: "model"; type: "UnityMenuModel"; isPointer: true }
253 Parameter { name: "menuIndex"; type: "int" }
254 }
255 Method { name: "pop"; type: "UnityMenuModel*" }
256 }
257 Component {
258 name: "VisibleIndicatorsModel"
259 prototype: "QIdentityProxyModel"
260 exports: ["Unity.Indicators/VisibleIndicatorsModel 0.1"]
261 exportMetaObjectRevisions: [0]
262 Property { name: "model"; type: "QAbstractItemModel"; isPointer: true }
263 Property { name: "visible"; type: "QVariantMap" }
264 Signal { name: "totalCountChanged" }
265 Method {
266 name: "onBeginRowInserted"
267 Parameter { type: "QModelIndex" }
268 Parameter { name: "start"; type: "int" }
269 Parameter { name: "end"; type: "int" }
270 }
271 Method {
272 name: "onRowInserted"
273 Parameter { type: "QModelIndex" }
274 Parameter { name: "start"; type: "int" }
275 Parameter { name: "end"; type: "int" }
276 }
277 }
278}
0279
=== removed directory 'plugins/Unity/Indicators/qml'
=== renamed file 'plugins/Unity/Indicators/qml/qmldir' => 'plugins/Unity/Indicators/qmldir'
--- plugins/Unity/Indicators/qml/qmldir 2014-05-02 22:57:00 +0000
+++ plugins/Unity/Indicators/qmldir 2014-06-26 10:07:27 +0000
@@ -4,7 +4,3 @@
44
5CachedUnityMenuModel 0.1 CachedUnityMenuModel.qml5CachedUnityMenuModel 0.1 CachedUnityMenuModel.qml
6IndicatorBase 0.1 IndicatorBase.qml6IndicatorBase 0.1 IndicatorBase.qml
7MenuItemFactory 0.1 MenuItemFactory.qml
8MessageMenuItemFactory 0.1 MessageMenuItemFactory.qml
9
10internal RemoveBackground RemoveBackground.qml
117
=== added file 'plugins/Unity/Launcher/Launcher.qmltypes'
--- plugins/Unity/Launcher/Launcher.qmltypes 1970-01-01 00:00:00 +0000
+++ plugins/Unity/Launcher/Launcher.qmltypes 2014-06-26 10:07:27 +0000
@@ -0,0 +1,174 @@
1import QtQuick.tooling 1.1
2
3// This file describes the plugin-supplied types contained in the library.
4// It is used for QML tooling purposes only.
5//
6// This file was auto-generated by:
7// 'qmlplugindump -notrelocatable Unity.Launcher 0.1 plugins'
8
9Module {
10 Component {
11 name: "LauncherItem"
12 prototype: "unity::shell::launcher::LauncherItemInterface"
13 exports: ["Unity.Launcher/LauncherItem 0.1"]
14 isCreatable: false
15 exportMetaObjectRevisions: [0]
16 Signal {
17 name: "favoriteChanged"
18 Parameter { name: "favorite"; type: "bool" }
19 }
20 Signal {
21 name: "runningChanged"
22 Parameter { name: "running"; type: "bool" }
23 }
24 }
25 Component {
26 name: "LauncherModel"
27 prototype: "unity::shell::launcher::LauncherModelInterface"
28 exports: ["Unity.Launcher/LauncherModel 0.1"]
29 isCreatable: false
30 isSingleton: true
31 exportMetaObjectRevisions: [0]
32 Method {
33 name: "get"
34 type: "unity::shell::launcher::LauncherItemInterface*"
35 Parameter { name: "index"; type: "int" }
36 }
37 Method {
38 name: "move"
39 Parameter { name: "oldIndex"; type: "int" }
40 Parameter { name: "newIndex"; type: "int" }
41 }
42 Method {
43 name: "pin"
44 Parameter { name: "appId"; type: "string" }
45 Parameter { name: "index"; type: "int" }
46 }
47 Method {
48 name: "pin"
49 Parameter { name: "appId"; type: "string" }
50 }
51 Method {
52 name: "requestRemove"
53 Parameter { name: "appId"; type: "string" }
54 }
55 Method {
56 name: "quickListActionInvoked"
57 Parameter { name: "appId"; type: "string" }
58 Parameter { name: "actionIndex"; type: "int" }
59 }
60 Method {
61 name: "setUser"
62 Parameter { name: "username"; type: "string" }
63 }
64 Method {
65 name: "getUrlForAppId"
66 type: "string"
67 Parameter { name: "appId"; type: "string" }
68 }
69 }
70 Component {
71 name: "QuickListModel"
72 prototype: "unity::shell::launcher::QuickListModelInterface"
73 exports: ["Unity.Launcher/QuickListModel 0.1"]
74 isCreatable: false
75 exportMetaObjectRevisions: [0]
76 }
77 Component {
78 name: "unity::shell::launcher::LauncherItemInterface"
79 prototype: "QObject"
80 exports: ["Unity.Launcher/LauncherItemInterface 0.1"]
81 isCreatable: false
82 exportMetaObjectRevisions: [0]
83 Property { name: "appId"; type: "string"; isReadonly: true }
84 Property { name: "name"; type: "string"; isReadonly: true }
85 Property { name: "icon"; type: "string"; isReadonly: true }
86 Property { name: "pinned"; type: "bool"; isReadonly: true }
87 Property { name: "running"; type: "bool"; isReadonly: true }
88 Property { name: "recent"; type: "bool"; isReadonly: true }
89 Property { name: "progress"; type: "int"; isReadonly: true }
90 Property { name: "count"; type: "int"; isReadonly: true }
91 Property { name: "focused"; type: "bool"; isReadonly: true }
92 Property {
93 name: "quickList"
94 type: "unity::shell::launcher::QuickListModelInterface"
95 isReadonly: true
96 isPointer: true
97 }
98 Signal {
99 name: "pinnedChanged"
100 Parameter { name: "pinned"; type: "bool" }
101 }
102 Signal {
103 name: "runningChanged"
104 Parameter { name: "running"; type: "bool" }
105 }
106 Signal {
107 name: "recentChanged"
108 Parameter { name: "running"; type: "bool" }
109 }
110 Signal {
111 name: "progressChanged"
112 Parameter { name: "progress"; type: "int" }
113 }
114 Signal {
115 name: "countChanged"
116 Parameter { name: "count"; type: "int" }
117 }
118 Signal {
119 name: "focusedChanged"
120 Parameter { name: "focused"; type: "bool" }
121 }
122 }
123 Component {
124 name: "unity::shell::launcher::LauncherModelInterface"
125 prototype: "QAbstractListModel"
126 exports: ["Unity.Launcher/LauncherModelInterface 0.1"]
127 isCreatable: false
128 exportMetaObjectRevisions: [0]
129 Property {
130 name: "applicationManager"
131 type: "unity::shell::application::ApplicationManagerInterface"
132 isPointer: true
133 }
134 Method {
135 name: "move"
136 Parameter { name: "oldIndex"; type: "int" }
137 Parameter { name: "newIndex"; type: "int" }
138 }
139 Method {
140 name: "get"
141 type: "unity::shell::launcher::LauncherItemInterface*"
142 Parameter { name: "index"; type: "int" }
143 }
144 Method {
145 name: "pin"
146 Parameter { name: "appId"; type: "string" }
147 Parameter { name: "index"; type: "int" }
148 }
149 Method {
150 name: "pin"
151 Parameter { name: "appId"; type: "string" }
152 }
153 Method {
154 name: "requestRemove"
155 Parameter { name: "appId"; type: "string" }
156 }
157 Method {
158 name: "quickListActionInvoked"
159 Parameter { name: "appId"; type: "string" }
160 Parameter { name: "actionIndex"; type: "int" }
161 }
162 Method {
163 name: "setUser"
164 Parameter { name: "username"; type: "string" }
165 }
166 }
167 Component {
168 name: "unity::shell::launcher::QuickListModelInterface"
169 prototype: "QAbstractListModel"
170 exports: ["Unity.Launcher/QuickListInterface 0.1"]
171 isCreatable: false
172 exportMetaObjectRevisions: [0]
173 }
174}
0175
=== added file 'plugins/Unity/Session/Session.qmltypes'
--- plugins/Unity/Session/Session.qmltypes 1970-01-01 00:00:00 +0000
+++ plugins/Unity/Session/Session.qmltypes 2014-06-26 10:07:27 +0000
@@ -0,0 +1,25 @@
1import QtQuick.tooling 1.1
2
3// This file describes the plugin-supplied types contained in the library.
4// It is used for QML tooling purposes only.
5//
6// This file was auto-generated by:
7// 'qmlplugindump -notrelocatable Unity.Session 0.1 plugins'
8
9Module {
10 Component {
11 name: "DBusUnitySessionService"
12 prototype: "QObject"
13 exports: ["Unity.Session/DBusUnitySessionService 0.1"]
14 isCreatable: false
15 isSingleton: true
16 exportMetaObjectRevisions: [0]
17 Signal {
18 name: "logoutRequested"
19 Parameter { name: "have_inhibitors"; type: "bool" }
20 }
21 Signal { name: "logoutReady" }
22 Method { name: "Logout" }
23 Method { name: "RequestLogout" }
24 }
25}
026
=== added file 'plugins/Utils/Utils.qmltypes'
--- plugins/Utils/Utils.qmltypes 1970-01-01 00:00:00 +0000
+++ plugins/Utils/Utils.qmltypes 2014-06-26 10:07:27 +0000
@@ -0,0 +1,143 @@
1import QtQuick.tooling 1.1
2
3// This file describes the plugin-supplied types contained in the library.
4// It is used for QML tooling purposes only.
5//
6// This file was auto-generated by:
7// 'qmlplugindump -notrelocatable Utils 0.1 plugins'
8
9Module {
10 Component {
11 name: "EasingCurve"
12 prototype: "QObject"
13 exports: ["Utils/EasingCurve 0.1"]
14 exportMetaObjectRevisions: [0]
15 Property { name: "type"; type: "QEasingCurve::Type" }
16 Property { name: "period"; type: "double" }
17 Property { name: "progress"; type: "double" }
18 Property { name: "value"; type: "double"; isReadonly: true }
19 }
20 Component {
21 name: "QAbstractProxyModel"
22 prototype: "QAbstractItemModel"
23 Property { name: "sourceModel"; type: "QAbstractItemModel"; isPointer: true }
24 }
25 Component { name: "QIdentityProxyModel"; prototype: "QAbstractProxyModel" }
26 Component {
27 name: "QLimitProxyModelQML"
28 prototype: "QIdentityProxyModel"
29 exports: ["Utils/LimitProxyModel 0.1"]
30 exportMetaObjectRevisions: [0]
31 Property { name: "model"; type: "QAbstractItemModel"; isPointer: true }
32 Property { name: "limit"; type: "int" }
33 Property { name: "count"; type: "int"; isReadonly: true }
34 Signal { name: "totalCountChanged" }
35 }
36 Component {
37 name: "QSortFilterProxyModel"
38 prototype: "QAbstractProxyModel"
39 Property { name: "filterRegExp"; type: "QRegExp" }
40 Property { name: "filterKeyColumn"; type: "int" }
41 Property { name: "dynamicSortFilter"; type: "bool" }
42 Property { name: "filterCaseSensitivity"; type: "Qt::CaseSensitivity" }
43 Property { name: "sortCaseSensitivity"; type: "Qt::CaseSensitivity" }
44 Property { name: "isSortLocaleAware"; type: "bool" }
45 Property { name: "sortRole"; type: "int" }
46 Property { name: "filterRole"; type: "int" }
47 Method {
48 name: "setFilterRegExp"
49 Parameter { name: "pattern"; type: "string" }
50 }
51 Method {
52 name: "setFilterWildcard"
53 Parameter { name: "pattern"; type: "string" }
54 }
55 Method {
56 name: "setFilterFixedString"
57 Parameter { name: "pattern"; type: "string" }
58 }
59 Method { name: "clear" }
60 Method { name: "invalidate" }
61 }
62 Component {
63 name: "QSortFilterProxyModelQML"
64 prototype: "QSortFilterProxyModel"
65 exports: ["Utils/SortFilterProxyModel 0.1"]
66 exportMetaObjectRevisions: [0]
67 Property { name: "model"; type: "QAbstractItemModel"; isPointer: true }
68 Property { name: "totalCount"; type: "int"; isReadonly: true }
69 Property { name: "count"; type: "int"; isReadonly: true }
70 Property { name: "invertMatch"; type: "bool" }
71 Signal {
72 name: "invertMatchChanged"
73 Parameter { type: "bool" }
74 }
75 Method {
76 name: "get"
77 type: "QVariantMap"
78 Parameter { name: "row"; type: "int" }
79 }
80 Method {
81 name: "data"
82 type: "QVariant"
83 Parameter { name: "row"; type: "int" }
84 Parameter { name: "role"; type: "int" }
85 }
86 Method { name: "count"; type: "int" }
87 Method {
88 name: "findFirst"
89 type: "int"
90 Parameter { name: "role"; type: "int" }
91 Parameter { name: "value"; type: "QVariant" }
92 }
93 Method {
94 name: "mapRowToSource"
95 type: "int"
96 Parameter { name: "row"; type: "int" }
97 }
98 Method {
99 name: "mapFromSource"
100 type: "int"
101 Parameter { name: "row"; type: "int" }
102 }
103 Method {
104 name: "mapToSource"
105 type: "int"
106 Parameter { name: "row"; type: "int" }
107 }
108 }
109 Component {
110 name: "TimeFormatter"
111 prototype: "QObject"
112 exports: ["Utils/GDateTimeFormatter 0.1", "Utils/TimeFormatter 0.1"]
113 exportMetaObjectRevisions: [0, 0]
114 Property { name: "format"; type: "string" }
115 Property { name: "timeString"; type: "string"; isReadonly: true }
116 Property { name: "time"; type: "qlonglong" }
117 Signal {
118 name: "formatChanged"
119 Parameter { name: "format"; type: "string" }
120 }
121 Signal {
122 name: "timeStringChanged"
123 Parameter { name: "timeString"; type: "string" }
124 }
125 Signal {
126 name: "timeChanged"
127 Parameter { name: "time"; type: "qlonglong" }
128 }
129 }
130 Component {
131 name: "UnityMenuModelPaths"
132 prototype: "QObject"
133 exports: ["Utils/UnityMenuModelPaths 0.1"]
134 exportMetaObjectRevisions: [0]
135 Property { name: "source"; type: "QVariant" }
136 Property { name: "busName"; type: "QByteArray"; isReadonly: true }
137 Property { name: "actions"; type: "QVariantMap"; isReadonly: true }
138 Property { name: "menuObjectPath"; type: "QByteArray"; isReadonly: true }
139 Property { name: "busNameHint"; type: "QByteArray" }
140 Property { name: "actionsHint"; type: "QByteArray" }
141 Property { name: "menuObjectPathHint"; type: "QByteArray" }
142 }
143}
0144
=== modified file 'qml/Panel/Indicators/DefaultIndicatorPage.qml'
--- qml/Panel/Indicators/DefaultIndicatorPage.qml 2013-12-13 14:59:04 +0000
+++ qml/Panel/Indicators/DefaultIndicatorPage.qml 2014-06-26 10:07:27 +0000
@@ -22,7 +22,7 @@
22import Ubuntu.Components 0.1 as Components22import Ubuntu.Components 0.1 as Components
23import Unity.Indicators 0.1 as Indicators23import Unity.Indicators 0.1 as Indicators
2424
25Indicators.IndicatorBase {25IndicatorBase {
26 id: main26 id: main
2727
28 //const28 //const
@@ -174,7 +174,7 @@
174 }174 }
175 }175 }
176176
177 Indicators.MenuItemFactory {177 MenuItemFactory {
178 id: factory178 id: factory
179 menuModel: mainMenu.model ? mainMenu.model : null179 menuModel: mainMenu.model ? mainMenu.model : null
180 }180 }
181181
=== modified file 'qml/Panel/Indicators/DefaultIndicatorWidget.qml'
--- qml/Panel/Indicators/DefaultIndicatorWidget.qml 2013-12-12 09:55:17 +0000
+++ qml/Panel/Indicators/DefaultIndicatorWidget.qml 2014-06-26 10:07:27 +0000
@@ -19,9 +19,8 @@
1919
20import QtQuick 2.020import QtQuick 2.0
21import Ubuntu.Components 0.121import Ubuntu.Components 0.1
22import Unity.Indicators 0.1 as Indicators
2322
24Indicators.IndicatorBase {23IndicatorBase {
25 id: indicatorWidget24 id: indicatorWidget
2625
27 property int iconSize: height26 property int iconSize: height
2827
=== renamed file 'plugins/Unity/Indicators/qml/IndicatorBase.qml' => 'qml/Panel/Indicators/IndicatorBase.qml'
--- plugins/Unity/Indicators/qml/IndicatorBase.qml 2013-11-24 02:23:56 +0000
+++ qml/Panel/Indicators/IndicatorBase.qml 2014-06-26 10:07:27 +0000
@@ -36,7 +36,7 @@
3636
37 property alias menuModel: cachedModel.model37 property alias menuModel: cachedModel.model
3838
39 CachedUnityMenuModel {39 Indicators.CachedUnityMenuModel {
40 id: cachedModel40 id: cachedModel
41 busName: indicatorItem.busName41 busName: indicatorItem.busName
42 actionsObjectPath: indicatorItem.actionsObjectPath42 actionsObjectPath: indicatorItem.actionsObjectPath
4343
=== modified file 'qml/Panel/Indicators/IndicatorDelegate.qml'
--- qml/Panel/Indicators/IndicatorDelegate.qml 2014-01-14 15:35:57 +0000
+++ qml/Panel/Indicators/IndicatorDelegate.qml 2014-06-26 10:07:27 +0000
@@ -18,9 +18,8 @@
18 */18 */
1919
20import QtQuick 2.020import QtQuick 2.0
21import Unity.Indicators 0.1 as Indicators
2221
23Indicators.IndicatorBase {22IndicatorBase {
24 enabled: false23 enabled: false
2524
26 onRootActionStateChanged: {25 onRootActionStateChanged: {
2726
=== renamed file 'plugins/Unity/Indicators/qml/MenuItemFactory.qml' => 'qml/Panel/Indicators/MenuItemFactory.qml'
=== renamed file 'plugins/Unity/Indicators/qml/MessageMenuItemFactory.qml' => 'qml/Panel/Indicators/MessageMenuItemFactory.qml'
=== renamed file 'plugins/Unity/Indicators/qml/RemoveBackground.qml' => 'qml/Panel/Indicators/RemoveBackground.qml'
=== added file 'tests/mocks/AccountsService/AccountsService.qmltypes'
--- tests/mocks/AccountsService/AccountsService.qmltypes 1970-01-01 00:00:00 +0000
+++ tests/mocks/AccountsService/AccountsService.qmltypes 2014-06-26 10:07:27 +0000
@@ -0,0 +1,22 @@
1import QtQuick.tooling 1.1
2
3// This file describes the plugin-supplied types contained in the library.
4// It is used for QML tooling purposes only.
5//
6// This file was auto-generated by:
7// 'qmlplugindump -notrelocatable AccountsService 0.1 tests/mocks'
8
9Module {
10 Component {
11 name: "AccountsService"
12 prototype: "QObject"
13 exports: ["AccountsService/AccountsService 0.1"]
14 isCreatable: false
15 isSingleton: true
16 exportMetaObjectRevisions: [0]
17 Property { name: "user"; type: "string" }
18 Property { name: "demoEdges"; type: "bool" }
19 Property { name: "backgroundFile"; type: "string" }
20 Property { name: "statsWelcomeScreen"; type: "bool" }
21 }
22}
023
=== added file 'tests/mocks/GSettings.1.0/GSettings.qmltypes'
--- tests/mocks/GSettings.1.0/GSettings.qmltypes 1970-01-01 00:00:00 +0000
+++ tests/mocks/GSettings.1.0/GSettings.qmltypes 2014-06-26 10:07:27 +0000
@@ -0,0 +1,42 @@
1import QtQuick.tooling 1.1
2
3// This file describes the plugin-supplied types contained in the library.
4// It is used for QML tooling purposes only.
5//
6// This file was auto-generated by:
7// 'qmlplugindump -notrelocatable GSettings 1.0 tests/mocks'
8
9Module {
10 Component {
11 name: "GSettingsControllerQml"
12 prototype: "QObject"
13 exports: ["GSettings/GSettingsController 1.0"]
14 isCreatable: false
15 isSingleton: true
16 exportMetaObjectRevisions: [0]
17 Method {
18 name: "setPictureUri"
19 Parameter { name: "str"; type: "string" }
20 }
21 }
22 Component {
23 name: "GSettingsQml"
24 prototype: "QObject"
25 exports: ["GSettings/GSettings 1.0"]
26 exportMetaObjectRevisions: [0]
27 Property { name: "schema"; type: "GSettingsSchemaQml"; isReadonly: true; isPointer: true }
28 Property { name: "pictureUri"; type: "string" }
29 Signal {
30 name: "pictureUriChanged"
31 Parameter { type: "string" }
32 }
33 }
34 Component {
35 name: "GSettingsSchemaQml"
36 prototype: "QObject"
37 exports: ["GSettings/GSettingsSchema 1.0"]
38 isCreatable: false
39 exportMetaObjectRevisions: [0]
40 Property { name: "id"; type: "QByteArray" }
41 }
42}
043
=== added file 'tests/mocks/HudClient/HudClient.qmltypes'
--- tests/mocks/HudClient/HudClient.qmltypes 1970-01-01 00:00:00 +0000
+++ tests/mocks/HudClient/HudClient.qmltypes 2014-06-26 10:07:27 +0000
@@ -0,0 +1,113 @@
1import QtQuick.tooling 1.1
2
3// This file describes the plugin-supplied types contained in the library.
4// It is used for QML tooling purposes only.
5//
6// This file was auto-generated by:
7// 'qmlplugindump -notrelocatable HudClient 0.1 tests/mocks'
8
9Module {
10 Component {
11 name: "DeeListModel"
12 prototype: "QAbstractListModel"
13 Property { name: "name"; type: "string" }
14 Property { name: "synchronized"; type: "bool"; isReadonly: true }
15 Property { name: "count"; type: "int"; isReadonly: true }
16 Signal {
17 name: "nameChanged"
18 Parameter { type: "string" }
19 }
20 Signal {
21 name: "synchronizedChanged"
22 Parameter { type: "bool" }
23 }
24 Signal {
25 name: "roleNamesChanged"
26 Parameter { type: "QHash<int,QByteArray>" }
27 }
28 Method {
29 name: "get"
30 type: "QVariantMap"
31 Parameter { name: "row"; type: "int" }
32 }
33 Method { name: "count"; type: "int" }
34 }
35 Component {
36 name: "HudClient"
37 prototype: "QObject"
38 exports: ["HudClient/HudClient 0.1"]
39 exportMetaObjectRevisions: [0]
40 Property { name: "results"; type: "DeeListModel"; isReadonly: true; isPointer: true }
41 Property { name: "toolBarModel"; type: "QAbstractItemModel"; isReadonly: true; isPointer: true }
42 Signal { name: "voiceQueryLoading" }
43 Signal { name: "voiceQueryListening" }
44 Signal { name: "voiceQueryHeardSomething" }
45 Signal { name: "voiceQueryFailed" }
46 Signal {
47 name: "voiceQueryFinished"
48 Parameter { name: "query"; type: "string" }
49 }
50 Signal { name: "commandExecuted" }
51 Signal {
52 name: "showParametrizedAction"
53 Parameter { name: "action"; type: "string" }
54 Parameter { name: "items"; type: "QVariant" }
55 }
56 Method {
57 name: "executeCommand"
58 Parameter { name: "index"; type: "int" }
59 }
60 Method {
61 name: "setQuery"
62 Parameter { name: "new_query"; type: "string" }
63 }
64 Method { name: "startVoiceQuery" }
65 Method {
66 name: "executeParametrizedAction"
67 Parameter { name: "values"; type: "QVariant" }
68 }
69 Method {
70 name: "updateParametrizedAction"
71 Parameter { name: "values"; type: "QVariant" }
72 }
73 Method { name: "cancelParametrizedAction" }
74 Method {
75 name: "executeToolBarAction"
76 Parameter { name: "action"; type: "HudClientQueryToolbarItems" }
77 }
78 }
79 Component {
80 name: "HudClientStub"
81 prototype: "QObject"
82 exports: ["HudClient/HudClientStub 0.1"]
83 exportMetaObjectRevisions: [0]
84 Property { name: "lastExecutedToolbarItem"; type: "int"; isReadonly: true }
85 Property { name: "lastSetQuery"; type: "string"; isReadonly: true }
86 Property { name: "lastExecutedCommandRow"; type: "int"; isReadonly: true }
87 Property { name: "lastExecutedParametrizedCommandRow"; type: "int"; isReadonly: true }
88 Property { name: "lastParametrizedCommandCommited"; type: "bool"; isReadonly: true }
89 Property { name: "activatedActions"; type: "QVariantMap"; isReadonly: true }
90 Method { name: "reset" }
91 Method { name: "fullScreenToolbarItemValue"; type: "int" }
92 Method { name: "helpToolbarItemValue"; type: "int" }
93 Method { name: "preferencesToolbarItemValue"; type: "int" }
94 Method { name: "undoToolbarItemValue"; type: "int" }
95 Method {
96 name: "setHelpToolbarItemEnabled"
97 Parameter { name: "enabled"; type: "bool" }
98 }
99 }
100 Component { name: "HudToolBarModel"; prototype: "QAbstractListModel" }
101 Component {
102 name: "VolumePeakDetector"
103 prototype: "QObject"
104 exports: ["HudClient/VolumePeakDetector 0.1"]
105 exportMetaObjectRevisions: [0]
106 Property { name: "enabled"; type: "bool" }
107 Property { name: "desiredInterval"; type: "int" }
108 Signal {
109 name: "newPeak"
110 Parameter { name: "volume"; type: "float" }
111 }
112 }
113}
0114
=== added file 'tests/mocks/LightDM/LightDM.qmltypes'
--- tests/mocks/LightDM/LightDM.qmltypes 1970-01-01 00:00:00 +0000
+++ tests/mocks/LightDM/LightDM.qmltypes 2014-06-26 10:07:27 +0000
@@ -0,0 +1,241 @@
1import QtQuick.tooling 1.1
2
3// This file describes the plugin-supplied types contained in the library.
4// It is used for QML tooling purposes only.
5//
6// This file was auto-generated by:
7// 'qmlplugindump -notrelocatable LightDM 0.1 tests/mocks'
8
9Module {
10 Component {
11 name: "Greeter"
12 prototype: "QObject"
13 exports: ["LightDM/Greeter 0.1"]
14 isCreatable: false
15 isSingleton: true
16 exportMetaObjectRevisions: [0]
17 Property { name: "authenticated"; type: "bool"; isReadonly: true }
18 Property { name: "authenticationUser"; type: "string"; isReadonly: true }
19 Property { name: "promptless"; type: "bool"; isReadonly: true }
20 Signal {
21 name: "showMessage"
22 Parameter { name: "text"; type: "string" }
23 Parameter { name: "isError"; type: "bool" }
24 }
25 Signal {
26 name: "showPrompt"
27 Parameter { name: "text"; type: "string" }
28 Parameter { name: "isSecret"; type: "bool" }
29 }
30 Signal { name: "authenticationComplete" }
31 Signal {
32 name: "authenticationUserChanged"
33 Parameter { name: "user"; type: "string" }
34 }
35 Signal {
36 name: "requestAuthenticationUser"
37 Parameter { name: "user"; type: "string" }
38 }
39 Method {
40 name: "authenticate"
41 Parameter { name: "username"; type: "string" }
42 }
43 Method { name: "authenticate" }
44 Method {
45 name: "respond"
46 Parameter { name: "response"; type: "string" }
47 }
48 Method {
49 name: "startSessionSync"
50 type: "bool"
51 Parameter { name: "session"; type: "string" }
52 }
53 Method { name: "startSessionSync"; type: "bool" }
54 }
55 Component {
56 name: "QAbstractProxyModel"
57 prototype: "QAbstractItemModel"
58 Property { name: "sourceModel"; type: "QAbstractItemModel"; isPointer: true }
59 }
60 Component {
61 name: "QLightDM::UsersModel"
62 prototype: "QAbstractListModel"
63 exports: ["LightDM/UserRoles 0.1"]
64 isCreatable: false
65 exportMetaObjectRevisions: [0]
66 Enum {
67 name: "UserModelRoles"
68 values: {
69 "NameRole": 256,
70 "RealNameRole": 257,
71 "LoggedInRole": 258,
72 "BackgroundRole": 259,
73 "SessionRole": 260,
74 "HasMessagesRole": 261,
75 "ImagePathRole": 262,
76 "BackgroundPathRole": 263
77 }
78 }
79 }
80 Component {
81 name: "QSortFilterProxyModel"
82 prototype: "QAbstractProxyModel"
83 Property { name: "filterRegExp"; type: "QRegExp" }
84 Property { name: "filterKeyColumn"; type: "int" }
85 Property { name: "dynamicSortFilter"; type: "bool" }
86 Property { name: "filterCaseSensitivity"; type: "Qt::CaseSensitivity" }
87 Property { name: "sortCaseSensitivity"; type: "Qt::CaseSensitivity" }
88 Property { name: "isSortLocaleAware"; type: "bool" }
89 Property { name: "sortRole"; type: "int" }
90 Property { name: "filterRole"; type: "int" }
91 Method {
92 name: "setFilterRegExp"
93 Parameter { name: "pattern"; type: "string" }
94 }
95 Method {
96 name: "setFilterWildcard"
97 Parameter { name: "pattern"; type: "string" }
98 }
99 Method {
100 name: "setFilterFixedString"
101 Parameter { name: "pattern"; type: "string" }
102 }
103 Method { name: "clear" }
104 Method { name: "invalidate" }
105 }
106 Component {
107 name: "QSortFilterProxyModelQML"
108 prototype: "QSortFilterProxyModel"
109 Property { name: "model"; type: "QAbstractItemModel"; isPointer: true }
110 Property { name: "totalCount"; type: "int"; isReadonly: true }
111 Property { name: "count"; type: "int"; isReadonly: true }
112 Property { name: "invertMatch"; type: "bool" }
113 Signal {
114 name: "invertMatchChanged"
115 Parameter { type: "bool" }
116 }
117 Method {
118 name: "get"
119 type: "QVariantMap"
120 Parameter { name: "row"; type: "int" }
121 }
122 Method {
123 name: "data"
124 type: "QVariant"
125 Parameter { name: "row"; type: "int" }
126 Parameter { name: "role"; type: "int" }
127 }
128 Method { name: "count"; type: "int" }
129 Method {
130 name: "findFirst"
131 type: "int"
132 Parameter { name: "role"; type: "int" }
133 Parameter { name: "value"; type: "QVariant" }
134 }
135 Method {
136 name: "mapRowToSource"
137 type: "int"
138 Parameter { name: "row"; type: "int" }
139 }
140 Method {
141 name: "mapFromSource"
142 type: "int"
143 Parameter { name: "row"; type: "int" }
144 }
145 Method {
146 name: "mapToSource"
147 type: "int"
148 Parameter { name: "row"; type: "int" }
149 }
150 }
151 Component {
152 name: "UserMetricsOutput::ColorTheme"
153 prototype: "QObject"
154 Property { name: "start"; type: "QColor"; isReadonly: true }
155 Property { name: "main"; type: "QColor"; isReadonly: true }
156 Property { name: "end"; type: "QColor"; isReadonly: true }
157 Signal {
158 name: "startChanged"
159 Parameter { name: "color"; type: "QColor" }
160 }
161 Signal {
162 name: "mainChanged"
163 Parameter { name: "color"; type: "QColor" }
164 }
165 Signal {
166 name: "endChanged"
167 Parameter { name: "color"; type: "QColor" }
168 }
169 }
170 Component {
171 name: "UserMetricsOutput::UserMetrics"
172 prototype: "QObject"
173 exports: ["LightDM/Infographic 0.1"]
174 isCreatable: false
175 isSingleton: true
176 exportMetaObjectRevisions: [0]
177 Property { name: "label"; type: "string"; isReadonly: true }
178 Property { name: "username"; type: "string" }
179 Property {
180 name: "firstColor"
181 type: "UserMetricsOutput::ColorTheme"
182 isReadonly: true
183 isPointer: true
184 }
185 Property {
186 name: "secondColor"
187 type: "UserMetricsOutput::ColorTheme"
188 isReadonly: true
189 isPointer: true
190 }
191 Property { name: "firstMonth"; type: "QAbstractItemModel"; isReadonly: true; isPointer: true }
192 Property { name: "secondMonth"; type: "QAbstractItemModel"; isReadonly: true; isPointer: true }
193 Property { name: "currentDay"; type: "int"; isReadonly: true }
194 Signal {
195 name: "labelChanged"
196 Parameter { name: "label"; type: "string" }
197 }
198 Signal {
199 name: "usernameChanged"
200 Parameter { name: "username"; type: "string" }
201 }
202 Signal {
203 name: "firstColorChanged"
204 Parameter { name: "color"; type: "ColorTheme"; isPointer: true }
205 }
206 Signal {
207 name: "firstMonthChanged"
208 Parameter { name: "firstMonth"; type: "QAbstractItemModel"; isPointer: true }
209 }
210 Signal {
211 name: "currentDayChanged"
212 Parameter { name: "currentDay"; type: "int" }
213 }
214 Signal {
215 name: "secondColorChanged"
216 Parameter { name: "color"; type: "ColorTheme"; isPointer: true }
217 }
218 Signal {
219 name: "secondMonthChanged"
220 Parameter { name: "secondMonth"; type: "QAbstractItemModel"; isPointer: true }
221 }
222 Signal { name: "nextDataSource" }
223 Signal { name: "readyForDataChange" }
224 Signal { name: "dataAboutToAppear" }
225 Signal { name: "dataAppeared" }
226 Signal { name: "dataAboutToChange" }
227 Signal { name: "dataChanged" }
228 Signal { name: "dataAboutToDisappear" }
229 Signal { name: "dataDisappeared" }
230 Method { name: "nextDataSourceSlot" }
231 Method { name: "readyForDataChangeSlot" }
232 }
233 Component {
234 name: "UsersModel"
235 prototype: "QSortFilterProxyModelQML"
236 exports: ["LightDM/Users 0.1"]
237 isCreatable: false
238 isSingleton: true
239 exportMetaObjectRevisions: [0]
240 }
241}
0242
=== added file 'tests/mocks/Powerd/Powerd.qmltypes'
--- tests/mocks/Powerd/Powerd.qmltypes 1970-01-01 00:00:00 +0000
+++ tests/mocks/Powerd/Powerd.qmltypes 2014-06-26 10:07:27 +0000
@@ -0,0 +1,46 @@
1import QtQuick.tooling 1.1
2
3// This file describes the plugin-supplied types contained in the library.
4// It is used for QML tooling purposes only.
5//
6// This file was auto-generated by:
7// 'qmlplugindump -notrelocatable Powerd 0.1 tests/mocks'
8
9Module {
10 Component {
11 name: "Powerd"
12 prototype: "QObject"
13 exports: ["Powerd/Powerd 0.1"]
14 isCreatable: false
15 isSingleton: true
16 exportMetaObjectRevisions: [0]
17 Enum {
18 name: "DisplayFlag"
19 values: {
20 "UseProximity": 1,
21 "DisableAutoBrightness": 2,
22 "Bright": 4
23 }
24 }
25 Enum {
26 name: "DisplayFlags"
27 values: {
28 "UseProximity": 1,
29 "DisableAutoBrightness": 2,
30 "Bright": 4
31 }
32 }
33 Enum {
34 name: "Status"
35 values: {
36 "Off": 0,
37 "On": 1
38 }
39 }
40 Signal {
41 name: "displayPowerStateChange"
42 Parameter { name: "status"; type: "int" }
43 Parameter { name: "flags"; type: "uint" }
44 }
45 }
46}
047
=== added file 'tests/mocks/QMenuModel/QMenuModel.qmltypes'
--- tests/mocks/QMenuModel/QMenuModel.qmltypes 1970-01-01 00:00:00 +0000
+++ tests/mocks/QMenuModel/QMenuModel.qmltypes 2014-06-26 10:07:27 +0000
@@ -0,0 +1,77 @@
1import QtQuick.tooling 1.1
2
3// This file describes the plugin-supplied types contained in the library.
4// It is used for QML tooling purposes only.
5//
6// This file was auto-generated by:
7// 'qmlplugindump -notrelocatable QMenuModel 0.1 tests/mocks'
8
9Module {
10 Component {
11 name: "ActionStateParser"
12 prototype: "QObject"
13 exports: ["QMenuModel/ActionStateParser 0.1"]
14 exportMetaObjectRevisions: [0]
15 }
16 Component {
17 name: "UnityMenuModel"
18 prototype: "QAbstractListModel"
19 exports: ["QMenuModel/UnityMenuModel 0.1"]
20 exportMetaObjectRevisions: [0]
21 Property { name: "modelData"; type: "QVariant" }
22 Property { name: "busName"; type: "QByteArray" }
23 Property { name: "actions"; type: "QVariantMap" }
24 Property { name: "menuObjectPath"; type: "QByteArray" }
25 Property { name: "actionStateParser"; type: "ActionStateParser"; isPointer: true }
26 Method {
27 name: "insertRow"
28 Parameter { name: "row"; type: "int" }
29 Parameter { name: "data"; type: "QVariant" }
30 }
31 Method {
32 name: "appendRow"
33 Parameter { name: "data"; type: "QVariant" }
34 }
35 Method {
36 name: "removeRow"
37 Parameter { name: "row"; type: "int" }
38 }
39 Method {
40 name: "submenu"
41 type: "QObject*"
42 Parameter { name: "position"; type: "int" }
43 Parameter { name: "actionStateParser"; type: "QQmlComponent"; isPointer: true }
44 }
45 Method {
46 name: "submenu"
47 type: "QObject*"
48 Parameter { name: "position"; type: "int" }
49 }
50 Method {
51 name: "loadExtendedAttributes"
52 type: "bool"
53 Parameter { name: "position"; type: "int" }
54 Parameter { name: "schema"; type: "QVariantMap" }
55 }
56 Method {
57 name: "get"
58 type: "QVariant"
59 Parameter { name: "row"; type: "int" }
60 Parameter { name: "role"; type: "QByteArray" }
61 }
62 Method {
63 name: "activate"
64 Parameter { name: "index"; type: "int" }
65 Parameter { name: "parameter"; type: "QVariant" }
66 }
67 Method {
68 name: "activate"
69 Parameter { name: "index"; type: "int" }
70 }
71 Method {
72 name: "changeState"
73 Parameter { name: "index"; type: "int" }
74 Parameter { name: "parameter"; type: "QVariant" }
75 }
76 }
77}
078
=== added file 'tests/mocks/QtMultimedia/QtMultimedia.qmltypes'
--- tests/mocks/QtMultimedia/QtMultimedia.qmltypes 1970-01-01 00:00:00 +0000
+++ tests/mocks/QtMultimedia/QtMultimedia.qmltypes 2014-06-26 10:07:27 +0000
@@ -0,0 +1,52 @@
1import QtQuick.tooling 1.1
2
3// This file describes the plugin-supplied types contained in the library.
4// It is used for QML tooling purposes only.
5//
6// This file was auto-generated by:
7// 'qmlplugindump -notrelocatable QtMultimedia 5.0 tests/mocks'
8
9Module {
10 Component {
11 name: "Audio"
12 prototype: "QObject"
13 exports: ["QtMultimedia/Audio 5.0"]
14 exportMetaObjectRevisions: [0]
15 Enum {
16 name: "PlaybackState"
17 values: {
18 "PlayingState": 0,
19 "PausedState": 1,
20 "StoppedState": 2
21 }
22 }
23 Property { name: "source"; type: "QUrl" }
24 Property { name: "playbackState"; type: "PlaybackState"; isReadonly: true }
25 Property { name: "position"; type: "int"; isReadonly: true }
26 Property { name: "duration"; type: "int"; isReadonly: true }
27 Property { name: "errorString"; type: "string"; isReadonly: true }
28 Signal {
29 name: "sourceChanged"
30 Parameter { name: "source"; type: "QUrl" }
31 }
32 Signal {
33 name: "playbackStateChanged"
34 Parameter { name: "playbackState"; type: "PlaybackState" }
35 }
36 Signal {
37 name: "positionChanged"
38 Parameter { name: "position"; type: "int" }
39 }
40 Signal {
41 name: "durationChanged"
42 Parameter { name: "duration"; type: "int" }
43 }
44 Signal {
45 name: "errorStringChanged"
46 Parameter { name: "errorString"; type: "string" }
47 }
48 Method { name: "pause" }
49 Method { name: "play" }
50 Method { name: "stop" }
51 }
52}
053
=== added file 'tests/mocks/Ubuntu/DownloadDaemonListener/DownloadDaemonListener.qmltypes'
--- tests/mocks/Ubuntu/DownloadDaemonListener/DownloadDaemonListener.qmltypes 1970-01-01 00:00:00 +0000
+++ tests/mocks/Ubuntu/DownloadDaemonListener/DownloadDaemonListener.qmltypes 2014-06-26 10:07:27 +0000
@@ -0,0 +1,60 @@
1import QtQuick.tooling 1.1
2
3// This file describes the plugin-supplied types contained in the library.
4// It is used for QML tooling purposes only.
5//
6// This file was auto-generated by:
7// 'qmlplugindump -notrelocatable Ubuntu.DownloadDaemonListener 0.1 tests/mocks'
8
9Module {
10 Component {
11 name: "MockDownloadTracker"
12 prototype: "QObject"
13 exports: ["Ubuntu.DownloadDaemonListener/DownloadTracker 0.1"]
14 exportMetaObjectRevisions: [0]
15 Property { name: "service"; type: "string" }
16 Property { name: "dbusPath"; type: "string" }
17 Property { name: "serviceReady"; type: "bool"; isReadonly: true }
18 Signal {
19 name: "serviceChanged"
20 Parameter { name: "service"; type: "string" }
21 }
22 Signal {
23 name: "dbusPathChanged"
24 Parameter { name: "dbusPath"; type: "string" }
25 }
26 Signal {
27 name: "serviceReadyChanged"
28 Parameter { name: "serviceReady"; type: "bool" }
29 }
30 Signal {
31 name: "canceled"
32 Parameter { name: "success"; type: "bool" }
33 }
34 Signal {
35 name: "error"
36 Parameter { name: "error"; type: "string" }
37 }
38 Signal {
39 name: "finished"
40 Parameter { name: "path"; type: "string" }
41 }
42 Signal {
43 name: "paused"
44 Parameter { name: "success"; type: "bool" }
45 }
46 Signal {
47 name: "progress"
48 Parameter { name: "received"; type: "qulonglong" }
49 Parameter { name: "total"; type: "qulonglong" }
50 }
51 Signal {
52 name: "resumed"
53 Parameter { name: "success"; type: "bool" }
54 }
55 Signal {
56 name: "started"
57 Parameter { name: "success"; type: "bool" }
58 }
59 }
60}
061
=== added file 'tests/mocks/Ubuntu/Thumbnailer/Thumbnailer.qmltypes'
--- tests/mocks/Ubuntu/Thumbnailer/Thumbnailer.qmltypes 1970-01-01 00:00:00 +0000
+++ tests/mocks/Ubuntu/Thumbnailer/Thumbnailer.qmltypes 2014-06-26 10:07:27 +0000
@@ -0,0 +1,17 @@
1import QtQuick.tooling 1.1
2
3// This file describes the plugin-supplied types contained in the library.
4// It is used for QML tooling purposes only.
5//
6// This file was auto-generated by:
7// 'qmlplugindump -notrelocatable Ubuntu.Thumbnailer 0.1 tests/mocks'
8
9Module {
10 Component {
11 name: "QQmlTypeNotAvailable"
12 prototype: "QObject"
13 exports: ["Ubuntu.Thumbnailer/__ThumbnailerIgnoreMe 0.1"]
14 isCreatable: false
15 exportMetaObjectRevisions: [0]
16 }
17}
018
=== added file 'tests/mocks/Unity/Application/Application.qmltypes'
--- tests/mocks/Unity/Application/Application.qmltypes 1970-01-01 00:00:00 +0000
+++ tests/mocks/Unity/Application/Application.qmltypes 2014-06-26 10:07:27 +0000
@@ -0,0 +1,313 @@
1import QtQuick.tooling 1.1
2
3// This file describes the plugin-supplied types contained in the library.
4// It is used for QML tooling purposes only.
5//
6// This file was auto-generated by:
7// 'qmlplugindump -notrelocatable Unity.Application 0.1 tests/mocks'
8
9Module {
10 Component {
11 name: "ApplicationImage"
12 defaultProperty: "data"
13 prototype: "QQuickItem"
14 exports: ["Unity.Application/ApplicationImage 0.1"]
15 exportMetaObjectRevisions: [0]
16 Enum {
17 name: "FillMode"
18 values: {
19 "Stretch": 0,
20 "PreserveAspectCrop": 1
21 }
22 }
23 Property { name: "source"; type: "ApplicationInfo"; isPointer: true }
24 Property { name: "fillMode"; type: "FillMode" }
25 Property { name: "ready"; type: "bool" }
26 Method { name: "scheduleUpdate" }
27 Method { name: "updateFromCache" }
28 }
29 Component {
30 name: "ApplicationInfo"
31 prototype: "unity::shell::application::ApplicationInfoInterface"
32 exports: ["Unity.Application/ApplicationInfo 0.1"]
33 exportMetaObjectRevisions: [0]
34 Property { name: "fullscreen"; type: "bool" }
35 Property { name: "stage"; type: "Stage" }
36 Property { name: "imageQml"; type: "string" }
37 Property { name: "windowQml"; type: "string" }
38 Signal { name: "appIdChanged" }
39 Signal { name: "nameChanged" }
40 Signal { name: "commentChanged" }
41 Signal { name: "iconChanged" }
42 Signal { name: "stateChanged" }
43 Signal { name: "focusedChanged" }
44 Signal { name: "screenshotChanged" }
45 }
46 Component {
47 name: "ApplicationManager"
48 prototype: "unity::shell::application::ApplicationManagerInterface"
49 exports: ["Unity.Application/ApplicationManager 0.1"]
50 isCreatable: false
51 isSingleton: true
52 exportMetaObjectRevisions: [0]
53 Enum {
54 name: "Role"
55 values: {
56 "Dash": 0,
57 "Default": 1,
58 "Indicators": 2,
59 "Notifications": 3,
60 "Greeter": 4,
61 "Launcher": 5,
62 "OnScreenKeyboard": 6,
63 "ShutdownDialog": 7
64 }
65 }
66 Enum {
67 name: "StageHint"
68 values: {
69 "MainStage": 0,
70 "IntegrationStage": 1,
71 "ShareStage": 2,
72 "ContentPickingStage": 3,
73 "SideStage": 4,
74 "ConfigurationStage": 5
75 }
76 }
77 Enum {
78 name: "FormFactorHint"
79 values: {
80 "DesktopFormFactor": 0,
81 "PhoneFormFactor": 1,
82 "TabletFormFactor": 2
83 }
84 }
85 Enum {
86 name: "FavoriteApplication"
87 values: {
88 "CameraApplication": 0,
89 "GalleryApplication": 1,
90 "BrowserApplication": 2,
91 "ShareApplication": 3,
92 "PhoneApplication": 4,
93 "DialerApplication": 5,
94 "MessagingApplication": 6,
95 "AddressbookApplication": 7
96 }
97 }
98 Enum {
99 name: "ExecFlags"
100 values: {
101 "NoFlag": 0,
102 "ForceMainStage": 1
103 }
104 }
105 Property { name: "keyboardHeight"; type: "int"; isReadonly: true }
106 Property { name: "keyboardVisible"; type: "bool"; isReadonly: true }
107 Property { name: "sideStageWidth"; type: "int"; isReadonly: true }
108 Property { name: "stageHint"; type: "StageHint"; isReadonly: true }
109 Property { name: "formFactorHint"; type: "FormFactorHint"; isReadonly: true }
110 Property { name: "fake"; type: "bool"; isReadonly: true }
111 Property { name: "rightMargin"; type: "int" }
112 Signal {
113 name: "focusRequested"
114 Parameter { name: "favoriteApplication"; type: "FavoriteApplication" }
115 }
116 Signal {
117 name: "focusRequested"
118 Parameter { name: "appId"; type: "string" }
119 }
120 Method {
121 name: "get"
122 type: "ApplicationInfo*"
123 Parameter { name: "index"; type: "int" }
124 }
125 Method {
126 name: "findApplication"
127 type: "ApplicationInfo*"
128 Parameter { name: "appId"; type: "string" }
129 }
130 Method {
131 name: "move"
132 Parameter { name: "from"; type: "int" }
133 Parameter { name: "to"; type: "int" }
134 }
135 Method {
136 name: "requestFocusApplication"
137 type: "bool"
138 Parameter { name: "appId"; type: "string" }
139 }
140 Method {
141 name: "focusApplication"
142 type: "bool"
143 Parameter { name: "appId"; type: "string" }
144 }
145 Method { name: "unfocusCurrentApplication" }
146 Method {
147 name: "startApplication"
148 type: "ApplicationInfo*"
149 Parameter { name: "appId"; type: "string" }
150 Parameter { name: "arguments"; type: "QStringList" }
151 }
152 Method {
153 name: "startApplication"
154 type: "ApplicationInfo*"
155 Parameter { name: "appId"; type: "string" }
156 }
157 Method {
158 name: "startApplication"
159 type: "ApplicationInfo*"
160 Parameter { name: "appId"; type: "string" }
161 Parameter { name: "flags"; type: "ExecFlags" }
162 Parameter { name: "arguments"; type: "QStringList" }
163 }
164 Method {
165 name: "startApplication"
166 type: "ApplicationInfo*"
167 Parameter { name: "appId"; type: "string" }
168 Parameter { name: "flags"; type: "ExecFlags" }
169 }
170 Method {
171 name: "stopApplication"
172 type: "bool"
173 Parameter { name: "appId"; type: "string" }
174 }
175 Method {
176 name: "updateScreenshot"
177 type: "bool"
178 Parameter { name: "appId"; type: "string" }
179 }
180 Method { name: "availableApplications"; type: "QStringList" }
181 }
182 Component {
183 name: "unity::shell::application::ApplicationInfoInterface"
184 prototype: "QObject"
185 exports: ["Unity.Application/ApplicationInfoInterface 0.1"]
186 isCreatable: false
187 exportMetaObjectRevisions: [0]
188 Enum {
189 name: "Stage"
190 values: {
191 "MainStage": 0,
192 "SideStage": 1
193 }
194 }
195 Enum {
196 name: "State"
197 values: {
198 "Starting": 0,
199 "Running": 1,
200 "Suspended": 2,
201 "Stopped": 3
202 }
203 }
204 Property { name: "appId"; type: "string"; isReadonly: true }
205 Property { name: "name"; type: "string"; isReadonly: true }
206 Property { name: "comment"; type: "string"; isReadonly: true }
207 Property { name: "icon"; type: "QUrl"; isReadonly: true }
208 Property { name: "stage"; type: "Stage"; isReadonly: true }
209 Property { name: "state"; type: "State"; isReadonly: true }
210 Property { name: "focused"; type: "bool"; isReadonly: true }
211 Property { name: "screenshot"; type: "QUrl"; isReadonly: true }
212 Signal {
213 name: "nameChanged"
214 Parameter { name: "name"; type: "string" }
215 }
216 Signal {
217 name: "commentChanged"
218 Parameter { name: "comment"; type: "string" }
219 }
220 Signal {
221 name: "iconChanged"
222 Parameter { name: "icon"; type: "QUrl" }
223 }
224 Signal {
225 name: "stageChanged"
226 Parameter { name: "stage"; type: "Stage" }
227 }
228 Signal {
229 name: "stateChanged"
230 Parameter { name: "state"; type: "State" }
231 }
232 Signal {
233 name: "focusedChanged"
234 Parameter { name: "focused"; type: "bool" }
235 }
236 Signal {
237 name: "screenshotChanged"
238 Parameter { name: "screenshot"; type: "QUrl" }
239 }
240 }
241 Component {
242 name: "unity::shell::application::ApplicationManagerInterface"
243 prototype: "QAbstractListModel"
244 exports: ["Unity.Application/ApplicationManagerInterface 0.1"]
245 isCreatable: false
246 exportMetaObjectRevisions: [0]
247 Enum {
248 name: "Roles"
249 values: {
250 "RoleAppId": 256,
251 "RoleName": 257,
252 "RoleComment": 258,
253 "RoleIcon": 259,
254 "RoleStage": 260,
255 "RoleState": 261,
256 "RoleFocused": 262,
257 "RoleScreenshot": 263
258 }
259 }
260 Property { name: "count"; type: "int"; isReadonly: true }
261 Property { name: "focusedApplicationId"; type: "string"; isReadonly: true }
262 Property { name: "suspended"; type: "bool" }
263 Signal {
264 name: "focusRequested"
265 Parameter { name: "appId"; type: "string" }
266 }
267 Signal {
268 name: "applicationAdded"
269 Parameter { name: "appId"; type: "string" }
270 }
271 Signal {
272 name: "applicationRemoved"
273 Parameter { name: "appId"; type: "string" }
274 }
275 Method {
276 name: "get"
277 type: "unity::shell::application::ApplicationInfoInterface*"
278 Parameter { name: "index"; type: "int" }
279 }
280 Method {
281 name: "findApplication"
282 type: "unity::shell::application::ApplicationInfoInterface*"
283 Parameter { name: "appId"; type: "string" }
284 }
285 Method {
286 name: "requestFocusApplication"
287 type: "bool"
288 Parameter { name: "appId"; type: "string" }
289 }
290 Method {
291 name: "focusApplication"
292 type: "bool"
293 Parameter { name: "appId"; type: "string" }
294 }
295 Method { name: "unfocusCurrentApplication" }
296 Method {
297 name: "startApplication"
298 type: "unity::shell::application::ApplicationInfoInterface*"
299 Parameter { name: "appId"; type: "string" }
300 Parameter { name: "arguments"; type: "QStringList" }
301 }
302 Method {
303 name: "stopApplication"
304 type: "bool"
305 Parameter { name: "appId"; type: "string" }
306 }
307 Method {
308 name: "updateScreenshot"
309 type: "bool"
310 Parameter { name: "appId"; type: "string" }
311 }
312 }
313}
0314
=== modified file 'tests/mocks/Unity/Application/CMakeLists.txt'
--- tests/mocks/Unity/Application/CMakeLists.txt 2014-05-15 14:57:23 +0000
+++ tests/mocks/Unity/Application/CMakeLists.txt 2014-06-26 10:07:27 +0000
@@ -22,4 +22,5 @@
22add_unity8_mock(Unity.Application 0.1 Unity/Application22add_unity8_mock(Unity.Application 0.1 Unity/Application
23 PREFIX nonmirplugins23 PREFIX nonmirplugins
24 TARGETS NonMirUnityApplicationQml24 TARGETS NonMirUnityApplicationQml
25 BINARY_DIR ${CMAKE_BINARY_DIR}/nonmirplugins)25 BINARY_DIR ${CMAKE_BINARY_DIR}/nonmirplugins
26 NO_TYPES)
2627
=== added file 'tests/mocks/Unity/Indicators/Indicators.qmltypes'
--- tests/mocks/Unity/Indicators/Indicators.qmltypes 1970-01-01 00:00:00 +0000
+++ tests/mocks/Unity/Indicators/Indicators.qmltypes 2014-06-26 10:07:27 +0000
@@ -0,0 +1,210 @@
1import QtQuick.tooling 1.1
2
3// This file describes the plugin-supplied types contained in the library.
4// It is used for QML tooling purposes only.
5//
6// This file was auto-generated by:
7// 'qmlplugindump -notrelocatable Unity.Indicators 0.1 tests/mocks'
8
9Module {
10 Component {
11 name: "ActionState"
12 prototype: "QObject"
13 exports: ["Unity.Indicators/ActionState 0.1"]
14 isCreatable: false
15 exportMetaObjectRevisions: [0]
16 Enum {
17 name: "ActionStates"
18 values: {
19 "Label": 0,
20 "IconSource": 1,
21 "AccessableName": 2,
22 "Visible": 3
23 }
24 }
25 }
26 Component {
27 name: "FakeIndicatorsModel"
28 prototype: "QAbstractListModel"
29 exports: ["Unity.Indicators/FakeIndicatorsModel 0.1"]
30 exportMetaObjectRevisions: [0]
31 Property { name: "count"; type: "int"; isReadonly: true }
32 Method {
33 name: "load"
34 Parameter { name: "profile"; type: "string" }
35 }
36 Method { name: "unload" }
37 Method {
38 name: "append"
39 Parameter { name: "row"; type: "QVariantMap" }
40 }
41 Method {
42 name: "data"
43 type: "QVariant"
44 Parameter { name: "row"; type: "int" }
45 Parameter { name: "role"; type: "int" }
46 }
47 }
48 Component {
49 name: "FlatMenuProxyModelRole"
50 prototype: "QObject"
51 exports: ["Unity.Indicators/FlatMenuProxyModelRole 0.1"]
52 isCreatable: false
53 exportMetaObjectRevisions: [0]
54 Enum {
55 name: "Roles"
56 values: {
57 "Action": 1,
58 "Label": 2,
59 "Extra": 3,
60 "Depth": 4,
61 "hasSection": 5,
62 "hasSubMenu": 6
63 }
64 }
65 }
66 Component {
67 name: "IndicatorsModelRole"
68 prototype: "QObject"
69 exports: ["Unity.Indicators/IndicatorsModelRole 0.1"]
70 isCreatable: false
71 exportMetaObjectRevisions: [0]
72 Enum {
73 name: "Roles"
74 values: {
75 "Identifier": 0,
76 "Position": 1,
77 "WidgetSource": 2,
78 "PageSource": 3,
79 "IndicatorProperties": 4,
80 "IsVisible": 5
81 }
82 }
83 }
84 Component {
85 name: "MenuContentActivator"
86 prototype: "QObject"
87 exports: ["Unity.Indicators/MenuContentActivator 0.1"]
88 exportMetaObjectRevisions: [0]
89 Property { name: "baseIndex"; type: "int" }
90 Property { name: "running"; type: "bool" }
91 Property { name: "count"; type: "int" }
92 Property { name: "content"; type: "MenuContentState"; isList: true; isReadonly: true }
93 Signal {
94 name: "baseIndexChanged"
95 Parameter { name: "baseIndex"; type: "int" }
96 }
97 Signal {
98 name: "deltaChanged"
99 Parameter { name: "delta"; type: "int" }
100 }
101 Signal {
102 name: "runningChanged"
103 Parameter { name: "running"; type: "bool" }
104 }
105 Signal {
106 name: "countChanged"
107 Parameter { name: "count"; type: "int" }
108 }
109 Method { name: "restart" }
110 Method { name: "stop" }
111 Method { name: "clear" }
112 Method {
113 name: "isMenuContentActive"
114 type: "bool"
115 Parameter { name: "index"; type: "int" }
116 }
117 }
118 Component {
119 name: "MenuContentState"
120 prototype: "QObject"
121 exports: ["Unity.Indicators/MenuContentState 0.1"]
122 isCreatable: false
123 exportMetaObjectRevisions: [0]
124 Property { name: "active"; type: "bool"; isReadonly: true }
125 }
126 Component {
127 name: "NetworkActionState"
128 prototype: "QObject"
129 exports: ["Unity.Indicators/NetworkActionState 0.1"]
130 isCreatable: false
131 exportMetaObjectRevisions: [0]
132 Enum {
133 name: "NetworkActionStates"
134 values: {
135 "Connection": 1,
136 "SignalStrength": 2
137 }
138 }
139 }
140 Component {
141 name: "NetworkConnection"
142 prototype: "QObject"
143 exports: ["Unity.Indicators/NetworkConnection 0.1"]
144 isCreatable: false
145 exportMetaObjectRevisions: [0]
146 Enum {
147 name: "NetworkConnectionStates"
148 values: {
149 "Initial": 0,
150 "Activating": 1,
151 "Activated": 2,
152 "Deactivating": 3
153 }
154 }
155 }
156 Component {
157 name: "QAbstractProxyModel"
158 prototype: "QAbstractItemModel"
159 Property { name: "sourceModel"; type: "QAbstractItemModel"; isPointer: true }
160 }
161 Component { name: "QIdentityProxyModel"; prototype: "QAbstractProxyModel" }
162 Component {
163 name: "UnityMenuModelStack"
164 prototype: "QObject"
165 exports: ["Unity.Indicators/UnityMenuModelStack 0.1"]
166 exportMetaObjectRevisions: [0]
167 Property { name: "head"; type: "UnityMenuModel"; isPointer: true }
168 Property { name: "tail"; type: "UnityMenuModel"; isReadonly: true; isPointer: true }
169 Property { name: "count"; type: "int"; isReadonly: true }
170 Signal {
171 name: "headChanged"
172 Parameter { name: "head"; type: "UnityMenuModel"; isPointer: true }
173 }
174 Signal {
175 name: "tailChanged"
176 Parameter { name: "tail"; type: "UnityMenuModel"; isPointer: true }
177 }
178 Signal {
179 name: "countChanged"
180 Parameter { name: "count"; type: "int" }
181 }
182 Method {
183 name: "push"
184 Parameter { name: "model"; type: "UnityMenuModel"; isPointer: true }
185 Parameter { name: "menuIndex"; type: "int" }
186 }
187 Method { name: "pop"; type: "UnityMenuModel*" }
188 }
189 Component {
190 name: "VisibleIndicatorsModel"
191 prototype: "QIdentityProxyModel"
192 exports: ["Unity.Indicators/VisibleIndicatorsModel 0.1"]
193 exportMetaObjectRevisions: [0]
194 Property { name: "model"; type: "QAbstractItemModel"; isPointer: true }
195 Property { name: "visible"; type: "QVariantMap" }
196 Signal { name: "totalCountChanged" }
197 Method {
198 name: "onBeginRowInserted"
199 Parameter { type: "QModelIndex" }
200 Parameter { name: "start"; type: "int" }
201 Parameter { name: "end"; type: "int" }
202 }
203 Method {
204 name: "onRowInserted"
205 Parameter { type: "QModelIndex" }
206 Parameter { name: "start"; type: "int" }
207 Parameter { name: "end"; type: "int" }
208 }
209 }
210}
0211
=== removed file 'tests/mocks/Unity/Indicators/MenuItemFactory.qml'
--- tests/mocks/Unity/Indicators/MenuItemFactory.qml 2013-12-13 13:12:40 +0000
+++ tests/mocks/Unity/Indicators/MenuItemFactory.qml 1970-01-01 00:00:00 +0000
@@ -1,38 +0,0 @@
1/*
2 * Copyright 2013 Canonical Ltd.
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU Lesser General Public License as published by
6 * the Free Software Foundation; version 3.
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU Lesser General Public License for more details.
12 *
13 * You should have received a copy of the GNU Lesser General Public License
14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
15 *
16 * Authors:
17 * Nick Dedekind <nick.dedekind@canonical.com>
18 */
19
20import QtQuick 2.0
21import Ubuntu.Components.ListItems 0.1 as ListItem
22
23Item {
24 id: menuFactory
25
26 property var menuModel: null
27
28 Component {
29 id: standardMenu;
30 ListItem.Standard {
31 objectName: "standardMenu"
32 }
33 }
34
35 function load(modelData) {
36 return standardMenu;
37 }
38}
390
=== modified file 'tests/mocks/Unity/Indicators/qmldir'
--- tests/mocks/Unity/Indicators/qmldir 2014-05-02 22:57:21 +0000
+++ tests/mocks/Unity/Indicators/qmldir 2014-06-26 10:07:27 +0000
@@ -6,5 +6,4 @@
6IndicatorBase 0.1 IndicatorBase.qml6IndicatorBase 0.1 IndicatorBase.qml
7IndicatorsModel 0.1 IndicatorsModel.qml7IndicatorsModel 0.1 IndicatorsModel.qml
8FakeMenuPage 0.1 FakeMenuPage.qml8FakeMenuPage 0.1 FakeMenuPage.qml
9MenuItemFactory 0.1 MenuItemFactory.qml
10RootActionState 0.1 RootActionState.qml9RootActionState 0.1 RootActionState.qml
1110
=== added file 'tests/mocks/Unity/Launcher/Launcher.qmltypes'
--- tests/mocks/Unity/Launcher/Launcher.qmltypes 1970-01-01 00:00:00 +0000
+++ tests/mocks/Unity/Launcher/Launcher.qmltypes 2014-06-26 10:07:27 +0000
@@ -0,0 +1,171 @@
1import QtQuick.tooling 1.1
2
3// This file describes the plugin-supplied types contained in the library.
4// It is used for QML tooling purposes only.
5//
6// This file was auto-generated by:
7// 'qmlplugindump -notrelocatable Unity.Launcher 0.1 tests/mocks'
8
9Module {
10 Component {
11 name: "MockLauncherItem"
12 prototype: "unity::shell::launcher::LauncherItemInterface"
13 exports: ["Unity.Launcher/LauncherItem 0.1"]
14 isCreatable: false
15 exportMetaObjectRevisions: [0]
16 }
17 Component {
18 name: "MockLauncherModel"
19 prototype: "unity::shell::launcher::LauncherModelInterface"
20 exports: ["Unity.Launcher/LauncherModel 0.1"]
21 isCreatable: false
22 isSingleton: true
23 exportMetaObjectRevisions: [0]
24 Signal {
25 name: "quickListTriggered"
26 Parameter { name: "appId"; type: "string" }
27 Parameter { name: "index"; type: "int" }
28 }
29 Method {
30 name: "get"
31 type: "unity::shell::launcher::LauncherItemInterface*"
32 Parameter { name: "index"; type: "int" }
33 }
34 Method {
35 name: "move"
36 Parameter { name: "oldIndex"; type: "int" }
37 Parameter { name: "newIndex"; type: "int" }
38 }
39 Method {
40 name: "pin"
41 Parameter { name: "appId"; type: "string" }
42 Parameter { name: "index"; type: "int" }
43 }
44 Method {
45 name: "pin"
46 Parameter { name: "appId"; type: "string" }
47 }
48 Method {
49 name: "requestRemove"
50 Parameter { name: "appId"; type: "string" }
51 }
52 Method {
53 name: "quickListActionInvoked"
54 Parameter { name: "appId"; type: "string" }
55 Parameter { name: "actionIndex"; type: "int" }
56 }
57 Method {
58 name: "setUser"
59 Parameter { name: "username"; type: "string" }
60 }
61 Method {
62 name: "getUrlForAppId"
63 type: "string"
64 Parameter { name: "appId"; type: "string" }
65 }
66 }
67 Component {
68 name: "MockQuickListModel"
69 prototype: "unity::shell::launcher::QuickListModelInterface"
70 exports: ["Unity.Launcher/QuickListModel 0.1"]
71 isCreatable: false
72 exportMetaObjectRevisions: [0]
73 }
74 Component {
75 name: "unity::shell::launcher::LauncherItemInterface"
76 prototype: "QObject"
77 exports: ["Unity.Launcher/LauncherItemInterface 0.1"]
78 isCreatable: false
79 exportMetaObjectRevisions: [0]
80 Property { name: "appId"; type: "string"; isReadonly: true }
81 Property { name: "name"; type: "string"; isReadonly: true }
82 Property { name: "icon"; type: "string"; isReadonly: true }
83 Property { name: "pinned"; type: "bool"; isReadonly: true }
84 Property { name: "running"; type: "bool"; isReadonly: true }
85 Property { name: "recent"; type: "bool"; isReadonly: true }
86 Property { name: "progress"; type: "int"; isReadonly: true }
87 Property { name: "count"; type: "int"; isReadonly: true }
88 Property { name: "focused"; type: "bool"; isReadonly: true }
89 Property {
90 name: "quickList"
91 type: "unity::shell::launcher::QuickListModelInterface"
92 isReadonly: true
93 isPointer: true
94 }
95 Signal {
96 name: "pinnedChanged"
97 Parameter { name: "pinned"; type: "bool" }
98 }
99 Signal {
100 name: "runningChanged"
101 Parameter { name: "running"; type: "bool" }
102 }
103 Signal {
104 name: "recentChanged"
105 Parameter { name: "running"; type: "bool" }
106 }
107 Signal {
108 name: "progressChanged"
109 Parameter { name: "progress"; type: "int" }
110 }
111 Signal {
112 name: "countChanged"
113 Parameter { name: "count"; type: "int" }
114 }
115 Signal {
116 name: "focusedChanged"
117 Parameter { name: "focused"; type: "bool" }
118 }
119 }
120 Component {
121 name: "unity::shell::launcher::LauncherModelInterface"
122 prototype: "QAbstractListModel"
123 exports: ["Unity.Launcher/LauncherModelInterface 0.1"]
124 isCreatable: false
125 exportMetaObjectRevisions: [0]
126 Property {
127 name: "applicationManager"
128 type: "unity::shell::application::ApplicationManagerInterface"
129 isPointer: true
130 }
131 Method {
132 name: "move"
133 Parameter { name: "oldIndex"; type: "int" }
134 Parameter { name: "newIndex"; type: "int" }
135 }
136 Method {
137 name: "get"
138 type: "unity::shell::launcher::LauncherItemInterface*"
139 Parameter { name: "index"; type: "int" }
140 }
141 Method {
142 name: "pin"
143 Parameter { name: "appId"; type: "string" }
144 Parameter { name: "index"; type: "int" }
145 }
146 Method {
147 name: "pin"
148 Parameter { name: "appId"; type: "string" }
149 }
150 Method {
151 name: "requestRemove"
152 Parameter { name: "appId"; type: "string" }
153 }
154 Method {
155 name: "quickListActionInvoked"
156 Parameter { name: "appId"; type: "string" }
157 Parameter { name: "actionIndex"; type: "int" }
158 }
159 Method {
160 name: "setUser"
161 Parameter { name: "username"; type: "string" }
162 }
163 }
164 Component {
165 name: "unity::shell::launcher::QuickListModelInterface"
166 prototype: "QAbstractListModel"
167 exports: ["Unity.Launcher/QuickListModelInterface 0.1"]
168 isCreatable: false
169 exportMetaObjectRevisions: [0]
170 }
171}
0172
=== added file 'tests/mocks/Unity/Notifications/Notifications.qmltypes'
--- tests/mocks/Unity/Notifications/Notifications.qmltypes 1970-01-01 00:00:00 +0000
+++ tests/mocks/Unity/Notifications/Notifications.qmltypes 2014-06-26 10:07:27 +0000
@@ -0,0 +1,10 @@
1import QtQuick.tooling 1.1
2
3// This file describes the plugin-supplied types contained in the library.
4// It is used for QML tooling purposes only.
5//
6// This file was auto-generated by:
7// 'qmlplugindump -notrelocatable Unity.Notifications 1.0 tests/mocks'
8
9Module {
10}
011
=== added file 'tests/mocks/Unity/Unity.qmltypes'
--- tests/mocks/Unity/Unity.qmltypes 1970-01-01 00:00:00 +0000
+++ tests/mocks/Unity/Unity.qmltypes 2014-06-26 10:07:27 +0000
@@ -0,0 +1,345 @@
1import QtQuick.tooling 1.1
2
3// This file describes the plugin-supplied types contained in the library.
4// It is used for QML tooling purposes only.
5//
6// This file was auto-generated by:
7// 'qmlplugindump -notrelocatable Unity 0.2 tests/mocks'
8
9Module {
10 Component {
11 name: "Categories"
12 prototype: "unity::shell::scopes::CategoriesInterface"
13 Method {
14 name: "addSpecialCategory"
15 Parameter { name: "categoryId"; type: "string" }
16 Parameter { name: "name"; type: "string" }
17 Parameter { name: "icon"; type: "string" }
18 Parameter { name: "rawTemplate"; type: "string" }
19 Parameter { name: "countObject"; type: "QObject"; isPointer: true }
20 }
21 Method {
22 name: "overrideCategoryJson"
23 type: "bool"
24 Parameter { name: "categoryId"; type: "string" }
25 Parameter { name: "json"; type: "string" }
26 }
27 }
28 Component {
29 name: "PreviewModel"
30 prototype: "unity::shell::scopes::PreviewModelInterface"
31 exports: ["Unity/FakePreviewModel 0.2"]
32 exportMetaObjectRevisions: [0]
33 }
34 Component {
35 name: "PreviewStack"
36 prototype: "unity::shell::scopes::PreviewStackInterface"
37 exports: ["Unity/PreviewStack 0.2"]
38 isCreatable: false
39 exportMetaObjectRevisions: [0]
40 Method {
41 name: "getPreviewModel"
42 type: "unity::shell::scopes::PreviewModelInterface*"
43 Parameter { name: "index"; type: "int" }
44 }
45 }
46 Component {
47 name: "PreviewWidgetModel"
48 prototype: "unity::shell::scopes::PreviewWidgetModelInterface"
49 exports: ["Unity/PreviewWidgetModel 0.2"]
50 isCreatable: false
51 exportMetaObjectRevisions: [0]
52 }
53 Component {
54 name: "ResultsModel"
55 prototype: "unity::shell::scopes::ResultsModelInterface"
56 exports: ["Unity/ResultsModel 0.2"]
57 isCreatable: false
58 exportMetaObjectRevisions: [0]
59 }
60 Component {
61 name: "Scope"
62 prototype: "unity::shell::scopes::ScopeInterface"
63 exports: ["Unity/MockScope 0.2"]
64 exportMetaObjectRevisions: [0]
65 Method {
66 name: "setSearchInProgress"
67 Parameter { name: "inProg"; type: "bool" }
68 }
69 Method {
70 name: "activate"
71 Parameter { name: "result"; type: "QVariant" }
72 }
73 Method {
74 name: "preview"
75 type: "PreviewStack*"
76 Parameter { name: "result"; type: "QVariant" }
77 }
78 Method { name: "cancelActivation" }
79 Method {
80 name: "closeScope"
81 Parameter { name: "scope"; type: "unity::shell::scopes::ScopeInterface"; isPointer: true }
82 }
83 Method {
84 name: "getDepartment"
85 type: "unity::shell::scopes::DepartmentInterface*"
86 Parameter { name: "id"; type: "string" }
87 }
88 Method {
89 name: "loadDepartment"
90 Parameter { name: "id"; type: "string" }
91 }
92 }
93 Component {
94 name: "Scopes"
95 prototype: "unity::shell::scopes::ScopesInterface"
96 exports: ["Unity/Scopes 0.2"]
97 exportMetaObjectRevisions: [0]
98 Method {
99 name: "rowCount"
100 type: "int"
101 Parameter { name: "parent"; type: "QModelIndex" }
102 }
103 Method { name: "rowCount"; type: "int" }
104 Method {
105 name: "getScope"
106 type: "unity::shell::scopes::ScopeInterface*"
107 Parameter { name: "row"; type: "int" }
108 }
109 Method {
110 name: "getScope"
111 type: "unity::shell::scopes::ScopeInterface*"
112 Parameter { name: "scope_id"; type: "string" }
113 }
114 Method {
115 name: "addScope"
116 Parameter { name: "scope"; type: "Scope"; isPointer: true }
117 }
118 Method { name: "clear" }
119 Method { name: "load" }
120 }
121 Component {
122 name: "unity::shell::scopes::CategoriesInterface"
123 prototype: "QAbstractListModel"
124 exports: ["Unity/Categories 0.2"]
125 isCreatable: false
126 exportMetaObjectRevisions: [0]
127 Enum {
128 name: "Roles"
129 values: {
130 "RoleCategoryId": 0,
131 "RoleName": 1,
132 "RoleIcon": 2,
133 "RoleRawRendererTemplate": 3,
134 "RoleRenderer": 4,
135 "RoleComponents": 5,
136 "RoleResults": 6,
137 "RoleCount": 7
138 }
139 }
140 Method {
141 name: "overrideCategoryJson"
142 type: "bool"
143 Parameter { name: "categoryId"; type: "string" }
144 Parameter { name: "json"; type: "string" }
145 }
146 Method {
147 name: "addSpecialCategory"
148 Parameter { name: "categoryId"; type: "string" }
149 Parameter { name: "name"; type: "string" }
150 Parameter { name: "icon"; type: "string" }
151 Parameter { name: "rawTemplate"; type: "string" }
152 Parameter { name: "countObject"; type: "QObject"; isPointer: true }
153 }
154 }
155 Component {
156 name: "unity::shell::scopes::DepartmentInterface"
157 prototype: "QAbstractListModel"
158 exports: ["Unity/Department 0.2"]
159 isCreatable: false
160 exportMetaObjectRevisions: [0]
161 Enum {
162 name: "Roles"
163 values: {
164 "RoleDepartmentId": 0,
165 "RoleLabel": 1,
166 "RoleHasChildren": 2,
167 "RoleIsActive": 3
168 }
169 }
170 Property { name: "departmentId"; type: "string"; isReadonly: true }
171 Property { name: "label"; type: "string"; isReadonly: true }
172 Property { name: "allLabel"; type: "string"; isReadonly: true }
173 Property { name: "parentDepartmentId"; type: "string"; isReadonly: true }
174 Property { name: "parentLabel"; type: "string"; isReadonly: true }
175 Property { name: "loaded"; type: "bool"; isReadonly: true }
176 Property { name: "isRoot"; type: "bool"; isReadonly: true }
177 Property { name: "count"; type: "int"; isReadonly: true }
178 }
179 Component {
180 name: "unity::shell::scopes::PreviewModelInterface"
181 prototype: "QAbstractListModel"
182 Enum {
183 name: "Roles"
184 values: {
185 "RoleColumnModel": 0
186 }
187 }
188 Property { name: "widgetColumnCount"; type: "int" }
189 Property { name: "loaded"; type: "bool"; isReadonly: true }
190 Property { name: "processingAction"; type: "bool"; isReadonly: true }
191 Signal {
192 name: "triggered"
193 Parameter { type: "string" }
194 Parameter { type: "string" }
195 Parameter { type: "QVariantMap" }
196 }
197 }
198 Component {
199 name: "unity::shell::scopes::PreviewStackInterface"
200 prototype: "QAbstractListModel"
201 Enum {
202 name: "Roles"
203 values: {
204 "RolePreviewModel": 0
205 }
206 }
207 Property { name: "widgetColumnCount"; type: "int" }
208 Method {
209 name: "getPreviewModel"
210 type: "unity::shell::scopes::PreviewModelInterface*"
211 Parameter { name: "index"; type: "int" }
212 }
213 }
214 Component {
215 name: "unity::shell::scopes::PreviewWidgetModelInterface"
216 prototype: "QAbstractListModel"
217 Enum {
218 name: "Roles"
219 values: {
220 "RoleWidgetId": 0,
221 "RoleType": 1,
222 "RoleProperties": 2
223 }
224 }
225 }
226 Component {
227 name: "unity::shell::scopes::ResultsModelInterface"
228 prototype: "QAbstractListModel"
229 Enum {
230 name: "Roles"
231 values: {
232 "RoleUri": 0,
233 "RoleCategoryId": 1,
234 "RoleDndUri": 2,
235 "RoleResult": 3,
236 "RoleTitle": 4,
237 "RoleArt": 5,
238 "RoleSubtitle": 6,
239 "RoleMascot": 7,
240 "RoleEmblem": 8,
241 "RoleSummary": 9,
242 "RoleAttributes": 10,
243 "RoleBackground": 11
244 }
245 }
246 Property { name: "categoryId"; type: "string" }
247 Property { name: "count"; type: "int"; isReadonly: true }
248 }
249 Component {
250 name: "unity::shell::scopes::ScopeInterface"
251 prototype: "QObject"
252 exports: ["Unity/Scope 0.2"]
253 isCreatable: false
254 exportMetaObjectRevisions: [0]
255 Property { name: "id"; type: "string"; isReadonly: true }
256 Property { name: "name"; type: "string"; isReadonly: true }
257 Property { name: "iconHint"; type: "string"; isReadonly: true }
258 Property { name: "description"; type: "string"; isReadonly: true }
259 Property { name: "searchHint"; type: "string"; isReadonly: true }
260 Property { name: "searchInProgress"; type: "bool"; isReadonly: true }
261 Property { name: "visible"; type: "bool"; isReadonly: true }
262 Property { name: "shortcut"; type: "string"; isReadonly: true }
263 Property {
264 name: "categories"
265 type: "unity::shell::scopes::CategoriesInterface"
266 isReadonly: true
267 isPointer: true
268 }
269 Property { name: "searchQuery"; type: "string" }
270 Property { name: "noResultsHint"; type: "string" }
271 Property { name: "formFactor"; type: "string" }
272 Property { name: "isActive"; type: "bool" }
273 Property { name: "currentDepartmentId"; type: "string"; isReadonly: true }
274 Property { name: "hasDepartments"; type: "bool"; isReadonly: true }
275 Signal { name: "showDash" }
276 Signal { name: "hideDash" }
277 Signal {
278 name: "gotoUri"
279 Parameter { name: "uri"; type: "string" }
280 }
281 Signal {
282 name: "previewRequested"
283 Parameter { name: "result"; type: "QVariant" }
284 }
285 Signal {
286 name: "gotoScope"
287 Parameter { name: "scopeId"; type: "string" }
288 }
289 Signal {
290 name: "openScope"
291 Parameter { name: "scope"; type: "unity::shell::scopes::ScopeInterface"; isPointer: true }
292 }
293 Signal {
294 name: "activateApplication"
295 Parameter { name: "desktop"; type: "string" }
296 }
297 Method {
298 name: "activate"
299 Parameter { name: "result"; type: "QVariant" }
300 }
301 Method {
302 name: "preview"
303 type: "unity::shell::scopes::PreviewStackInterface*"
304 Parameter { name: "result"; type: "QVariant" }
305 }
306 Method { name: "cancelActivation" }
307 Method {
308 name: "closeScope"
309 Parameter { name: "scope"; type: "unity::shell::scopes::ScopeInterface"; isPointer: true }
310 }
311 Method {
312 name: "getDepartment"
313 type: "unity::shell::scopes::DepartmentInterface*"
314 Parameter { name: "departmentId"; type: "string" }
315 }
316 Method {
317 name: "loadDepartment"
318 Parameter { name: "departmentId"; type: "string" }
319 }
320 }
321 Component {
322 name: "unity::shell::scopes::ScopesInterface"
323 prototype: "QAbstractListModel"
324 Enum {
325 name: "Roles"
326 values: {
327 "RoleScope": 0,
328 "RoleId": 1,
329 "RoleVisible": 2,
330 "RoleTitle": 3
331 }
332 }
333 Property { name: "loaded"; type: "bool"; isReadonly: true }
334 Method {
335 name: "getScope"
336 type: "unity::shell::scopes::ScopeInterface*"
337 Parameter { name: "row"; type: "int" }
338 }
339 Method {
340 name: "getScope"
341 type: "unity::shell::scopes::ScopeInterface*"
342 Parameter { name: "scopeId"; type: "string" }
343 }
344 }
345}
0346
=== modified file 'tests/qmltests/Panel/Indicators/tst_MenuItemFactory.qml'
--- tests/qmltests/Panel/Indicators/tst_MenuItemFactory.qml 2014-05-01 14:25:18 +0000
+++ tests/qmltests/Panel/Indicators/tst_MenuItemFactory.qml 2014-06-26 10:07:27 +0000
@@ -18,15 +18,16 @@
18import QtTest 1.018import QtTest 1.0
19import Unity.Test 0.1 as UT19import Unity.Test 0.1 as UT
20import QMenuModel 0.120import QMenuModel 0.1
21import Unity.Indicators 0.1 as Indicators
22import Utils 0.1 as Utils21import Utils 0.1 as Utils
22import "../../../../qml/Panel/Indicators"
23
2324
24Item {25Item {
25 id: testView26 id: testView
26 width: units.gu(40)27 width: units.gu(40)
27 height: units.gu(70)28 height: units.gu(70)
2829
29 Indicators.MenuItemFactory {30 MenuItemFactory {
30 id: factory31 id: factory
31 menuModel: UnityMenuModel {}32 menuModel: UnityMenuModel {}
32 }33 }
3334
=== modified file 'tests/qmltests/Panel/Indicators/tst_MessageMenuItemFactory.qml'
--- tests/qmltests/Panel/Indicators/tst_MessageMenuItemFactory.qml 2014-04-14 17:26:06 +0000
+++ tests/qmltests/Panel/Indicators/tst_MessageMenuItemFactory.qml 2014-06-26 10:07:27 +0000
@@ -18,15 +18,15 @@
18import QtTest 1.018import QtTest 1.0
19import Unity.Test 0.1 as UT19import Unity.Test 0.1 as UT
20import QMenuModel 0.120import QMenuModel 0.1
21import Unity.Indicators 0.1 as Indicators
22import Utils 0.1 as Utils21import Utils 0.1 as Utils
22import "../../../../qml/Panel/Indicators"
2323
24Item {24Item {
25 id: testView25 id: testView
26 width: units.gu(40)26 width: units.gu(40)
27 height: units.gu(70)27 height: units.gu(70)
2828
29 Indicators.MessageMenuItemFactory {29 MessageMenuItemFactory {
30 id: factory30 id: factory
31 menuModel: UnityMenuModel {}31 menuModel: UnityMenuModel {}
32 menuIndex: 032 menuIndex: 0
3333
=== added file 'tests/utils/modules/Unity/Test/Test.qmltypes'
--- tests/utils/modules/Unity/Test/Test.qmltypes 1970-01-01 00:00:00 +0000
+++ tests/utils/modules/Unity/Test/Test.qmltypes 2014-06-26 10:07:27 +0000
@@ -0,0 +1,59 @@
1import QtQuick.tooling 1.1
2
3// This file describes the plugin-supplied types contained in the library.
4// It is used for QML tooling purposes only.
5//
6// This file was auto-generated by:
7// 'qmlplugindump -notrelocatable Unity.Test 0.1 tests/utils/modules'
8
9Module {
10 Component {
11 name: "TestUtil"
12 prototype: "QObject"
13 exports: ["Unity.Test/Util 0.1"]
14 isCreatable: false
15 isSingleton: true
16 exportMetaObjectRevisions: [0]
17 Method {
18 name: "isInstanceOf"
19 type: "bool"
20 Parameter { type: "QObject"; isPointer: true }
21 Parameter { type: "string" }
22 }
23 Method { name: "touchEvent"; type: "TouchEventSequenceWrapper*" }
24 }
25 Component {
26 name: "TouchEventSequenceWrapper"
27 prototype: "QObject"
28 exports: ["Unity.Test/TouchEventSequence 0.1"]
29 isCreatable: false
30 exportMetaObjectRevisions: [0]
31 Method {
32 name: "commit"
33 Parameter { name: "processEvents"; type: "bool" }
34 }
35 Method { name: "commit" }
36 Method {
37 name: "move"
38 Parameter { name: "touchId"; type: "int" }
39 Parameter { name: "x"; type: "int" }
40 Parameter { name: "y"; type: "int" }
41 }
42 Method {
43 name: "press"
44 Parameter { name: "touchId"; type: "int" }
45 Parameter { name: "x"; type: "int" }
46 Parameter { name: "y"; type: "int" }
47 }
48 Method {
49 name: "release"
50 Parameter { name: "touchId"; type: "int" }
51 Parameter { name: "x"; type: "int" }
52 Parameter { name: "y"; type: "int" }
53 }
54 Method {
55 name: "stationary"
56 Parameter { name: "touchId"; type: "int" }
57 }
58 }
59}

Subscribers

People subscribed via source and target branches