on xenial help sign in
Update .qmltypes files.
commit4909579b7daf6fc8f04bb3a154eae2dbd1da4e49 authorMichał Sawicz <michal.sawicz@canonical.com> dateThu 14 Aug 2014, 03:28 (12 years ago) parent75875f6
9 files changed+184−8
plugins/AccountsService/AccountsService.qmltypes+8 plugins/Dash/Dash.qmltypes+1 plugins/LightDM/LightDM.qmltypes+7 plugins/Unity/Session/Session.qmltypes+12 plugins/Utils/Utils.qmltypes+7 tests/mocks/AccountsService/AccountsService.qmltypes+8 tests/mocks/LightDM/LightDM.qmltypes+7 tests/mocks/QMenuModel/QMenuModel.qmltypes+1 tests/mocks/Unity/Application/Application.qmltypes+133−8
plugins/AccountsService/AccountsService.qmltypes+8
@@ -14,9 +14,17 @@ Module {
1414 isCreatable: false
1515 isSingleton: true
1616 exportMetaObjectRevisions: [0]
17+ Enum {
18+ name: "PasswordDisplayHint"
19+ values: {
20+ "Keyboard": 0,
21+ "Numeric": 1
22+ }
23+ }
1724 Property { name: "user"; type: "string" }
1825 Property { name: "demoEdges"; type: "bool" }
1926 Property { name: "backgroundFile"; type: "string"; isReadonly: true }
2027 Property { name: "statsWelcomeScreen"; type: "bool"; isReadonly: true }
28+ Property { name: "passwordDisplayHint"; type: "PasswordDisplayHint"; isReadonly: true }
2129 }
2230}
plugins/Dash/Dash.qmltypes+1
@@ -39,6 +39,7 @@ Module {
3939 Property { name: "sectionProperty"; type: "string" }
4040 Property { name: "forceNoClip"; type: "bool" }
4141 Property { name: "stickyHeaderHeight"; type: "int"; isReadonly: true }
42+ Property { name: "headerItemShownHeight"; type: "double"; isReadonly: true }
4243 Signal { name: "headerChanged" }
4344 Method { name: "positionAtBeginning" }
4445 Method { name: "showHeader" }
plugins/LightDM/LightDM.qmltypes+7
@@ -14,6 +14,7 @@ Module {
1414 isCreatable: false
1515 isSingleton: true
1616 exportMetaObjectRevisions: [0]
17+ Property { name: "active"; type: "bool" }
1718 Property { name: "authenticated"; type: "bool"; isReadonly: true }
1819 Property { name: "authenticationUser"; type: "string"; isReadonly: true }
1920 Property { name: "promptless"; type: "bool"; isReadonly: true }
@@ -32,6 +33,8 @@ Module {
3233 name: "authenticationUserChanged"
3334 Parameter { name: "user"; type: "string" }
3435 }
36+ Signal { name: "isActiveChanged" }
37+ Signal { name: "showGreeter" }
3538 Signal {
3639 name: "requestAuthenticationUser"
3740 Parameter { name: "user"; type: "string" }
@@ -51,6 +54,10 @@ Module {
5154 Parameter { name: "session"; type: "string" }
5255 }
5356 Method { name: "startSessionSync"; type: "bool" }
57+ Method {
58+ name: "setIsActive"
59+ Parameter { name: "isActive"; type: "bool" }
60+ }
5461 }
5562 Component {
5663 name: "QAbstractProxyModel"
plugins/Unity/Session/Session.qmltypes+12
@@ -18,8 +18,20 @@ Module {
1818 name: "logoutRequested"
1919 Parameter { name: "have_inhibitors"; type: "bool" }
2020 }
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+ }
2129 Signal { name: "logoutReady" }
2230 Method { name: "Logout" }
31+ Method { name: "Reboot" }
32+ Method { name: "Shutdown" }
2333 Method { name: "RequestLogout" }
34+ Method { name: "RequestReboot" }
35+ Method { name: "RequestShutdown" }
2436 }
2537}
plugins/Utils/Utils.qmltypes+7
@@ -140,4 +140,11 @@ Module {
140140 Property { name: "actionsHint"; type: "QByteArray" }
141141 Property { name: "menuObjectPathHint"; type: "QByteArray" }
142142 }
143+ Component {
144+ name: "WindowKeysFilter"
145+ defaultProperty: "data"
146+ prototype: "QQuickItem"
147+ exports: ["Utils/WindowKeysFilter 0.1"]
148+ exportMetaObjectRevisions: [0]
149+ }
143150}
tests/mocks/AccountsService/AccountsService.qmltypes+8
@@ -14,9 +14,17 @@ Module {
1414 isCreatable: false
1515 isSingleton: true
1616 exportMetaObjectRevisions: [0]
17+ Enum {
18+ name: "PasswordDisplayHint"
19+ values: {
20+ "Keyboard": 0,
21+ "Numeric": 1
22+ }
23+ }
1724 Property { name: "user"; type: "string" }
1825 Property { name: "demoEdges"; type: "bool" }
1926 Property { name: "backgroundFile"; type: "string" }
2027 Property { name: "statsWelcomeScreen"; type: "bool" }
28+ Property { name: "passwordDisplayHint"; type: "PasswordDisplayHint"; isReadonly: true }
2129 }
2230}
tests/mocks/LightDM/LightDM.qmltypes+7
@@ -14,6 +14,7 @@ Module {
1414 isCreatable: false
1515 isSingleton: true
1616 exportMetaObjectRevisions: [0]
17+ Property { name: "active"; type: "bool" }
1718 Property { name: "authenticated"; type: "bool"; isReadonly: true }
1819 Property { name: "authenticationUser"; type: "string"; isReadonly: true }
1920 Property { name: "promptless"; type: "bool"; isReadonly: true }
@@ -32,6 +33,8 @@ Module {
3233 name: "authenticationUserChanged"
3334 Parameter { name: "user"; type: "string" }
3435 }
36+ Signal { name: "isActiveChanged" }
37+ Signal { name: "showGreeter" }
3538 Signal {
3639 name: "requestAuthenticationUser"
3740 Parameter { name: "user"; type: "string" }
@@ -51,6 +54,10 @@ Module {
5154 Parameter { name: "session"; type: "string" }
5255 }
5356 Method { name: "startSessionSync"; type: "bool" }
57+ Method {
58+ name: "setIsActive"
59+ Parameter { name: "isActive"; type: "bool" }
60+ }
5461 }
5562 Component {
5663 name: "QAbstractProxyModel"
tests/mocks/QMenuModel/QMenuModel.qmltypes+1
@@ -23,6 +23,7 @@ Module {
2323 Property { name: "actions"; type: "QVariantMap" }
2424 Property { name: "menuObjectPath"; type: "QByteArray" }
2525 Property { name: "actionStateParser"; type: "ActionStateParser"; isPointer: true }
26+ Property { name: "nameOwner"; type: "string"; isReadonly: true }
2627 Method {
2728 name: "insertRow"
2829 Parameter { name: "row"; type: "int" }
tests/mocks/Unity/Application/Application.qmltypes+133−8
@@ -33,15 +33,58 @@ Module {
3333 exportMetaObjectRevisions: [0]
3434 Property { name: "fullscreen"; type: "bool" }
3535 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 }
3638 Property { name: "imageQml"; type: "string" }
3739 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" }
40+ Signal {
41+ name: "appIdChanged"
42+ Parameter { type: "string" }
43+ }
44+ Signal {
45+ name: "nameChanged"
46+ Parameter { type: "string" }
47+ }
48+ Signal {
49+ name: "commentChanged"
50+ Parameter { type: "string" }
51+ }
52+ Signal {
53+ name: "iconChanged"
54+ Parameter { type: "QUrl" }
55+ }
56+ Signal {
57+ name: "stageChanged"
58+ Parameter { type: "Stage" }
59+ }
60+ Signal {
61+ name: "stateChanged"
62+ Parameter { type: "State" }
63+ }
64+ Signal {
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 {
81+ name: "screenshotChanged"
82+ Parameter { type: "QUrl" }
83+ }
84+ Signal {
85+ name: "surfaceChanged"
86+ Parameter { type: "MirSurfaceItem"; isPointer: true }
87+ }
4588 }
4689 Component {
4790 name: "ApplicationManager"
@@ -102,11 +145,11 @@ Module {
102145 "ForceMainStage": 1
103146 }
104147 }
148+ Property { name: "empty"; type: "bool"; isReadonly: true }
105149 Property { name: "sideStageWidth"; type: "int"; isReadonly: true }
106150 Property { name: "stageHint"; type: "StageHint"; isReadonly: true }
107151 Property { name: "formFactorHint"; type: "FormFactorHint"; isReadonly: true }
108152 Property { name: "fake"; type: "bool"; isReadonly: true }
109− Property { name: "rightMargin"; type: "int" }
110153 Signal {
111154 name: "focusRequested"
112155 Parameter { name: "favoriteApplication"; type: "FavoriteApplication" }
@@ -115,6 +158,10 @@ Module {
115158 name: "focusRequested"
116159 Parameter { name: "appId"; type: "string" }
117160 }
161+ Signal {
162+ name: "emptyChanged"
163+ Parameter { name: "empty"; type: "bool" }
164+ }
118165 Method {
119166 name: "get"
120167 type: "ApplicationInfo*"
@@ -177,6 +224,84 @@ Module {
177224 }
178225 Method { name: "availableApplications"; type: "QStringList" }
179226 }
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+ }
180305 Component {
181306 name: "unity::shell::application::ApplicationInfoInterface"
182307 prototype: "QObject"