Merge lp:~dandrader/unity-api/removeApplicationStage into lp:unity-api
- removeApplicationStage
- Merge into trunk
Status: | Merged |
---|---|
Approved by: | Michael Zanetti |
Approved revision: | no longer in the source branch. |
Merged at revision: | 246 |
Proposed branch: | lp:~dandrader/unity-api/removeApplicationStage |
Merge into: | lp:unity-api |
Diff against target: |
185 lines (+9/-38) 8 files modified
debian/changelog (+7/-0) include/unity/shell/application/ApplicationInfoInterface.h (+0/-10) include/unity/shell/application/ApplicationManagerInterface.h (+0/-2) include/unity/shell/application/CMakeLists.txt (+1/-1) test/qmltest/mocks/plugins/Unity/Application/Mocks/MockApplicationInfo.cpp (+1/-16) test/qmltest/mocks/plugins/Unity/Application/Mocks/MockApplicationInfo.h (+0/-4) test/qmltest/mocks/plugins/Unity/Application/Mocks/MockApplicationManager.cpp (+0/-2) test/qmltest/unity/shell/application/tst_Application.qml (+0/-3) |
To merge this branch: | bzr merge lp:~dandrader/unity-api/removeApplicationStage |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Michael Zanetti (community) | Approve | ||
Unity8 CI Bot | continuous-integration | Approve | |
Review via email: mp+297764@code.launchpad.net |
Commit message
Remove ApplicationInfo
And remove "stage" role from ApplicationMana
Description of the change
Unity8 CI Bot (unity8-ci-bot) wrote : | # |
Michael Zanetti (mzanetti) wrote : | # |
+1 in general, but:
* There's a "Stage" enum in ApplicationInfo
* You forgot to update test/qmltest/
Daniel d'Andrada (dandrader) wrote : | # |
On 20/06/2016 08:43, Michael Zanetti wrote:
> * There's a "Stage" enum in ApplicationInfo
That enum is still used in the code. We could move it to Mir.h...
Michael Zanetti (mzanetti) wrote : | # |
> On 20/06/2016 08:43, Michael Zanetti wrote:
> > * There's a "Stage" enum in ApplicationInfo
> too?
>
> That enum is still used in the code. We could move it to Mir.h...
ok then. I don't require you to do that in this merge. Just clean up the failing tests and we're good.
- 239. By CI Train Bot Account
-
MirSurfaceInter
face: add inputBounds property - 240. By CI Train Bot Account
-
Releasing 7.116+16.
10.20160620- 0ubuntu1
Daniel d'Andrada (dandrader) wrote : | # |
On 20/06/2016 08:43, Michael Zanetti wrote:
> * You forgot to update test/qmltest/
Done.
Daniel d'Andrada (dandrader) wrote : | # |
On 20/06/2016 11:12, Michael Zanetti wrote:
>> On 20/06/2016 08:43, Michael Zanetti wrote:
>>> * There's a "Stage" enum in ApplicationInfo
>> too?
>>
>> That enum is still used in the code. We could move it to Mir.h...
> ok then. I don't require you to do that in this merge. Just clean up the failing tests and we're good.
Actually it doesn't belong to Mir.h as "stage" is a unity8 concept.
Tried removing it but in unity8 there's both qml and cpp code refering
to it. Also from multiple qml files. So having it in
ApplicationInfo
would have to add it to another header file in unity8. Or maybe turn it
into a "bool sideStage" property. Yeah, that sideStage boolean would
solve it. But then it would be an API change in unity8, making it a more
complex branch tha also modifies code instead of simply removing unused
stuff.
Fixed the qml test.
Unity8 CI Bot (unity8-ci-bot) wrote : | # |
PASSED: Continuous integration, rev:239
https:/
Executed test runs:
SUCCESS: https:/
SUCCESS: https:/
SUCCESS: https:/
SUCCESS: https:/
SUCCESS: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
Click here to trigger a rebuild:
https:/
- 241. By Daniel d'Andrada
-
Remove ApplicationInfo
Interface. stage property And remove "stage" role from ApplicationMana
gerInterface accordingly - 242. By Daniel d'Andrada
-
Update tests
Preview Diff
1 | === modified file 'debian/changelog' | |||
2 | --- debian/changelog 2016-06-20 14:39:15 +0000 | |||
3 | +++ debian/changelog 2016-07-25 18:44:12 +0000 | |||
4 | @@ -1,3 +1,10 @@ | |||
5 | 1 | unity-api (7.117) UNRELEASED; urgency=medium | ||
6 | 2 | |||
7 | 3 | * ApplicationInfoInterface: remove "stage" property | ||
8 | 4 | * ApplicationManagerInterface: remove "stage" role | ||
9 | 5 | |||
10 | 6 | -- Daniel d'Andrada <daniel.dandrada@canonical.com> Mon, 25 Jul 2016 10:55:56 -0300 | ||
11 | 7 | |||
12 | 1 | unity-api (7.116+16.10.20160620-0ubuntu1) yakkety; urgency=medium | 8 | unity-api (7.116+16.10.20160620-0ubuntu1) yakkety; urgency=medium |
13 | 2 | 9 | ||
14 | 3 | * MirSurfaceInterface: add inputBounds property | 10 | * MirSurfaceInterface: add inputBounds property |
15 | 4 | 11 | ||
16 | === modified file 'include/unity/shell/application/ApplicationInfoInterface.h' | |||
17 | --- include/unity/shell/application/ApplicationInfoInterface.h 2016-05-19 10:17:07 +0000 | |||
18 | +++ include/unity/shell/application/ApplicationInfoInterface.h 2016-07-25 18:44:12 +0000 | |||
19 | @@ -79,13 +79,6 @@ | |||
20 | 79 | Q_PROPERTY(QUrl icon READ icon NOTIFY iconChanged) | 79 | Q_PROPERTY(QUrl icon READ icon NOTIFY iconChanged) |
21 | 80 | 80 | ||
22 | 81 | /** | 81 | /** |
23 | 82 | * @brief The application's stage. | ||
24 | 83 | * | ||
25 | 84 | * Holds the stage where this application is currently located. | ||
26 | 85 | */ | ||
27 | 86 | Q_PROPERTY(Stage stage READ stage WRITE setStage NOTIFY stageChanged) | ||
28 | 87 | |||
29 | 88 | /** | ||
30 | 89 | * @brief The application's state. | 82 | * @brief The application's state. |
31 | 90 | * | 83 | * |
32 | 91 | * Holds the current application state. | 84 | * Holds the current application state. |
33 | @@ -296,8 +289,6 @@ | |||
34 | 296 | virtual QString name() const = 0; | 289 | virtual QString name() const = 0; |
35 | 297 | virtual QString comment() const = 0; | 290 | virtual QString comment() const = 0; |
36 | 298 | virtual QUrl icon() const = 0; | 291 | virtual QUrl icon() const = 0; |
37 | 299 | virtual Stage stage() const = 0; | ||
38 | 300 | virtual void setStage(Stage) = 0; | ||
39 | 301 | virtual State state() const = 0; | 292 | virtual State state() const = 0; |
40 | 302 | virtual RequestedState requestedState() const = 0; | 293 | virtual RequestedState requestedState() const = 0; |
41 | 303 | virtual void setRequestedState(RequestedState) = 0; | 294 | virtual void setRequestedState(RequestedState) = 0; |
42 | @@ -325,7 +316,6 @@ | |||
43 | 325 | void nameChanged(const QString &name); | 316 | void nameChanged(const QString &name); |
44 | 326 | void commentChanged(const QString &comment); | 317 | void commentChanged(const QString &comment); |
45 | 327 | void iconChanged(const QUrl &icon); | 318 | void iconChanged(const QUrl &icon); |
46 | 328 | void stageChanged(Stage stage); | ||
47 | 329 | void stateChanged(State state); | 319 | void stateChanged(State state); |
48 | 330 | void requestedStateChanged(RequestedState value); | 320 | void requestedStateChanged(RequestedState value); |
49 | 331 | void focusedChanged(bool focused); | 321 | void focusedChanged(bool focused); |
50 | 332 | 322 | ||
51 | === modified file 'include/unity/shell/application/ApplicationManagerInterface.h' | |||
52 | --- include/unity/shell/application/ApplicationManagerInterface.h 2016-05-13 09:35:14 +0000 | |||
53 | +++ include/unity/shell/application/ApplicationManagerInterface.h 2016-07-25 18:44:12 +0000 | |||
54 | @@ -67,7 +67,6 @@ | |||
55 | 67 | m_roleNames.insert(RoleName, "name"); | 67 | m_roleNames.insert(RoleName, "name"); |
56 | 68 | m_roleNames.insert(RoleComment, "comment"); | 68 | m_roleNames.insert(RoleComment, "comment"); |
57 | 69 | m_roleNames.insert(RoleIcon, "icon"); | 69 | m_roleNames.insert(RoleIcon, "icon"); |
58 | 70 | m_roleNames.insert(RoleStage, "stage"); | ||
59 | 71 | m_roleNames.insert(RoleState, "state"); | 70 | m_roleNames.insert(RoleState, "state"); |
60 | 72 | m_roleNames.insert(RoleFocused, "focused"); | 71 | m_roleNames.insert(RoleFocused, "focused"); |
61 | 73 | m_roleNames.insert(RoleIsTouchApp, "isTouchApp"); | 72 | m_roleNames.insert(RoleIsTouchApp, "isTouchApp"); |
62 | @@ -92,7 +91,6 @@ | |||
63 | 92 | RoleName, | 91 | RoleName, |
64 | 93 | RoleComment, | 92 | RoleComment, |
65 | 94 | RoleIcon, | 93 | RoleIcon, |
66 | 95 | RoleStage, | ||
67 | 96 | RoleState, | 94 | RoleState, |
68 | 97 | RoleFocused, | 95 | RoleFocused, |
69 | 98 | RoleIsTouchApp, | 96 | RoleIsTouchApp, |
70 | 99 | 97 | ||
71 | === modified file 'include/unity/shell/application/CMakeLists.txt' | |||
72 | --- include/unity/shell/application/CMakeLists.txt 2016-06-20 14:06:02 +0000 | |||
73 | +++ include/unity/shell/application/CMakeLists.txt 2016-07-25 18:44:12 +0000 | |||
74 | @@ -7,7 +7,7 @@ | |||
75 | 7 | 7 | ||
76 | 8 | set(UNITY_API_LIB_HDRS ${UNITY_API_LIB_HDRS} ${headers} ${internal_headers} PARENT_SCOPE) | 8 | set(UNITY_API_LIB_HDRS ${UNITY_API_LIB_HDRS} ${headers} ${internal_headers} PARENT_SCOPE) |
77 | 9 | 9 | ||
79 | 10 | set(VERSION 19) | 10 | set(VERSION 20) |
80 | 11 | set(PKGCONFIG_NAME "unity-shell-application") | 11 | set(PKGCONFIG_NAME "unity-shell-application") |
81 | 12 | set(PKGCONFIG_DESCRIPTION "Unity shell Application APIs") | 12 | set(PKGCONFIG_DESCRIPTION "Unity shell Application APIs") |
82 | 13 | set(PKGCONFIG_REQUIRES "Qt5Core") | 13 | set(PKGCONFIG_REQUIRES "Qt5Core") |
83 | 14 | 14 | ||
84 | === modified file 'test/qmltest/mocks/plugins/Unity/Application/Mocks/MockApplicationInfo.cpp' | |||
85 | --- test/qmltest/mocks/plugins/Unity/Application/Mocks/MockApplicationInfo.cpp 2016-05-18 13:35:36 +0000 | |||
86 | +++ test/qmltest/mocks/plugins/Unity/Application/Mocks/MockApplicationInfo.cpp 2016-07-25 18:44:12 +0000 | |||
87 | @@ -1,5 +1,5 @@ | |||
88 | 1 | /* | 1 | /* |
90 | 2 | * Copyright 2013 Canonical Ltd. | 2 | * Copyright 2013,2016 Canonical Ltd. |
91 | 3 | * | 3 | * |
92 | 4 | * This program is free software; you can redistribute it and/or modify | 4 | * This program is free software; you can redistribute it and/or modify |
93 | 5 | * it under the terms of the GNU Lesser General Public License as published by | 5 | * it under the terms of the GNU Lesser General Public License as published by |
94 | @@ -27,7 +27,6 @@ | |||
95 | 27 | m_name(name), | 27 | m_name(name), |
96 | 28 | m_comment(comment), | 28 | m_comment(comment), |
97 | 29 | m_icon(icon), | 29 | m_icon(icon), |
98 | 30 | m_stage(MainStage), | ||
99 | 31 | m_state(Running), | 30 | m_state(Running), |
100 | 32 | m_focused(false), | 31 | m_focused(false), |
101 | 33 | m_exemptFromLifecycle(false) | 32 | m_exemptFromLifecycle(false) |
102 | @@ -55,20 +54,6 @@ | |||
103 | 55 | return m_icon; | 54 | return m_icon; |
104 | 56 | } | 55 | } |
105 | 57 | 56 | ||
106 | 58 | ApplicationInfoInterface::Stage MockApplicationInfo::stage() const | ||
107 | 59 | { | ||
108 | 60 | return m_stage; | ||
109 | 61 | } | ||
110 | 62 | |||
111 | 63 | void MockApplicationInfo::setStage(ApplicationInfoInterface::Stage stage) | ||
112 | 64 | { | ||
113 | 65 | if (m_stage != stage) | ||
114 | 66 | { | ||
115 | 67 | m_stage = stage; | ||
116 | 68 | Q_EMIT stageChanged(m_stage); | ||
117 | 69 | } | ||
118 | 70 | } | ||
119 | 71 | |||
120 | 72 | ApplicationInfoInterface::State MockApplicationInfo::state() const | 57 | ApplicationInfoInterface::State MockApplicationInfo::state() const |
121 | 73 | { | 58 | { |
122 | 74 | return m_state; | 59 | return m_state; |
123 | 75 | 60 | ||
124 | === modified file 'test/qmltest/mocks/plugins/Unity/Application/Mocks/MockApplicationInfo.h' | |||
125 | --- test/qmltest/mocks/plugins/Unity/Application/Mocks/MockApplicationInfo.h 2016-05-19 10:17:07 +0000 | |||
126 | +++ test/qmltest/mocks/plugins/Unity/Application/Mocks/MockApplicationInfo.h 2016-07-25 18:44:12 +0000 | |||
127 | @@ -34,9 +34,6 @@ | |||
128 | 34 | QString comment() const; | 34 | QString comment() const; |
129 | 35 | QUrl icon() const; | 35 | QUrl icon() const; |
130 | 36 | 36 | ||
131 | 37 | ApplicationInfoInterface::Stage stage() const; | ||
132 | 38 | void setStage(ApplicationInfoInterface::Stage stage); | ||
133 | 39 | |||
134 | 40 | ApplicationInfoInterface::State state() const; | 37 | ApplicationInfoInterface::State state() const; |
135 | 41 | void setState(ApplicationInfoInterface::State state); | 38 | void setState(ApplicationInfoInterface::State state); |
136 | 42 | 39 | ||
137 | @@ -71,7 +68,6 @@ | |||
138 | 71 | QString m_name; | 68 | QString m_name; |
139 | 72 | QString m_comment; | 69 | QString m_comment; |
140 | 73 | QUrl m_icon; | 70 | QUrl m_icon; |
141 | 74 | ApplicationInfoInterface::Stage m_stage; | ||
142 | 75 | ApplicationInfoInterface::State m_state; | 71 | ApplicationInfoInterface::State m_state; |
143 | 76 | bool m_focused; | 72 | bool m_focused; |
144 | 77 | bool m_exemptFromLifecycle; | 73 | bool m_exemptFromLifecycle; |
145 | 78 | 74 | ||
146 | === modified file 'test/qmltest/mocks/plugins/Unity/Application/Mocks/MockApplicationManager.cpp' | |||
147 | --- test/qmltest/mocks/plugins/Unity/Application/Mocks/MockApplicationManager.cpp 2015-12-03 17:07:15 +0000 | |||
148 | +++ test/qmltest/mocks/plugins/Unity/Application/Mocks/MockApplicationManager.cpp 2016-07-25 18:44:12 +0000 | |||
149 | @@ -60,8 +60,6 @@ | |||
150 | 60 | return item->comment(); | 60 | return item->comment(); |
151 | 61 | case RoleIcon: | 61 | case RoleIcon: |
152 | 62 | return item->icon(); | 62 | return item->icon(); |
153 | 63 | case RoleStage: | ||
154 | 64 | return item->stage(); | ||
155 | 65 | case RoleState: | 63 | case RoleState: |
156 | 66 | return item->state(); | 64 | return item->state(); |
157 | 67 | case RoleFocused: | 65 | case RoleFocused: |
158 | 68 | 66 | ||
159 | === modified file 'test/qmltest/unity/shell/application/tst_Application.qml' | |||
160 | --- test/qmltest/unity/shell/application/tst_Application.qml 2015-12-03 17:07:15 +0000 | |||
161 | +++ test/qmltest/unity/shell/application/tst_Application.qml 2016-07-25 18:44:12 +0000 | |||
162 | @@ -66,7 +66,6 @@ | |||
163 | 66 | { enum: "RoleName" }, | 66 | { enum: "RoleName" }, |
164 | 67 | { enum: "RoleComment" }, | 67 | { enum: "RoleComment" }, |
165 | 68 | { enum: "RoleIcon" }, | 68 | { enum: "RoleIcon" }, |
166 | 69 | { enum: "RoleStage" }, | ||
167 | 70 | { enum: "RoleState" }, | 69 | { enum: "RoleState" }, |
168 | 71 | { enum: "RoleFocused" }, | 70 | { enum: "RoleFocused" }, |
169 | 72 | { enum: "RoleIsTouchApp" }, | 71 | { enum: "RoleIsTouchApp" }, |
170 | @@ -87,7 +86,6 @@ | |||
171 | 87 | { tag: "ApplicationManager.roles[name]", role: "name", type: "string" }, | 86 | { tag: "ApplicationManager.roles[name]", role: "name", type: "string" }, |
172 | 88 | { tag: "ApplicationManager.roles[comment]", role: "comment", type: "string" }, | 87 | { tag: "ApplicationManager.roles[comment]", role: "comment", type: "string" }, |
173 | 89 | { tag: "ApplicationManager.roles[icon]", role: "icon", type: "object" }, | 88 | { tag: "ApplicationManager.roles[icon]", role: "icon", type: "object" }, |
174 | 90 | { tag: "ApplicationManager.roles[stage]", role: "stage", type: "number" }, | ||
175 | 91 | { tag: "ApplicationManager.roles[state]", role: "state", type: "number" }, | 89 | { tag: "ApplicationManager.roles[state]", role: "state", type: "number" }, |
176 | 92 | { tag: "ApplicationManager.roles[focused]", role: "focused", type: "boolean" }, | 90 | { tag: "ApplicationManager.roles[focused]", role: "focused", type: "boolean" }, |
177 | 93 | { tag: "ApplicationManager.roles[isTouchApp]", role: "isTouchApp", type: "boolean" }, | 91 | { tag: "ApplicationManager.roles[isTouchApp]", role: "isTouchApp", type: "boolean" }, |
178 | @@ -143,7 +141,6 @@ | |||
179 | 143 | { tag: "ApplicationInfo.properties[name]", property: "name", type: "string" }, | 141 | { tag: "ApplicationInfo.properties[name]", property: "name", type: "string" }, |
180 | 144 | { tag: "ApplicationInfo.properties[comment]", property: "comment", type: "string" }, | 142 | { tag: "ApplicationInfo.properties[comment]", property: "comment", type: "string" }, |
181 | 145 | { tag: "ApplicationInfo.properties[icon]", property: "icon", type: "object" }, | 143 | { tag: "ApplicationInfo.properties[icon]", property: "icon", type: "object" }, |
182 | 146 | { tag: "ApplicationInfo.properties[stage]", property: "stage", type: "number" }, | ||
183 | 147 | { tag: "ApplicationInfo.properties[state]", property: "state", type: "number" }, | 144 | { tag: "ApplicationInfo.properties[state]", property: "state", type: "number" }, |
184 | 148 | { tag: "ApplicationInfo.properties[requestedState]", property: "requestedState", type: "number" }, | 145 | { tag: "ApplicationInfo.properties[requestedState]", property: "requestedState", type: "number" }, |
185 | 149 | { tag: "ApplicationInfo.properties[focused]", property: "focused", type: "boolean" }, | 146 | { tag: "ApplicationInfo.properties[focused]", property: "focused", type: "boolean" }, |
FAILED: Continuous integration, rev:236 /unity8- jenkins. ubuntu. com/job/ lp-unity- api-ci/ 89/ /unity8- jenkins. ubuntu. com/job/ build/2009/ console /unity8- jenkins. ubuntu. com/job/ build-0- fetch/2037 /unity8- jenkins. ubuntu. com/job/ build-1- sourcepkg/ release= vivid+overlay/ 1954 /unity8- jenkins. ubuntu. com/job/ build-1- sourcepkg/ release= xenial+ overlay/ 1954 /unity8- jenkins. ubuntu. com/job/ build-1- sourcepkg/ release= yakkety/ 1954 /unity8- jenkins. ubuntu. com/job/ build-2- binpkg/ arch=amd64, release= vivid+overlay/ 1945/console /unity8- jenkins. ubuntu. com/job/ build-2- binpkg/ arch=amd64, release= xenial+ overlay/ 1945/console /unity8- jenkins. ubuntu. com/job/ build-2- binpkg/ arch=amd64, release= yakkety/ 1945/console /unity8- jenkins. ubuntu. com/job/ build-2- binpkg/ arch=armhf, release= vivid+overlay/ 1945/console /unity8- jenkins. ubuntu. com/job/ build-2- binpkg/ arch=armhf, release= xenial+ overlay/ 1945/console /unity8- jenkins. ubuntu. com/job/ build-2- binpkg/ arch=armhf, release= yakkety/ 1945/console /unity8- jenkins. ubuntu. com/job/ build-2- binpkg/ arch=i386, release= vivid+overlay/ 1945/console /unity8- jenkins. ubuntu. com/job/ build-2- binpkg/ arch=i386, release= xenial+ overlay/ 1945/console /unity8- jenkins. ubuntu. com/job/ build-2- binpkg/ arch=i386, release= yakkety/ 1945/console
https:/
Executed test runs:
FAILURE: https:/
SUCCESS: https:/
SUCCESS: https:/
SUCCESS: https:/
SUCCESS: https:/
FAILURE: https:/
FAILURE: https:/
FAILURE: https:/
FAILURE: https:/
FAILURE: https:/
FAILURE: https:/
FAILURE: https:/
FAILURE: https:/
FAILURE: https:/
Click here to trigger a rebuild: /unity8- jenkins. ubuntu. com/job/ lp-unity- api-ci/ 89/rebuild
https:/