on xenial help sign in
Update qmltypes definitions
fec6fcfMichał Sawicz
plugins/AccountsService/AccountsService.qmltypes+8
@@ -14,9 +14,17 @@ Module {
14 isCreatable: false
14 isCreatable: false
15 isSingleton: true
15 isSingleton: true
16 exportMetaObjectRevisions: [0]
16 exportMetaObjectRevisions: [0]
17+ Enum {
18+ name: "PasswordDisplayHint"
19+ values: {
20+ "Keyboard": 0,
21+ "Numeric": 1
22+ }
23+ }
17 Property { name: "user"; type: "string" }
24 Property { name: "user"; type: "string" }
18 Property { name: "demoEdges"; type: "bool" }
25 Property { name: "demoEdges"; type: "bool" }
19 Property { name: "backgroundFile"; type: "string"; isReadonly: true }
26 Property { name: "backgroundFile"; type: "string"; isReadonly: true }
20 Property { name: "statsWelcomeScreen"; type: "bool"; isReadonly: true }
27 Property { name: "statsWelcomeScreen"; type: "bool"; isReadonly: true }
28+ Property { name: "passwordDisplayHint"; type: "PasswordDisplayHint"; isReadonly: true }
21 }
29 }
22}
30}
plugins/Dash/Dash.qmltypes+1
@@ -39,6 +39,7 @@ Module {
39 Property { name: "sectionProperty"; type: "string" }
39 Property { name: "sectionProperty"; type: "string" }
40 Property { name: "forceNoClip"; type: "bool" }
40 Property { name: "forceNoClip"; type: "bool" }
41 Property { name: "stickyHeaderHeight"; type: "int"; isReadonly: true }
41 Property { name: "stickyHeaderHeight"; type: "int"; isReadonly: true }
42+ Property { name: "headerItemShownHeight"; type: "double"; isReadonly: true }
42 Signal { name: "headerChanged" }
43 Signal { name: "headerChanged" }
43 Method { name: "positionAtBeginning" }
44 Method { name: "positionAtBeginning" }
44 Method { name: "showHeader" }
45 Method { name: "showHeader" }
plugins/LightDM/LightDM.qmltypes+7
@@ -14,6 +14,7 @@ Module {
14 isCreatable: false
14 isCreatable: false
15 isSingleton: true
15 isSingleton: true
16 exportMetaObjectRevisions: [0]
16 exportMetaObjectRevisions: [0]
17+ Property { name: "active"; type: "bool" }
17 Property { name: "authenticated"; type: "bool"; isReadonly: true }
18 Property { name: "authenticated"; type: "bool"; isReadonly: true }
18 Property { name: "authenticationUser"; type: "string"; isReadonly: true }
19 Property { name: "authenticationUser"; type: "string"; isReadonly: true }
19 Property { name: "promptless"; type: "bool"; isReadonly: true }
20 Property { name: "promptless"; type: "bool"; isReadonly: true }
@@ -32,6 +33,8 @@ Module {
32 name: "authenticationUserChanged"
33 name: "authenticationUserChanged"
33 Parameter { name: "user"; type: "string" }
34 Parameter { name: "user"; type: "string" }
34 }
35 }
36+ Signal { name: "isActiveChanged" }
37+ Signal { name: "showGreeter" }
35 Signal {
38 Signal {
36 name: "requestAuthenticationUser"
39 name: "requestAuthenticationUser"
37 Parameter { name: "user"; type: "string" }
40 Parameter { name: "user"; type: "string" }
@@ -51,6 +54,10 @@ Module {
51 Parameter { name: "session"; type: "string" }
54 Parameter { name: "session"; type: "string" }
52 }
55 }
53 Method { name: "startSessionSync"; type: "bool" }
56 Method { name: "startSessionSync"; type: "bool" }
57+ Method {
58+ name: "setIsActive"
59+ Parameter { name: "isActive"; type: "bool" }
60+ }
54 }
61 }
55 Component {
62 Component {
56 name: "QAbstractProxyModel"
63 name: "QAbstractProxyModel"
plugins/Unity/DashCommunicator/DashCommunicator.qmltypesnew file+34
@@ -0,0 +1,34 @@
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 Unity.DashCommunicator 0.1 plugins'
8+
9+Module {
10+ Component {
11+ name: "DashCommunicator"
12+ prototype: "QObject"
13+ exports: ["Unity.DashCommunicator/DashCommunicator 0.1"]
14+ exportMetaObjectRevisions: [0]
15+ Method {
16+ name: "setCurrentScope"
17+ Parameter { name: "scopeId"; type: "string" }
18+ Parameter { name: "animate"; type: "bool" }
19+ Parameter { name: "reset"; type: "bool" }
20+ }
21+ }
22+ Component {
23+ name: "DashCommunicatorService"
24+ prototype: "QObject"
25+ exports: ["Unity.DashCommunicator/DashCommunicatorService 0.1"]
26+ exportMetaObjectRevisions: [0]
27+ Signal {
28+ name: "setCurrentScopeRequested"
29+ Parameter { name: "scopeId"; type: "string" }
30+ Parameter { name: "animate"; type: "bool" }
31+ Parameter { name: "reset"; type: "bool" }
32+ }
33+ }
34+}
plugins/Unity/Session/Session.qmltypes+12
@@ -18,8 +18,20 @@ Module {
18 name: "logoutRequested"
18 name: "logoutRequested"
19 Parameter { name: "have_inhibitors"; type: "bool" }
19 Parameter { name: "have_inhibitors"; type: "bool" }
20 }
20 }
21+ Signal {
22+ name: "rebootRequested"
23+ Parameter { name: "have_inhibitors"; type: "bool" }
24+ }
25+ Signal {
26+ name: "shutdownRequested"
27+ Parameter { name: "have_inhibitors"; type: "bool" }
28+ }
21 Signal { name: "logoutReady" }
29 Signal { name: "logoutReady" }
22 Method { name: "Logout" }
30 Method { name: "Logout" }
31+ Method { name: "Reboot" }
32+ Method { name: "Shutdown" }
23 Method { name: "RequestLogout" }
33 Method { name: "RequestLogout" }
34+ Method { name: "RequestReboot" }
35+ Method { name: "RequestShutdown" }
24 }
36 }
25}
37}
plugins/Utils/Utils.qmltypes+7
@@ -140,4 +140,11 @@ Module {
140 Property { name: "actionsHint"; type: "QByteArray" }
140 Property { name: "actionsHint"; type: "QByteArray" }
141 Property { name: "menuObjectPathHint"; type: "QByteArray" }
141 Property { name: "menuObjectPathHint"; type: "QByteArray" }
142 }
142 }
143+ Component {
144+ name: "WindowKeysFilter"
145+ defaultProperty: "data"
146+ prototype: "QQuickItem"
147+ exports: ["Utils/WindowKeysFilter 0.1"]
148+ exportMetaObjectRevisions: [0]
149+ }
143}
150}
tests/mocks/AccountsService/AccountsService.qmltypes+8
@@ -14,9 +14,17 @@ Module {
14 isCreatable: false
14 isCreatable: false
15 isSingleton: true
15 isSingleton: true
16 exportMetaObjectRevisions: [0]
16 exportMetaObjectRevisions: [0]
17+ Enum {
18+ name: "PasswordDisplayHint"
19+ values: {
20+ "Keyboard": 0,
21+ "Numeric": 1
22+ }
23+ }
17 Property { name: "user"; type: "string" }
24 Property { name: "user"; type: "string" }
18 Property { name: "demoEdges"; type: "bool" }
25 Property { name: "demoEdges"; type: "bool" }
19 Property { name: "backgroundFile"; type: "string" }
26 Property { name: "backgroundFile"; type: "string" }
20 Property { name: "statsWelcomeScreen"; type: "bool" }
27 Property { name: "statsWelcomeScreen"; type: "bool" }
28+ Property { name: "passwordDisplayHint"; type: "PasswordDisplayHint"; isReadonly: true }
21 }
29 }
22}
30}
tests/mocks/LightDM/LightDM.qmltypes+7
@@ -14,6 +14,7 @@ Module {
14 isCreatable: false
14 isCreatable: false
15 isSingleton: true
15 isSingleton: true
16 exportMetaObjectRevisions: [0]
16 exportMetaObjectRevisions: [0]
17+ Property { name: "active"; type: "bool" }
17 Property { name: "authenticated"; type: "bool"; isReadonly: true }
18 Property { name: "authenticated"; type: "bool"; isReadonly: true }
18 Property { name: "authenticationUser"; type: "string"; isReadonly: true }
19 Property { name: "authenticationUser"; type: "string"; isReadonly: true }
19 Property { name: "promptless"; type: "bool"; isReadonly: true }
20 Property { name: "promptless"; type: "bool"; isReadonly: true }
@@ -32,6 +33,8 @@ Module {
32 name: "authenticationUserChanged"
33 name: "authenticationUserChanged"
33 Parameter { name: "user"; type: "string" }
34 Parameter { name: "user"; type: "string" }
34 }
35 }
36+ Signal { name: "isActiveChanged" }
37+ Signal { name: "showGreeter" }
35 Signal {
38 Signal {
36 name: "requestAuthenticationUser"
39 name: "requestAuthenticationUser"
37 Parameter { name: "user"; type: "string" }
40 Parameter { name: "user"; type: "string" }
@@ -51,6 +54,10 @@ Module {
51 Parameter { name: "session"; type: "string" }
54 Parameter { name: "session"; type: "string" }
52 }
55 }
53 Method { name: "startSessionSync"; type: "bool" }
56 Method { name: "startSessionSync"; type: "bool" }
57+ Method {
58+ name: "setIsActive"
59+ Parameter { name: "isActive"; type: "bool" }
60+ }
54 }
61 }
55 Component {
62 Component {
56 name: "QAbstractProxyModel"
63 name: "QAbstractProxyModel"
tests/mocks/QMenuModel/QMenuModel.qmltypes+1
@@ -23,6 +23,7 @@ Module {
23 Property { name: "actions"; type: "QVariantMap" }
23 Property { name: "actions"; type: "QVariantMap" }
24 Property { name: "menuObjectPath"; type: "QByteArray" }
24 Property { name: "menuObjectPath"; type: "QByteArray" }
25 Property { name: "actionStateParser"; type: "ActionStateParser"; isPointer: true }
25 Property { name: "actionStateParser"; type: "ActionStateParser"; isPointer: true }
26+ Property { name: "nameOwner"; type: "string"; isReadonly: true }
26 Method {
27 Method {
27 name: "insertRow"
28 name: "insertRow"
28 Parameter { name: "row"; type: "int" }
29 Parameter { name: "row"; type: "int" }
tests/mocks/Ubuntu/Telephony/Telephony.qmltypesnew file+57
@@ -0,0 +1,57 @@
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.Telephony 0.1 tests/mocks'
8+
9+Module {
10+ Component {
11+ name: "ContactWatcherData"
12+ prototype: "QObject"
13+ exports: ["Ubuntu.Telephony/ContactWatcherData 0.1"]
14+ isCreatable: false
15+ exportMetaObjectRevisions: [0]
16+ Property { name: "contactData"; type: "QVariant" }
17+ }
18+ Component {
19+ name: "MockCallEntry"
20+ prototype: "QObject"
21+ exports: ["Ubuntu.Telephony/CallEntry 0.1"]
22+ exportMetaObjectRevisions: [0]
23+ Property { name: "phoneNumber"; type: "string" }
24+ Property { name: "isConference"; type: "bool" }
25+ Property { name: "elapsedTime"; type: "int"; isReadonly: true }
26+ }
27+ Component {
28+ name: "MockCallManager"
29+ prototype: "QObject"
30+ exports: ["Ubuntu.Telephony/CallManager 0.1"]
31+ isCreatable: false
32+ exportMetaObjectRevisions: [0]
33+ Property { name: "foregroundCall"; type: "QObject"; isPointer: true }
34+ Property { name: "backgroundCall"; type: "QObject"; isPointer: true }
35+ Property { name: "hasCalls"; type: "bool"; isReadonly: true }
36+ Property { name: "callIndicatorVisible"; type: "bool" }
37+ }
38+ Component {
39+ name: "MockContactWatcher"
40+ prototype: "QObject"
41+ exports: ["Ubuntu.Telephony/ContactWatcher 0.1"]
42+ exportMetaObjectRevisions: [0]
43+ Property { name: "phoneNumber"; type: "string" }
44+ Property { name: "alias"; type: "string"; isReadonly: true }
45+ }
46+ Component {
47+ name: "MockTelepathyHelper"
48+ prototype: "QObject"
49+ exports: ["Ubuntu.Telephony/TelepathyHelper 0.1"]
50+ isCreatable: false
51+ exportMetaObjectRevisions: [0]
52+ Method {
53+ name: "registerChannelObserver"
54+ Parameter { name: "name"; type: "string" }
55+ }
56+ }
57+}
tests/mocks/Unity/Application/Application.qmltypes+133−8
@@ -33,15 +33,58 @@ Module {
33 exportMetaObjectRevisions: [0]
33 exportMetaObjectRevisions: [0]
34 Property { name: "fullscreen"; type: "bool" }
34 Property { name: "fullscreen"; type: "bool" }
35 Property { name: "stage"; type: "Stage" }
35 Property { name: "stage"; type: "Stage" }
36+ Property { name: "surface"; type: "MirSurfaceItem"; isReadonly: true; isPointer: true }
37+ Property { name: "promptSurfaces"; type: "MirSurfaceItem"; isList: true; isReadonly: true }
36 Property { name: "imageQml"; type: "string" }
38 Property { name: "imageQml"; type: "string" }
37 Property { name: "windowQml"; type: "string" }
39 Property { name: "windowQml"; type: "string" }
40+ Signal {
38− Signal { name: "appIdChanged" }
41+ name: "appIdChanged"
42+ Parameter { type: "string" }
43+ }
44+ Signal {
39− Signal { name: "nameChanged" }
45+ name: "nameChanged"
46+ Parameter { type: "string" }
47+ }
48+ Signal {
40− Signal { name: "commentChanged" }
49+ name: "commentChanged"
50+ Parameter { type: "string" }
51+ }
52+ Signal {
41− Signal { name: "iconChanged" }
53+ name: "iconChanged"
54+ Parameter { type: "QUrl" }
55+ }
56+ Signal {
57+ name: "stageChanged"
58+ Parameter { type: "Stage" }
59+ }
60+ Signal {
42− Signal { name: "stateChanged" }
61+ name: "stateChanged"
62+ Parameter { type: "State" }
63+ }
64+ Signal {
43− Signal { name: "focusedChanged" }
65+ name: "focusedChanged"
66+ Parameter { type: "bool" }
67+ }
68+ Signal {
69+ name: "fullscreenChanged"
70+ Parameter { type: "bool" }
71+ }
72+ Signal {
73+ name: "imageQmlChanged"
74+ Parameter { type: "string" }
75+ }
76+ Signal {
77+ name: "windowQmlChanged"
78+ Parameter { type: "string" }
79+ }
80+ Signal {
44− Signal { name: "screenshotChanged" }
81+ name: "screenshotChanged"
82+ Parameter { type: "QUrl" }
83+ }
84+ Signal {
85+ name: "surfaceChanged"
86+ Parameter { type: "MirSurfaceItem"; isPointer: true }
87+ }
45 }
88 }
46 Component {
89 Component {
47 name: "ApplicationManager"
90 name: "ApplicationManager"
@@ -102,11 +145,11 @@ Module {
102 "ForceMainStage": 1
145 "ForceMainStage": 1
103 }
146 }
104 }
147 }
148+ Property { name: "empty"; type: "bool"; isReadonly: true }
105 Property { name: "sideStageWidth"; type: "int"; isReadonly: true }
149 Property { name: "sideStageWidth"; type: "int"; isReadonly: true }
106 Property { name: "stageHint"; type: "StageHint"; isReadonly: true }
150 Property { name: "stageHint"; type: "StageHint"; isReadonly: true }
107 Property { name: "formFactorHint"; type: "FormFactorHint"; isReadonly: true }
151 Property { name: "formFactorHint"; type: "FormFactorHint"; isReadonly: true }
108 Property { name: "fake"; type: "bool"; isReadonly: true }
152 Property { name: "fake"; type: "bool"; isReadonly: true }
109− Property { name: "rightMargin"; type: "int" }
110 Signal {
153 Signal {
111 name: "focusRequested"
154 name: "focusRequested"
112 Parameter { name: "favoriteApplication"; type: "FavoriteApplication" }
155 Parameter { name: "favoriteApplication"; type: "FavoriteApplication" }
@@ -115,6 +158,10 @@ Module {
115 name: "focusRequested"
158 name: "focusRequested"
116 Parameter { name: "appId"; type: "string" }
159 Parameter { name: "appId"; type: "string" }
117 }
160 }
161+ Signal {
162+ name: "emptyChanged"
163+ Parameter { name: "empty"; type: "bool" }
164+ }
118 Method {
165 Method {
119 name: "get"
166 name: "get"
120 type: "ApplicationInfo*"
167 type: "ApplicationInfo*"
@@ -177,6 +224,84 @@ Module {
177 }
224 }
178 Method { name: "availableApplications"; type: "QStringList" }
225 Method { name: "availableApplications"; type: "QStringList" }
179 }
226 }
227+ Component {
228+ name: "MirSurfaceItem"
229+ defaultProperty: "data"
230+ prototype: "QQuickPaintedItem"
231+ exports: ["Unity.Application/MirSurfaceItem 0.1"]
232+ isCreatable: false
233+ exportMetaObjectRevisions: [0]
234+ Enum {
235+ name: "Type"
236+ values: {
237+ "Normal": 0,
238+ "Utility": 1,
239+ "Dialog": 2,
240+ "Overlay": 3,
241+ "Freestyle": 4,
242+ "Popover": 5,
243+ "InputMethod": 6
244+ }
245+ }
246+ Enum {
247+ name: "State"
248+ values: {
249+ "Unknown": 0,
250+ "Restored": 1,
251+ "Minimized": 2,
252+ "Maximized": 3,
253+ "VertMaximized": 4,
254+ "Fullscreen": 5
255+ }
256+ }
257+ Property { name: "type"; type: "Type"; isReadonly: true }
258+ Property { name: "state"; type: "State"; isReadonly: true }
259+ Property { name: "name"; type: "string"; isReadonly: true }
260+ Property { name: "parentSurface"; type: "MirSurfaceItem"; isReadonly: true; isPointer: true }
261+ Property { name: "childSurfaces"; type: "MirSurfaceItem"; isList: true; isReadonly: true }
262+ Signal {
263+ name: "typeChanged"
264+ Parameter { type: "Type" }
265+ }
266+ Signal {
267+ name: "stateChanged"
268+ Parameter { type: "State" }
269+ }
270+ Signal {
271+ name: "nameChanged"
272+ Parameter { type: "string" }
273+ }
274+ Signal {
275+ name: "parentSurfaceChanged"
276+ Parameter { type: "MirSurfaceItem"; isPointer: true }
277+ }
278+ Signal { name: "removed" }
279+ Signal { name: "inputMethodRequested" }
280+ Signal { name: "inputMethodDismissed" }
281+ Method {
282+ name: "setState"
283+ Parameter { name: "newState"; type: "State" }
284+ }
285+ Method { name: "release" }
286+ }
287+ Component {
288+ name: "SurfaceManager"
289+ prototype: "QObject"
290+ exports: ["Unity.Application/SurfaceManager 0.1"]
291+ isCreatable: false
292+ isSingleton: true
293+ exportMetaObjectRevisions: [0]
294+ Signal { name: "countChanged" }
295+ Signal {
296+ name: "surfaceCreated"
297+ Parameter { name: "surface"; type: "MirSurfaceItem"; isPointer: true }
298+ }
299+ Signal {
300+ name: "surfaceDestroyed"
301+ Parameter { name: "surface"; type: "MirSurfaceItem"; isPointer: true }
302+ }
303+ Method { name: "inputMethodSurface"; type: "MirSurfaceItem*" }
304+ }
180 Component {
305 Component {
181 name: "unity::shell::application::ApplicationInfoInterface"
306 name: "unity::shell::application::ApplicationInfoInterface"
182 prototype: "QObject"
307 prototype: "QObject"
tests/mocks/Unity/DashCommunicator/DashCommunicator.qmltypesnew file+46
@@ -0,0 +1,46 @@
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 Unity.DashCommunicator 0.1 tests/mocks'
8+
9+Module {
10+ Component {
11+ name: "DashCommunicator"
12+ prototype: "QObject"
13+ exports: ["Unity.DashCommunicator/DashCommunicator 0.1"]
14+ exportMetaObjectRevisions: [0]
15+ Signal {
16+ name: "setCurrentScopeCalled"
17+ Parameter { name: "scopeId"; type: "string" }
18+ Parameter { name: "animate"; type: "bool" }
19+ Parameter { name: "reset"; type: "bool" }
20+ }
21+ Method {
22+ name: "setCurrentScope"
23+ Parameter { name: "scopeId"; type: "string" }
24+ Parameter { name: "animate"; type: "bool" }
25+ Parameter { name: "reset"; type: "bool" }
26+ }
27+ }
28+ Component {
29+ name: "DashCommunicatorService"
30+ prototype: "QObject"
31+ exports: ["Unity.DashCommunicator/DashCommunicatorService 0.1"]
32+ exportMetaObjectRevisions: [0]
33+ Signal {
34+ name: "setCurrentScopeRequested"
35+ Parameter { name: "scopeId"; type: "string" }
36+ Parameter { name: "animate"; type: "bool" }
37+ Parameter { name: "reset"; type: "bool" }
38+ }
39+ Method {
40+ name: "mockSetCurrentScope"
41+ Parameter { name: "scopeId"; type: "string" }
42+ Parameter { name: "animate"; type: "bool" }
43+ Parameter { name: "reset"; type: "bool" }
44+ }
45+ }
46+}