on xenial help sign in
Update qmltypes
aa807a1Albert Astals Cid
plugins/AccountsService/AccountsService.qmltypes+3
@@ -29,5 +29,8 @@ Module {
29 Property { name: "statsWelcomeScreen"; type: "bool"; isReadonly: true }
29 Property { name: "statsWelcomeScreen"; type: "bool"; isReadonly: true }
30 Property { name: "passwordDisplayHint"; type: "PasswordDisplayHint"; isReadonly: true }
30 Property { name: "passwordDisplayHint"; type: "PasswordDisplayHint"; isReadonly: true }
31 Property { name: "failedLogins"; type: "uint" }
31 Property { name: "failedLogins"; type: "uint" }
32+ Property { name: "hereEnabled"; type: "bool" }
33+ Property { name: "hereLicensePath"; type: "string"; isReadonly: true }
34+ Property { name: "hereLicensePathValid"; type: "bool"; isReadonly: true }
32 }
35 }
33}
36}
plugins/Dash/Dash.qmltypes+17−1
@@ -15,9 +15,25 @@ Module {
15 Property { name: "delegate"; type: "QQmlComponent"; isPointer: true }
15 Property { name: "delegate"; type: "QQmlComponent"; isPointer: true }
16 Property { name: "columnSpacing"; type: "double" }
16 Property { name: "columnSpacing"; type: "double" }
17 Property { name: "rowSpacing"; type: "double" }
17 Property { name: "rowSpacing"; type: "double" }
18+ Property { name: "cacheBuffer"; type: "int" }
18 Property { name: "displayMarginBeginning"; type: "double" }
19 Property { name: "displayMarginBeginning"; type: "double" }
19 Property { name: "displayMarginEnd"; type: "double" }
20 Property { name: "displayMarginEnd"; type: "double" }
20 }
21 }
22+ Component {
23+ name: "CroppedImageSizer"
24+ prototype: "QObject"
25+ exports: ["Dash/CroppedImageSizer 0.1"]
26+ exportMetaObjectRevisions: [0]
27+ Property { name: "source"; type: "QUrl" }
28+ Property { name: "width"; type: "double" }
29+ Property { name: "height"; type: "double" }
30+ Property { name: "sourceSize"; type: "QSize"; isReadonly: true }
31+ Signal { name: "inputParamsChanged" }
32+ Method {
33+ name: "setImageSize"
34+ Parameter { name: "imageSize"; type: "QSize" }
35+ }
36+ }
21 Component {
37 Component {
22 name: "HorizontalJournal"
38 name: "HorizontalJournal"
23 defaultProperty: "data"
39 defaultProperty: "data"
@@ -40,7 +56,7 @@ Module {
40 Property { name: "forceNoClip"; type: "bool" }
56 Property { name: "forceNoClip"; type: "bool" }
41 Property { name: "stickyHeaderHeight"; type: "int"; isReadonly: true }
57 Property { name: "stickyHeaderHeight"; type: "int"; isReadonly: true }
42 Property { name: "headerItemShownHeight"; type: "double"; isReadonly: true }
58 Property { name: "headerItemShownHeight"; type: "double"; isReadonly: true }
43− Property { name: "cacheBuffer"; type: "double" }
59+ Property { name: "cacheBuffer"; type: "int" }
44 Signal { name: "headerChanged" }
60 Signal { name: "headerChanged" }
45 Method { name: "positionAtBeginning" }
61 Method { name: "positionAtBeginning" }
46 Method { name: "showHeader" }
62 Method { name: "showHeader" }
plugins/Greeter/Unity/Launcher/Launcher.qmltypes+4−1
@@ -4,7 +4,7 @@ import QtQuick.tooling 1.1
4// It is used for QML tooling purposes only.
4// It is used for QML tooling purposes only.
5//
5//
6// This file was auto-generated by:
6// This file was auto-generated by:
7−// 'qmlplugindump -notrelocatable Unity.Launcher 0.1 plugins'
7+// 'qmlplugindump -notrelocatable Unity.Launcher 0.1 plugins/Greeter'
8
8
9Module {
9Module {
10 Component {
10 Component {
@@ -25,6 +25,7 @@ Module {
25 name: "requestRemove"
25 name: "requestRemove"
26 Parameter { name: "appId"; type: "string" }
26 Parameter { name: "appId"; type: "string" }
27 }
27 }
28+ Method { name: "refresh" }
28 Method {
29 Method {
29 name: "get"
30 name: "get"
30 type: "unity::shell::launcher::LauncherItemInterface*"
31 type: "unity::shell::launcher::LauncherItemInterface*"
@@ -136,6 +137,8 @@ Module {
136 type: "unity::shell::application::ApplicationManagerInterface"
137 type: "unity::shell::application::ApplicationManagerInterface"
137 isPointer: true
138 isPointer: true
138 }
139 }
140+ Property { name: "onlyPinned"; type: "bool" }
141+ Signal { name: "hint" }
139 Method {
142 Method {
140 name: "move"
143 name: "move"
141 Parameter { name: "oldIndex"; type: "int" }
144 Parameter { name: "oldIndex"; type: "int" }
plugins/LightDM/LightDM.qmltypes+2−2
@@ -114,7 +114,7 @@ Module {
114 Method { name: "invalidate" }
114 Method { name: "invalidate" }
115 }
115 }
116 Component {
116 Component {
117− name: "QSortFilterProxyModelQML"
117+ name: "UnitySortFilterProxyModelQML"
118 prototype: "QSortFilterProxyModel"
118 prototype: "QSortFilterProxyModel"
119 Property { name: "model"; type: "QAbstractItemModel"; isPointer: true }
119 Property { name: "model"; type: "QAbstractItemModel"; isPointer: true }
120 Property { name: "totalCount"; type: "int"; isReadonly: true }
120 Property { name: "totalCount"; type: "int"; isReadonly: true }
@@ -242,7 +242,7 @@ Module {
242 }
242 }
243 Component {
243 Component {
244 name: "UsersModel"
244 name: "UsersModel"
245− prototype: "QSortFilterProxyModelQML"
245+ prototype: "UnitySortFilterProxyModelQML"
246 exports: ["LightDM/Users 0.1"]
246 exports: ["LightDM/Users 0.1"]
247 isCreatable: false
247 isCreatable: false
248 isSingleton: true
248 isSingleton: true
plugins/ScreenGrabber/ScreenGrabber.qmltypes+1−1
@@ -4,7 +4,7 @@ import QtQuick.tooling 1.1
4// It is used for QML tooling purposes only.
4// It is used for QML tooling purposes only.
5//
5//
6// This file was auto-generated by:
6// This file was auto-generated by:
7−// 'qmlplugindump -nonrelocatable ScreenGrabber 0.1 plugins'
7+// 'qmlplugindump -notrelocatable ScreenGrabber 0.1 plugins'
8
8
9Module {
9Module {
10 Component {
10 Component {
plugins/Ubuntu/Gestures/Gestures.qmltypes+15−1
@@ -33,7 +33,8 @@ Module {
33 "Rightwards": 0,
33 "Rightwards": 0,
34 "Leftwards": 1,
34 "Leftwards": 1,
35 "Downwards": 2,
35 "Downwards": 2,
36− "Upwards": 3
36+ "Upwards": 3,
37+ "Horizontal": 4
37 }
38 }
38 }
39 }
39 Method {
40 Method {
@@ -151,4 +152,17 @@ Module {
151 exportMetaObjectRevisions: [0]
152 exportMetaObjectRevisions: [0]
152 Signal { name: "pressedOutside" }
153 Signal { name: "pressedOutside" }
153 }
154 }
155+ Component {
156+ name: "TouchGate"
157+ defaultProperty: "data"
158+ prototype: "QQuickItem"
159+ exports: ["Ubuntu.Gestures/TouchGate 0.1"]
160+ exportMetaObjectRevisions: [0]
161+ Property { name: "targetItem"; type: "QQuickItem"; isPointer: true }
162+ Signal {
163+ name: "targetItemChanged"
164+ Parameter { name: "item"; type: "QQuickItem"; isPointer: true }
165+ }
166+ Signal { name: "pressed" }
167+ }
154}
168}
plugins/Unity/Indicators/Indicators.qmltypes+10−38
@@ -55,10 +55,15 @@ Module {
55 exports: ["Unity.Indicators/IndicatorsManager 0.1"]
55 exports: ["Unity.Indicators/IndicatorsManager 0.1"]
56 exportMetaObjectRevisions: [0]
56 exportMetaObjectRevisions: [0]
57 Property { name: "loaded"; type: "bool"; isReadonly: true }
57 Property { name: "loaded"; type: "bool"; isReadonly: true }
58+ Property { name: "profile"; type: "string" }
58 Signal {
59 Signal {
59 name: "loadedChanged"
60 name: "loadedChanged"
60 Parameter { type: "bool" }
61 Parameter { type: "bool" }
61 }
62 }
63+ Signal {
64+ name: "profileChanged"
65+ Parameter { type: "string" }
66+ }
62 Signal {
67 Signal {
63 name: "indicatorLoaded"
68 name: "indicatorLoaded"
64 Parameter { name: "indicator_name"; type: "string" }
69 Parameter { name: "indicator_name"; type: "string" }
@@ -67,10 +72,7 @@ Module {
67 name: "indicatorAboutToBeUnloaded"
72 name: "indicatorAboutToBeUnloaded"
68 Parameter { name: "indicator_name"; type: "string" }
73 Parameter { name: "indicator_name"; type: "string" }
69 }
74 }
70− Method {
71− name: "load"
75+ Method { name: "load" }
72− Parameter { name: "profile"; type: "string" }
73− }
74 Method { name: "unload" }
76 Method { name: "unload" }
75 }
77 }
76 Component {
78 Component {
@@ -79,14 +81,12 @@ Module {
79 exports: ["Unity.Indicators/IndicatorsModel 0.1"]
81 exports: ["Unity.Indicators/IndicatorsModel 0.1"]
80 exportMetaObjectRevisions: [0]
82 exportMetaObjectRevisions: [0]
81 Property { name: "count"; type: "int"; isReadonly: true }
83 Property { name: "count"; type: "int"; isReadonly: true }
84+ Property { name: "profile"; type: "string" }
82 Signal {
85 Signal {
83 name: "indicatorDataChanged"
86 name: "indicatorDataChanged"
84 Parameter { name: "data"; type: "QVariant" }
87 Parameter { name: "data"; type: "QVariant" }
85 }
88 }
86− Method {
87− name: "load"
89+ Method { name: "load" }
88− Parameter { name: "profile"; type: "string" }
89− }
90 Method { name: "unload" }
90 Method { name: "unload" }
91 Method {
91 Method {
92 name: "data"
92 name: "data"
@@ -106,8 +106,7 @@ Module {
106 values: {
106 values: {
107 "Identifier": 0,
107 "Identifier": 0,
108 "Position": 1,
108 "Position": 1,
109− "IndicatorProperties": 2,
109+ "IndicatorProperties": 2
110− "IsVisible": 3
111 }
110 }
112 }
111 }
113 }
112 }
@@ -200,12 +199,6 @@ Module {
200 }
199 }
201 }
200 }
202 }
201 }
203− Component {
204− name: "QAbstractProxyModel"
205− prototype: "QAbstractItemModel"
206− Property { name: "sourceModel"; type: "QAbstractItemModel"; isPointer: true }
207− }
208− Component { name: "QIdentityProxyModel"; prototype: "QAbstractProxyModel" }
209 Component {
202 Component {
210 name: "RootStateObject"
203 name: "RootStateObject"
211 prototype: "QObject"
204 prototype: "QObject"
@@ -215,7 +208,7 @@ Module {
215 Property { name: "rightLabel"; type: "string"; isReadonly: true }
208 Property { name: "rightLabel"; type: "string"; isReadonly: true }
216 Property { name: "icons"; type: "QStringList"; isReadonly: true }
209 Property { name: "icons"; type: "QStringList"; isReadonly: true }
217 Property { name: "accessibleName"; type: "string"; isReadonly: true }
210 Property { name: "accessibleName"; type: "string"; isReadonly: true }
218− Property { name: "visible"; type: "bool"; isReadonly: true }
211+ Property { name: "indicatorVisible"; type: "bool"; isReadonly: true }
219 Signal { name: "updated" }
212 Signal { name: "updated" }
220 }
213 }
221 Component {
214 Component {
@@ -268,25 +261,4 @@ Module {
268 }
261 }
269 Method { name: "pop"; type: "UnityMenuModel*" }
262 Method { name: "pop"; type: "UnityMenuModel*" }
270 }
263 }
271− Component {
272− name: "VisibleIndicatorsModel"
273− prototype: "QIdentityProxyModel"
274− exports: ["Unity.Indicators/VisibleIndicatorsModel 0.1"]
275− exportMetaObjectRevisions: [0]
276− Property { name: "model"; type: "QAbstractItemModel"; isPointer: true }
277− Property { name: "visible"; type: "QVariantMap" }
278− Signal { name: "totalCountChanged" }
279− Method {
280− name: "onBeginRowInserted"
281− Parameter { type: "QModelIndex" }
282− Parameter { name: "start"; type: "int" }
283− Parameter { name: "end"; type: "int" }
284− }
285− Method {
286− name: "onRowInserted"
287− Parameter { type: "QModelIndex" }
288− Parameter { name: "start"; type: "int" }
289− Parameter { name: "end"; type: "int" }
290− }
291− }
292}
264}
plugins/Unity/Launcher/Launcher.qmltypes+3
@@ -25,6 +25,7 @@ Module {
25 name: "requestRemove"
25 name: "requestRemove"
26 Parameter { name: "appId"; type: "string" }
26 Parameter { name: "appId"; type: "string" }
27 }
27 }
28+ Method { name: "refresh" }
28 Method {
29 Method {
29 name: "get"
30 name: "get"
30 type: "unity::shell::launcher::LauncherItemInterface*"
31 type: "unity::shell::launcher::LauncherItemInterface*"
@@ -136,6 +137,8 @@ Module {
136 type: "unity::shell::application::ApplicationManagerInterface"
137 type: "unity::shell::application::ApplicationManagerInterface"
137 isPointer: true
138 isPointer: true
138 }
139 }
140+ Property { name: "onlyPinned"; type: "bool" }
141+ Signal { name: "hint" }
139 Method {
142 Method {
140 name: "move"
143 name: "move"
141 Parameter { name: "oldIndex"; type: "int" }
144 Parameter { name: "oldIndex"; type: "int" }
plugins/Unity/Session/Session.qmltypes+5−1
@@ -9,7 +9,7 @@ import QtQuick.tooling 1.1
9Module {
9Module {
10 Component {
10 Component {
11 name: "DBusUnitySessionService"
11 name: "DBusUnitySessionService"
12− prototype: "QObject"
12+ prototype: "UnityDBusObject"
13 exports: ["Unity.Session/DBusUnitySessionService 0.1"]
13 exports: ["Unity.Session/DBusUnitySessionService 0.1"]
14 isCreatable: false
14 isCreatable: false
15 isSingleton: true
15 isSingleton: true
@@ -33,6 +33,9 @@ Module {
33 Method { name: "RequestLogout" }
33 Method { name: "RequestLogout" }
34 Method { name: "RequestReboot" }
34 Method { name: "RequestReboot" }
35 Method { name: "RequestShutdown" }
35 Method { name: "RequestShutdown" }
36+ Method { name: "logout" }
37+ Method { name: "reboot" }
38+ Method { name: "shutdown" }
36 }
39 }
37 Component {
40 Component {
38 name: "OrientationLock"
41 name: "OrientationLock"
@@ -44,4 +47,5 @@ Module {
44 Property { name: "enabled"; type: "bool"; isReadonly: true }
47 Property { name: "enabled"; type: "bool"; isReadonly: true }
45 Property { name: "savedOrientation"; type: "Qt::ScreenOrientation" }
48 Property { name: "savedOrientation"; type: "Qt::ScreenOrientation" }
46 }
49 }
50+ Component { name: "UnityDBusObject"; prototype: "QObject" }
47}
51}
plugins/Utils/Utils.qmltypes+60−41
@@ -60,9 +60,49 @@ Module {
60 Method { name: "invalidate" }
60 Method { name: "invalidate" }
61 }
61 }
62 Component {
62 Component {
63− name: "QSortFilterProxyModelQML"
63+ name: "RelativeTimeFormatter"
64+ prototype: "TimeFormatter"
65+ exports: ["Utils/RelativeTimeFormatter 0.1"]
66+ exportMetaObjectRevisions: [0]
67+ }
68+ Component {
69+ name: "TimeFormatter"
70+ prototype: "QObject"
71+ exports: ["Utils/GDateTimeFormatter 0.1", "Utils/TimeFormatter 0.1"]
72+ exportMetaObjectRevisions: [0, 0]
73+ Property { name: "format"; type: "string" }
74+ Property { name: "timeString"; type: "string"; isReadonly: true }
75+ Property { name: "time"; type: "qlonglong" }
76+ Signal {
77+ name: "formatChanged"
78+ Parameter { name: "format"; type: "string" }
79+ }
80+ Signal {
81+ name: "timeStringChanged"
82+ Parameter { name: "timeString"; type: "string" }
83+ }
84+ Signal {
85+ name: "timeChanged"
86+ Parameter { name: "time"; type: "qlonglong" }
87+ }
88+ }
89+ Component {
90+ name: "UnityMenuModelPaths"
91+ prototype: "QObject"
92+ exports: ["Utils/UnityMenuModelPaths 0.1"]
93+ exportMetaObjectRevisions: [0]
94+ Property { name: "source"; type: "QVariant" }
95+ Property { name: "busName"; type: "QByteArray"; isReadonly: true }
96+ Property { name: "actions"; type: "QVariantMap"; isReadonly: true }
97+ Property { name: "menuObjectPath"; type: "QByteArray"; isReadonly: true }
98+ Property { name: "busNameHint"; type: "QByteArray" }
99+ Property { name: "actionsHint"; type: "QByteArray" }
100+ Property { name: "menuObjectPathHint"; type: "QByteArray" }
101+ }
102+ Component {
103+ name: "UnitySortFilterProxyModelQML"
64 prototype: "QSortFilterProxyModel"
104 prototype: "QSortFilterProxyModel"
65− exports: ["Utils/SortFilterProxyModel 0.1"]
105+ exports: ["Utils/UnitySortFilterProxyModel 0.1"]
66 exportMetaObjectRevisions: [0]
106 exportMetaObjectRevisions: [0]
67 Property { name: "model"; type: "QAbstractItemModel"; isPointer: true }
107 Property { name: "model"; type: "QAbstractItemModel"; isPointer: true }
68 Property { name: "totalCount"; type: "int"; isReadonly: true }
108 Property { name: "totalCount"; type: "int"; isReadonly: true }
@@ -107,50 +147,29 @@ Module {
107 }
147 }
108 }
148 }
109 Component {
149 Component {
110− name: "RelativeTimeFormatter"
150+ name: "WindowKeysFilter"
151+ defaultProperty: "data"
111− prototype: "TimeFormatter"
152+ prototype: "QQuickItem"
112− exports: ["Utils/RelativeTimeFormatter 0.1"]
153+ exports: ["Utils/WindowKeysFilter 0.1"]
113 exportMetaObjectRevisions: [0]
154 exportMetaObjectRevisions: [0]
114 }
155 }
115 Component {
156 Component {
116− name: "TimeFormatter"
157+ name: "WindowStateStorage"
117 prototype: "QObject"
158 prototype: "QObject"
118− exports: ["Utils/GDateTimeFormatter 0.1", "Utils/TimeFormatter 0.1"]
159+ exports: ["Utils/WindowStateStorage 0.1"]
119− exportMetaObjectRevisions: [0, 0]
160+ isCreatable: false
120− Property { name: "format"; type: "string" }
161+ isSingleton: true
121− Property { name: "timeString"; type: "string"; isReadonly: true }
162+ exportMetaObjectRevisions: [0]
122− Property { name: "time"; type: "qlonglong" }
163+ Method {
123− Signal {
164+ name: "saveGeometry"
124− name: "formatChanged"
125− Parameter { name: "format"; type: "string" }
165+ Parameter { name: "windowId"; type: "string" }
126− }
127− Signal {
128− name: "timeStringChanged"
129− Parameter { name: "timeString"; type: "string" }
166+ Parameter { name: "rect"; type: "QRect" }
130 }
167 }
131− Signal {
168+ Method {
132− name: "timeChanged"
169+ name: "getGeometry"
170+ type: "QRect"
171+ Parameter { name: "windowId"; type: "string" }
133− Parameter { name: "time"; type: "qlonglong" }
172+ Parameter { name: "defaultValue"; type: "QRect" }
134 }
173 }
135 }
174 }
136− Component {
137− name: "UnityMenuModelPaths"
138− prototype: "QObject"
139− exports: ["Utils/UnityMenuModelPaths 0.1"]
140− exportMetaObjectRevisions: [0]
141− Property { name: "source"; type: "QVariant" }
142− Property { name: "busName"; type: "QByteArray"; isReadonly: true }
143− Property { name: "actions"; type: "QVariantMap"; isReadonly: true }
144− Property { name: "menuObjectPath"; type: "QByteArray"; isReadonly: true }
145− Property { name: "busNameHint"; type: "QByteArray" }
146− Property { name: "actionsHint"; type: "QByteArray" }
147− Property { name: "menuObjectPathHint"; type: "QByteArray" }
148− }
149− Component {
150− name: "WindowKeysFilter"
151− defaultProperty: "data"
152− prototype: "QQuickItem"
153− exports: ["Utils/WindowKeysFilter 0.1"]
154− exportMetaObjectRevisions: [0]
155− }
156}
175}
plugins/Wizard/Wizard.qmltypes−3
@@ -11,8 +11,6 @@ Module {
11 name: "PageList"
11 name: "PageList"
12 prototype: "QObject"
12 prototype: "QObject"
13 exports: ["Wizard/PageList 0.1"]
13 exports: ["Wizard/PageList 0.1"]
14− isCreatable: false
15− isSingleton: true
16 exportMetaObjectRevisions: [0]
14 exportMetaObjectRevisions: [0]
17 Property { name: "index"; type: "int"; isReadonly: true }
15 Property { name: "index"; type: "int"; isReadonly: true }
18 Property { name: "numPages"; type: "int"; isReadonly: true }
16 Property { name: "numPages"; type: "int"; isReadonly: true }
@@ -33,4 +31,3 @@ Module {
33 }
31 }
34 }
32 }
35}
33}
36−
tests/mocks/AccountsService/AccountsService.qmltypes+3
@@ -29,5 +29,8 @@ Module {
29 Property { name: "statsWelcomeScreen"; type: "bool" }
29 Property { name: "statsWelcomeScreen"; type: "bool" }
30 Property { name: "passwordDisplayHint"; type: "PasswordDisplayHint"; isReadonly: true }
30 Property { name: "passwordDisplayHint"; type: "PasswordDisplayHint"; isReadonly: true }
31 Property { name: "failedLogins"; type: "uint" }
31 Property { name: "failedLogins"; type: "uint" }
32+ Property { name: "hereEnabled"; type: "bool" }
33+ Property { name: "hereLicensePath"; type: "string" }
34+ Property { name: "hereLicensePathValid"; type: "bool"; isReadonly: true }
32 }
35 }
33}
36}
tests/mocks/LightDM/LightDM.qmltypes+33−13
@@ -10,10 +10,6 @@ Module {
10 Component {
10 Component {
11 name: "Greeter"
11 name: "Greeter"
12 prototype: "QObject"
12 prototype: "QObject"
13− exports: ["LightDM/Greeter 0.1"]
14− isCreatable: false
15− isSingleton: true
16− exportMetaObjectRevisions: [0]
17 Property { name: "active"; type: "bool" }
13 Property { name: "active"; type: "bool" }
18 Property { name: "authenticated"; type: "bool"; isReadonly: true }
14 Property { name: "authenticated"; type: "bool"; isReadonly: true }
19 Property { name: "authenticationUser"; type: "string"; isReadonly: true }
15 Property { name: "authenticationUser"; type: "string"; isReadonly: true }
@@ -62,6 +58,32 @@ Module {
62 Parameter { name: "isActive"; type: "bool" }
58 Parameter { name: "isActive"; type: "bool" }
63 }
59 }
64 }
60 }
61+ Component {
62+ name: "MockGreeter"
63+ prototype: "Greeter"
64+ exports: ["LightDM/Greeter 0.1"]
65+ isCreatable: false
66+ isSingleton: true
67+ exportMetaObjectRevisions: [0]
68+ Property { name: "mockMode"; type: "string" }
69+ Signal {
70+ name: "mockModeChanged"
71+ Parameter { name: "mode"; type: "string" }
72+ }
73+ }
74+ Component {
75+ name: "MockUsersModel"
76+ prototype: "UsersModel"
77+ exports: ["LightDM/Users 0.1"]
78+ isCreatable: false
79+ isSingleton: true
80+ exportMetaObjectRevisions: [0]
81+ Property { name: "mockMode"; type: "string" }
82+ Signal {
83+ name: "mockModeChanged"
84+ Parameter { name: "mode"; type: "string" }
85+ }
86+ }
65 Component {
87 Component {
66 name: "QAbstractProxyModel"
88 name: "QAbstractProxyModel"
67 prototype: "QAbstractItemModel"
89 prototype: "QAbstractItemModel"
@@ -86,6 +108,11 @@ Module {
86 "BackgroundPathRole": 263
108 "BackgroundPathRole": 263
87 }
109 }
88 }
110 }
111+ Property { name: "mockMode"; type: "string" }
112+ Signal {
113+ name: "mockModeChanged"
114+ Parameter { name: "mode"; type: "string" }
115+ }
89 }
116 }
90 Component {
117 Component {
91 name: "QSortFilterProxyModel"
118 name: "QSortFilterProxyModel"
@@ -114,7 +141,7 @@ Module {
114 Method { name: "invalidate" }
141 Method { name: "invalidate" }
115 }
142 }
116 Component {
143 Component {
117− name: "QSortFilterProxyModelQML"
144+ name: "UnitySortFilterProxyModelQML"
118 prototype: "QSortFilterProxyModel"
145 prototype: "QSortFilterProxyModel"
119 Property { name: "model"; type: "QAbstractItemModel"; isPointer: true }
146 Property { name: "model"; type: "QAbstractItemModel"; isPointer: true }
120 Property { name: "totalCount"; type: "int"; isReadonly: true }
147 Property { name: "totalCount"; type: "int"; isReadonly: true }
@@ -240,12 +267,5 @@ Module {
240 Method { name: "nextDataSourceSlot" }
267 Method { name: "nextDataSourceSlot" }
241 Method { name: "readyForDataChangeSlot" }
268 Method { name: "readyForDataChangeSlot" }
242 }
269 }
243− Component {
270+ Component { name: "UsersModel"; prototype: "UnitySortFilterProxyModelQML" }
244− name: "UsersModel"
245− prototype: "QSortFilterProxyModelQML"
246− exports: ["LightDM/Users 0.1"]
247− isCreatable: false
248− isSingleton: true
249− exportMetaObjectRevisions: [0]
250− }
251}
271}
tests/mocks/MeeGo/QOfono/QOfono.qmltypesnew file+30
@@ -0,0 +1,30 @@
1+import 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 MeeGo.QOfono 0.2 tests/mocks'
8+
9+Module {
10+ Component {
11+ name: "MockQOfono"
12+ prototype: "QObject"
13+ exports: ["MeeGo.QOfono/MockQOfono 0.2"]
14+ isCreatable: false
15+ isSingleton: true
16+ exportMetaObjectRevisions: [0]
17+ Property { name: "available"; type: "bool" }
18+ Property { name: "modems"; type: "QStringList"; isReadonly: true }
19+ Method {
20+ name: "setModems"
21+ Parameter { name: "modems"; type: "QStringList" }
22+ Parameter { name: "present"; type: "QList<bool>" }
23+ }
24+ Method {
25+ name: "isModemPresent"
26+ type: "bool"
27+ Parameter { name: "modem"; type: "string" }
28+ }
29+ }
30+}
tests/mocks/QMenuModel/QMenuModel.qmltypes+33
@@ -7,12 +7,45 @@ import QtQuick.tooling 1.1
7// 'qmlplugindump -notrelocatable QMenuModel 0.1 tests/mocks'
7// 'qmlplugindump -notrelocatable QMenuModel 0.1 tests/mocks'
8
8
9Module {
9Module {
10+ Component {
11+ name: "ActionData"
12+ prototype: "QObject"
13+ exports: ["QMenuModel/ActionData 0.1"]
14+ isCreatable: false
15+ isSingleton: true
16+ exportMetaObjectRevisions: [0]
17+ Property { name: "data"; type: "QVariant" }
18+ }
10 Component {
19 Component {
11 name: "ActionStateParser"
20 name: "ActionStateParser"
12 prototype: "QObject"
21 prototype: "QObject"
13 exports: ["QMenuModel/ActionStateParser 0.1"]
22 exports: ["QMenuModel/ActionStateParser 0.1"]
14 exportMetaObjectRevisions: [0]
23 exportMetaObjectRevisions: [0]
15 }
24 }
25+ Component {
26+ name: "DBusEnums"
27+ prototype: "QObject"
28+ exports: ["QMenuModel/DBus 0.1"]
29+ isCreatable: false
30+ exportMetaObjectRevisions: [0]
31+ Enum {
32+ name: "BusType"
33+ values: {
34+ "None": 0,
35+ "SessionBus": 1,
36+ "SystemBus": 2,
37+ "LastBusType": 3
38+ }
39+ }
40+ Enum {
41+ name: "ConnectionStatus"
42+ values: {
43+ "Disconnected": 0,
44+ "Connecting": 1,
45+ "Connected": 2
46+ }
47+ }
48+ }
16 Component {
49 Component {
17 name: "UnityMenuModel"
50 name: "UnityMenuModel"
18 prototype: "QAbstractListModel"
51 prototype: "QAbstractListModel"
tests/mocks/Ubuntu/SystemSettings/LanguagePlugin/LanguagePlugin.qmltypesnew file+10
@@ -0,0 +1,10 @@
1+import 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.SystemSettings.LanguagePlugin 1.0 tests/mocks'
8+
9+Module {
10+}
tests/mocks/Ubuntu/SystemSettings/SecurityPrivacy/SecurityPrivacy.qmltypesnew file+39
@@ -0,0 +1,39 @@
1+import 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.SystemSettings.SecurityPrivacy 1.0 tests/mocks'
8+
9+Module {
10+ Component {
11+ name: "MockSecurityPrivacy"
12+ prototype: "QObject"
13+ exports: [
14+ "Ubuntu.SystemSettings.SecurityPrivacy/UbuntuSecurityPrivacyPanel 1.0"
15+ ]
16+ exportMetaObjectRevisions: [0]
17+ Enum {
18+ name: "SecurityType"
19+ values: {
20+ "Swipe": 0,
21+ "Passcode": 1,
22+ "Passphrase": 2
23+ }
24+ }
25+ Signal {
26+ name: "setSecurityCalled"
27+ Parameter { name: "oldPasswd"; type: "string" }
28+ Parameter { name: "newPasswd"; type: "string" }
29+ Parameter { name: "newType"; type: "SecurityType" }
30+ }
31+ Method {
32+ name: "setSecurity"
33+ type: "string"
34+ Parameter { name: "oldPasswd"; type: "string" }
35+ Parameter { name: "newPasswd"; type: "string" }
36+ Parameter { name: "newType"; type: "SecurityType" }
37+ }
38+ }
39+}
tests/mocks/Unity/Application/Application.qmltypes+42
@@ -239,6 +239,8 @@ Module {
239 Property { name: "name"; type: "string"; isReadonly: true }
239 Property { name: "name"; type: "string"; isReadonly: true }
240 Property { name: "live"; type: "bool"; isReadonly: true }
240 Property { name: "live"; type: "bool"; isReadonly: true }
241 Property { name: "orientation"; type: "Qt::ScreenOrientation" }
241 Property { name: "orientation"; type: "Qt::ScreenOrientation" }
242+ Property { name: "touchPressCount"; type: "int" }
243+ Property { name: "touchReleaseCount"; type: "int" }
242 Signal {
244 Signal {
243 name: "typeChanged"
245 name: "typeChanged"
244 Parameter { type: "Type" }
246 Parameter { type: "Type" }
@@ -251,6 +253,14 @@ Module {
251 name: "liveChanged"
253 name: "liveChanged"
252 Parameter { name: "live"; type: "bool" }
254 Parameter { name: "live"; type: "bool" }
253 }
255 }
256+ Signal {
257+ name: "touchPressCountChanged"
258+ Parameter { name: "count"; type: "int" }
259+ }
260+ Signal {
261+ name: "touchReleaseCountChanged"
262+ Parameter { name: "count"; type: "int" }
263+ }
254 Signal { name: "inputMethodRequested" }
264 Signal { name: "inputMethodRequested" }
255 Signal { name: "inputMethodDismissed" }
265 Signal { name: "inputMethodDismissed" }
256 Signal { name: "deregister" }
266 Signal { name: "deregister" }
@@ -296,6 +306,10 @@ Module {
296 name: "addChildSession"
306 name: "addChildSession"
297 Parameter { name: "session"; type: "Session"; isPointer: true }
307 Parameter { name: "session"; type: "Session"; isPointer: true }
298 }
308 }
309+ Method {
310+ name: "removeChildSession"
311+ Parameter { name: "session"; type: "Session"; isPointer: true }
312+ }
299 }
313 }
300 Component {
314 Component {
301 name: "SessionManager"
315 name: "SessionManager"
@@ -345,6 +359,34 @@ Module {
345 }
359 }
346 Method { name: "inputMethodSurface"; type: "MirSurfaceItem*" }
360 Method { name: "inputMethodSurface"; type: "MirSurfaceItem*" }
347 }
361 }
362+ Component {
363+ name: "UbuntuKeyboardInfo"
364+ prototype: "QObject"
365+ exports: ["Unity.Application/UbuntuKeyboardInfo 0.1"]
366+ isCreatable: false
367+ isSingleton: true
368+ exportMetaObjectRevisions: [0]
369+ Property { name: "x"; type: "double"; isReadonly: true }
370+ Property { name: "y"; type: "double"; isReadonly: true }
371+ Property { name: "width"; type: "double"; isReadonly: true }
372+ Property { name: "height"; type: "double"; isReadonly: true }
373+ Signal {
374+ name: "xChanged"
375+ Parameter { name: "x"; type: "double" }
376+ }
377+ Signal {
378+ name: "yChanged"
379+ Parameter { name: "y"; type: "double" }
380+ }
381+ Signal {
382+ name: "widthChanged"
383+ Parameter { name: "width"; type: "double" }
384+ }
385+ Signal {
386+ name: "heightChanged"
387+ Parameter { name: "height"; type: "double" }
388+ }
389+ }
348 Component {
390 Component {
349 name: "unity::shell::application::ApplicationInfoInterface"
391 name: "unity::shell::application::ApplicationInfoInterface"
350 prototype: "QObject"
392 prototype: "QObject"
tests/mocks/Unity/Indicators/Indicators.qmltypes+7−33
@@ -29,6 +29,7 @@ Module {
29 exports: ["Unity.Indicators/FakeIndicatorsModel 0.1"]
29 exports: ["Unity.Indicators/FakeIndicatorsModel 0.1"]
30 exportMetaObjectRevisions: [0]
30 exportMetaObjectRevisions: [0]
31 Property { name: "count"; type: "int"; isReadonly: true }
31 Property { name: "count"; type: "int"; isReadonly: true }
32+ Property { name: "profile"; type: "string" }
32 Property { name: "modelData"; type: "QVariant" }
33 Property { name: "modelData"; type: "QVariant" }
33 Method {
34 Method {
34 name: "load"
35 name: "load"
@@ -64,16 +65,17 @@ Module {
64 exportMetaObjectRevisions: [0]
65 exportMetaObjectRevisions: [0]
65 Method {
66 Method {
66 name: "setCachedModelData"
67 name: "setCachedModelData"
67− Parameter { name: "bus"; type: "QByteArray" }
68 Parameter { name: "path"; type: "QByteArray" }
68 Parameter { name: "path"; type: "QByteArray" }
69− Parameter { name: "actions"; type: "QVariantMap" }
70 Parameter { name: "data"; type: "QVariant" }
69 Parameter { name: "data"; type: "QVariant" }
71 }
70 }
72 Method {
71 Method {
73 name: "setCachedModelData"
72 name: "setCachedModelData"
74− Parameter { name: "bus"; type: "QByteArray" }
75 Parameter { name: "path"; type: "QByteArray" }
73 Parameter { name: "path"; type: "QByteArray" }
74+ }
75+ Method {
76+ name: "getCachedModelData"
77+ type: "QVariant"
76− Parameter { name: "actions"; type: "QVariantMap" }
78+ Parameter { name: "path"; type: "QByteArray" }
77 }
79 }
78 }
80 }
79 Component {
81 Component {
@@ -105,8 +107,7 @@ Module {
105 values: {
107 values: {
106 "Identifier": 0,
108 "Identifier": 0,
107 "Position": 1,
109 "Position": 1,
108− "IndicatorProperties": 2,
110+ "IndicatorProperties": 2
109− "IsVisible": 3
110 }
111 }
111 }
112 }
112 }
113 }
@@ -182,12 +183,6 @@ Module {
182 }
183 }
183 }
184 }
184 }
185 }
185− Component {
186− name: "QAbstractProxyModel"
187− prototype: "QAbstractItemModel"
188− Property { name: "sourceModel"; type: "QAbstractItemModel"; isPointer: true }
189− }
190− Component { name: "QIdentityProxyModel"; prototype: "QAbstractProxyModel" }
191 Component {
186 Component {
192 name: "SharedUnityMenuModel"
187 name: "SharedUnityMenuModel"
193 prototype: "QObject"
188 prototype: "QObject"
@@ -234,25 +229,4 @@ Module {
234 }
229 }
235 Method { name: "pop"; type: "UnityMenuModel*" }
230 Method { name: "pop"; type: "UnityMenuModel*" }
236 }
231 }
237− Component {
238− name: "VisibleIndicatorsModel"
239− prototype: "QIdentityProxyModel"
240− exports: ["Unity.Indicators/VisibleIndicatorsModel 0.1"]
241− exportMetaObjectRevisions: [0]
242− Property { name: "model"; type: "QAbstractItemModel"; isPointer: true }
243− Property { name: "visible"; type: "QVariantMap" }
244− Signal { name: "totalCountChanged" }
245− Method {
246− name: "onBeginRowInserted"
247− Parameter { type: "QModelIndex" }
248− Parameter { name: "start"; type: "int" }
249− Parameter { name: "end"; type: "int" }
250− }
251− Method {
252− name: "onRowInserted"
253− Parameter { type: "QModelIndex" }
254− Parameter { name: "start"; type: "int" }
255− Parameter { name: "end"; type: "int" }
256− }
257− }
258}
232}
tests/mocks/Unity/Launcher/Launcher.qmltypes+3
@@ -63,6 +63,7 @@ Module {
63 type: "string"
63 type: "string"
64 Parameter { name: "appId"; type: "string" }
64 Parameter { name: "appId"; type: "string" }
65 }
65 }
66+ Method { name: "emitHint" }
66 }
67 }
67 Component {
68 Component {
68 name: "MockQuickListModel"
69 name: "MockQuickListModel"
@@ -141,6 +142,8 @@ Module {
141 type: "unity::shell::application::ApplicationManagerInterface"
142 type: "unity::shell::application::ApplicationManagerInterface"
142 isPointer: true
143 isPointer: true
143 }
144 }
145+ Property { name: "onlyPinned"; type: "bool" }
146+ Signal { name: "hint" }
144 Method {
147 Method {
145 name: "move"
148 name: "move"
146 Parameter { name: "oldIndex"; type: "int" }
149 Parameter { name: "oldIndex"; type: "int" }
tests/mocks/Unity/Notifications/Notifications.qmltypes+139
@@ -7,4 +7,143 @@ import QtQuick.tooling 1.1
7// 'qmlplugindump -notrelocatable Unity.Notifications 1.0 tests/mocks'
7// 'qmlplugindump -notrelocatable Unity.Notifications 1.0 tests/mocks'
8
8
9Module {
9Module {
10+ Component {
11+ name: "ActionModel"
12+ prototype: "QStringListModel"
13+ exports: ["Unity.Notifications/ActionModel 1.0"]
14+ exportMetaObjectRevisions: [0]
15+ Enum {
16+ name: "ActionsRoles"
17+ values: {
18+ "RoleActionLabel": 257,
19+ "RoleActionId": 258
20+ }
21+ }
22+ Property { name: "count"; type: "int"; isReadonly: true }
23+ Method {
24+ name: "data"
25+ type: "QVariant"
26+ Parameter { name: "row"; type: "int" }
27+ Parameter { name: "role"; type: "int" }
28+ }
29+ Method {
30+ name: "append"
31+ Parameter { name: "id"; type: "string" }
32+ Parameter { name: "label"; type: "string" }
33+ }
34+ }
35+ Component {
36+ name: "MockNotification"
37+ prototype: "QObject"
38+ exports: ["Unity.Notifications/Notification 1.0"]
39+ exportMetaObjectRevisions: [0]
40+ Enum {
41+ name: "Type"
42+ values: {
43+ "PlaceHolder": 0,
44+ "Confirmation": 1,
45+ "Ephemeral": 2,
46+ "Interactive": 3,
47+ "SnapDecision": 4
48+ }
49+ }
50+ Property { name: "summary"; type: "string" }
51+ Property { name: "body"; type: "string" }
52+ Property { name: "nid"; type: "int" }
53+ Property { name: "value"; type: "int" }
54+ Property { name: "icon"; type: "string" }
55+ Property { name: "secondaryIcon"; type: "string" }
56+ Property { name: "type"; type: "Type" }
57+ Property { name: "rawActions"; type: "QStringList" }
58+ Property { name: "actions"; type: "ActionModel"; isReadonly: true; isPointer: true }
59+ Property { name: "hints"; type: "QVariantMap" }
60+ Signal {
61+ name: "summaryChanged"
62+ Parameter { name: "summary"; type: "string" }
63+ }
64+ Signal {
65+ name: "bodyChanged"
66+ Parameter { name: "body"; type: "string" }
67+ }
68+ Signal {
69+ name: "idChanged"
70+ Parameter { name: "id"; type: "int" }
71+ }
72+ Signal {
73+ name: "valueChanged"
74+ Parameter { name: "value"; type: "int" }
75+ }
76+ Signal {
77+ name: "iconChanged"
78+ Parameter { name: "icon"; type: "string" }
79+ }
80+ Signal {
81+ name: "secondaryIconChanged"
82+ Parameter { name: "secondaryIcon"; type: "string" }
83+ }
84+ Signal {
85+ name: "typeChanged"
86+ Parameter { name: "type"; type: "Type" }
87+ }
88+ Signal {
89+ name: "actionsChanged"
90+ Parameter { name: "actions"; type: "QStringList" }
91+ }
92+ Signal {
93+ name: "hintsChanged"
94+ Parameter { name: "hints"; type: "QVariantMap" }
95+ }
96+ Signal {
97+ name: "dataChanged"
98+ Parameter { name: "nid"; type: "int" }
99+ }
100+ Signal {
101+ name: "completed"
102+ Parameter { name: "nid"; type: "int" }
103+ }
104+ Signal {
105+ name: "actionInvoked"
106+ Parameter { name: "action"; type: "string" }
107+ }
108+ Method {
109+ name: "invokeAction"
110+ Parameter { name: "action"; type: "string" }
111+ }
112+ Method { name: "close" }
113+ }
114+ Component {
115+ name: "MockNotificationModel"
116+ prototype: "QAbstractListModel"
117+ exports: ["Unity.Notifications/NotificationModel 1.0"]
118+ exportMetaObjectRevisions: [0]
119+ Property { name: "count"; type: "int"; isReadonly: true }
120+ Signal {
121+ name: "actionInvoked"
122+ Parameter { name: "action"; type: "string" }
123+ }
124+ Signal {
125+ name: "queueSizeChanged"
126+ Parameter { name: "newSize"; type: "int" }
127+ }
128+ Method {
129+ name: "onCompleted"
130+ Parameter { name: "id"; type: "int" }
131+ }
132+ Method {
133+ name: "append"
134+ Parameter { name: "n"; type: "MockNotification"; isPointer: true }
135+ }
136+ Method {
137+ name: "getRaw"
138+ type: "MockNotification*"
139+ Parameter { name: "notificationId"; type: "int" }
140+ }
141+ Method { name: "queued"; type: "int" }
142+ Method {
143+ name: "remove"
144+ Parameter { name: "id"; type: "int" }
145+ }
146+ Method { name: "removeSecond" }
147+ }
148+ Component { name: "QStringListModel"; prototype: "QAbstractListModel" }
10}
149}
tests/mocks/Unity/Unity.qmltypes+21
@@ -169,7 +169,18 @@ Module {
169 Parameter { name: "scope"; type: "Scope"; isPointer: true }
169 Parameter { name: "scope"; type: "Scope"; isPointer: true }
170 }
170 }
171 Method { name: "clear" }
171 Method { name: "clear" }
172+ Method { name: "clearFavorites" }
172 Method { name: "load" }
173 Method { name: "load" }
174+ Method {
175+ name: "setFavorite"
176+ Parameter { name: "scopeId"; type: "string" }
177+ Parameter { name: "favorite"; type: "bool" }
178+ }
179+ Method {
180+ name: "moveFavoriteTo"
181+ Parameter { name: "scopeId"; type: "string" }
182+ Parameter { name: "index"; type: "int" }
183+ }
173 Method {
184 Method {
174 name: "getScopeFromAll"
185 name: "getScopeFromAll"
175 type: "Scope*"
186 type: "Scope*"
@@ -443,6 +454,16 @@ Module {
443 type: "unity::shell::scopes::ScopeInterface*"
454 type: "unity::shell::scopes::ScopeInterface*"
444 Parameter { name: "scopeId"; type: "string" }
455 Parameter { name: "scopeId"; type: "string" }
445 }
456 }
457+ Method {
458+ name: "setFavorite"
459+ Parameter { name: "scopeId"; type: "string" }
460+ Parameter { name: "favorite"; type: "bool" }
461+ }
462+ Method {
463+ name: "moveFavoriteTo"
464+ Parameter { name: "scopeId"; type: "string" }
465+ Parameter { name: "index"; type: "int" }
466+ }
446 }
467 }
447 Component {
468 Component {
448 name: "unity::shell::scopes::SettingsModelInterface"
469 name: "unity::shell::scopes::SettingsModelInterface"
tests/mocks/Wizard/Wizard.qmltypes+4−3
@@ -15,6 +15,10 @@ Module {
15 isSingleton: true
15 isSingleton: true
16 exportMetaObjectRevisions: [0]
16 exportMetaObjectRevisions: [0]
17 Property { name: "wizardEnabled"; type: "bool" }
17 Property { name: "wizardEnabled"; type: "bool" }
18+ Signal {
19+ name: "updateSessionLanguageCalled"
20+ Parameter { name: "locale"; type: "string" }
21+ }
18 Method {
22 Method {
19 name: "updateSessionLanguage"
23 name: "updateSessionLanguage"
20 Parameter { name: "locale"; type: "string" }
24 Parameter { name: "locale"; type: "string" }
@@ -24,8 +28,6 @@ Module {
24 name: "PageList"
28 name: "PageList"
25 prototype: "QObject"
29 prototype: "QObject"
26 exports: ["Wizard/PageList 0.1"]
30 exports: ["Wizard/PageList 0.1"]
27− isCreatable: false
28− isSingleton: true
29 exportMetaObjectRevisions: [0]
31 exportMetaObjectRevisions: [0]
30 Property { name: "index"; type: "int"; isReadonly: true }
32 Property { name: "index"; type: "int"; isReadonly: true }
31 Property { name: "numPages"; type: "int"; isReadonly: true }
33 Property { name: "numPages"; type: "int"; isReadonly: true }
@@ -33,4 +35,3 @@ Module {
33 Method { name: "next"; type: "string" }
35 Method { name: "next"; type: "string" }
34 }
36 }
35}
37}
36−
tests/utils/modules/Unity/Test/Test.qmltypes+1
@@ -21,6 +21,7 @@ Module {
21 Parameter { type: "string" }
21 Parameter { type: "string" }
22 }
22 }
23 Method { name: "touchEvent"; type: "TouchEventSequenceWrapper*" }
23 Method { name: "touchEvent"; type: "TouchEventSequenceWrapper*" }
24+ Method { name: "ensureTouchRegistryInstalled" }
24 }
25 }
25 Component {
26 Component {
26 name: "TouchEventSequenceWrapper"
27 name: "TouchEventSequenceWrapper"