Merge lp:~mzanetti/unity-api/launcher-drop-setAlerting into lp:unity-api

Proposed by Michael Zanetti
Status: Merged
Approved by: Marcus Tomlinson
Approved revision: 237
Merged at revision: 237
Proposed branch: lp:~mzanetti/unity-api/launcher-drop-setAlerting
Merge into: lp:unity-api
Prerequisite: lp:~mzanetti/unity-api/surfaceCount-property
Diff against target: 117 lines (+7/-26)
8 files modified
debian/changelog (+6/-0)
include/unity/shell/launcher/CMakeLists.txt (+1/-1)
include/unity/shell/launcher/LauncherModelInterface.h (+0/-8)
test/qmltest/mocks/plugins/Unity/Launcher/Mocks/MockLauncherItem.cpp (+0/-9)
test/qmltest/mocks/plugins/Unity/Launcher/Mocks/MockLauncherItem.h (+0/-1)
test/qmltest/mocks/plugins/Unity/Launcher/Mocks/MockLauncherModel.cpp (+0/-5)
test/qmltest/mocks/plugins/Unity/Launcher/Mocks/MockLauncherModel.h (+0/-1)
test/qmltest/unity/shell/launcher/tst_Launcher.qml (+0/-1)
To merge this branch: bzr merge lp:~mzanetti/unity-api/launcher-drop-setAlerting
Reviewer Review Type Date Requested Status
Unity8 CI Bot continuous-integration Approve
Marcus Tomlinson (community) Approve
Review via email: mp+294628@code.launchpad.net

Commit message

Drop LauncherModel::setAlerting, that's not needed

To post a comment you must log in.
Revision history for this message
Unity8 CI Bot (unity8-ci-bot) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
Marcus Tomlinson (marcustomlinson) wrote :

Don't forget to clean up the setAlerting() overrides in all child classes:

in unity-api:
    1) ./test/qmltest/mocks/plugins/Unity/Launcher/Mocks/MockLauncherModel.h

in unity8:
    1) ./plugins/Greeter/Unity/Launcher/launchermodelas.h

    2) ./plugins/Unity/Launcher/launchermodel.h

    3) ./tests/mocks/Unity/Launcher/MockLauncherModel.h

review: Needs Fixing
Revision history for this message
Michael Zanetti (mzanetti) wrote :

> Don't forget to clean up the setAlerting() overrides in all child classes:
>
> in unity-api:
> 1) ./test/qmltest/mocks/plugins/Unity/Launcher/Mocks/MockLauncherModel.h
>
> in unity8:
> 1) ./plugins/Greeter/Unity/Launcher/launchermodelas.h
>
> 2) ./plugins/Unity/Launcher/launchermodel.h
>
> 3) ./tests/mocks/Unity/Launcher/MockLauncherModel.h

done. thanks

Revision history for this message
Unity8 CI Bot (unity8-ci-bot) wrote :

PASSED: Continuous integration, rev:238
https://unity8-jenkins.ubuntu.com/job/lp-unity-api-ci/80/
Executed test runs:
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-0-fetch/1662
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-1-sourcepkg/release=vivid+overlay/1613
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-1-sourcepkg/release=xenial+overlay/1613
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=vivid+overlay/1606
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=vivid+overlay/1606/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=xenial+overlay/1606
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=xenial+overlay/1606/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=vivid+overlay/1606
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=vivid+overlay/1606/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=xenial+overlay/1606
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=xenial+overlay/1606/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=vivid+overlay/1606
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=vivid+overlay/1606/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=xenial+overlay/1606
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=xenial+overlay/1606/artifact/output/*zip*/output.zip

Click here to trigger a rebuild:
https://unity8-jenkins.ubuntu.com/job/lp-unity-api-ci/80/rebuild

review: Approve (continuous-integration)
Revision history for this message
Marcus Tomlinson (marcustomlinson) wrote :

Kinda weird that you moved the actual "Drop Launchermodel::setAlerting, it's not needed" commit (rev236) to the prereq branch.

Could you reverse cherry pick this from surfaceCount-property so that each MP's diff is correct.

review: Needs Fixing
Revision history for this message
Unity8 CI Bot (unity8-ci-bot) wrote :
review: Needs Fixing (continuous-integration)
236. By Michael Zanetti

merge prereq

237. By Michael Zanetti

Drop Launchermodel::setAlerting, it's not needed

Revision history for this message
Michael Zanetti (mzanetti) wrote :

> Kinda weird that you moved the actual "Drop Launchermodel::setAlerting, it's
> not needed" commit (rev236) to the prereq branch.
>
> Could you reverse cherry pick this from surfaceCount-property so that each
> MP's diff is correct.

No idea how I managed to do that. Thanks a lot for catching. Should be fixed now.

Revision history for this message
Marcus Tomlinson (marcustomlinson) wrote :

Yep, looks good now :)

review: Approve
238. By Michael Zanetti

merge prereq

239. By Michael Zanetti

merge trunk, bump version

240. By Michael Zanetti

that wasn't needed

241. By Michael Zanetti

bump debian changelog

Revision history for this message
Unity8 CI Bot (unity8-ci-bot) wrote :

PASSED: Continuous integration, rev:238
https://unity8-jenkins.ubuntu.com/job/lp-unity-api-ci/85/
Executed test runs:
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build/1815
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-0-fetch/1841
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-1-sourcepkg/release=vivid+overlay/1782
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-1-sourcepkg/release=xenial+overlay/1782
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-1-sourcepkg/release=yakkety/1782
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=vivid+overlay/1772
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=vivid+overlay/1772/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=xenial+overlay/1772
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=xenial+overlay/1772/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=yakkety/1772
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=yakkety/1772/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=vivid+overlay/1772
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=vivid+overlay/1772/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=xenial+overlay/1772
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=xenial+overlay/1772/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=yakkety/1772
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=yakkety/1772/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=vivid+overlay/1772
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=vivid+overlay/1772/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=xenial+overlay/1772
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=xenial+overlay/1772/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=yakkety/1772
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=yakkety/1772/artifact/output/*zip*/output.zip

Click here to trigger a rebuild:
https://unity8-jenkins.ubuntu.com/job/lp-unity-api-ci/85/rebuild

review: Approve (continuous-integration)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'debian/changelog'
2--- debian/changelog 2016-06-03 11:21:11 +0000
3+++ debian/changelog 2016-06-03 11:21:11 +0000
4@@ -1,3 +1,9 @@
5+unity-api (7.115) UNRELEASED; urgency=medium
6+
7+ * Drop Launchermodel::setAlerting, it's not needed
8+
9+ -- Michael Zanetti <michael.zanetti@canonical.com> Mon, 09 May 2016 18:43:38 +0200
10+
11 unity-api (7.114) UNRELEASED; urgency=medium
12
13 * Add ApplicationInfoInterface::surfaceCount property
14
15=== modified file 'include/unity/shell/launcher/CMakeLists.txt'
16--- include/unity/shell/launcher/CMakeLists.txt 2016-06-03 11:21:11 +0000
17+++ include/unity/shell/launcher/CMakeLists.txt 2016-06-03 11:21:11 +0000
18@@ -7,7 +7,7 @@
19
20 set(UNITY_API_LIB_HDRS ${UNITY_API_LIB_HDRS} ${headers} ${internal_headers} PARENT_SCOPE)
21
22-set(VERSION 8)
23+set(VERSION 9)
24 set(PKGCONFIG_NAME "unity-shell-launcher")
25 set(PKGCONFIG_DESCRIPTION "Unity shell Launcher APIs")
26 set(PKGCONFIG_REQUIRES "Qt5Core")
27
28=== modified file 'include/unity/shell/launcher/LauncherModelInterface.h'
29--- include/unity/shell/launcher/LauncherModelInterface.h 2016-06-03 11:21:11 +0000
30+++ include/unity/shell/launcher/LauncherModelInterface.h 2016-06-03 11:21:11 +0000
31@@ -101,14 +101,6 @@
32 virtual ~LauncherModelInterface() {}
33
34 /**
35- * @brief Set or unset alert-state on launcher item.
36- *
37- * @param appId The appId of the item to affect.
38- * @param alerting The flag to set/unset launcher item's alert state.
39- */
40- Q_INVOKABLE virtual void setAlerting(const QString& appId, bool alerting) = 0;
41-
42- /**
43 * @brief Move an item in the model.
44 *
45 * @param oldIndex The current (old) index of the item to be moved.
46
47=== modified file 'test/qmltest/mocks/plugins/Unity/Launcher/Mocks/MockLauncherItem.cpp'
48--- test/qmltest/mocks/plugins/Unity/Launcher/Mocks/MockLauncherItem.cpp 2016-06-03 11:21:11 +0000
49+++ test/qmltest/mocks/plugins/Unity/Launcher/Mocks/MockLauncherItem.cpp 2016-06-03 11:21:11 +0000
50@@ -164,15 +164,6 @@
51 return m_alerting;
52 }
53
54-void MockLauncherItem::setAlerting(bool alerting)
55-{
56- if (m_alerting != alerting)
57- {
58- m_alerting = alerting;
59- Q_EMIT alertingChanged(alerting);
60- }
61-}
62-
63 int MockLauncherItem::surfaceCount() const
64 {
65 return m_surfaceCount;
66
67=== modified file 'test/qmltest/mocks/plugins/Unity/Launcher/Mocks/MockLauncherItem.h'
68--- test/qmltest/mocks/plugins/Unity/Launcher/Mocks/MockLauncherItem.h 2016-06-03 11:21:11 +0000
69+++ test/qmltest/mocks/plugins/Unity/Launcher/Mocks/MockLauncherItem.h 2016-06-03 11:21:11 +0000
70@@ -57,7 +57,6 @@
71 void setFocused(bool focused);
72
73 bool alerting() const;
74- void setAlerting(bool alerting);
75
76 int surfaceCount() const override;
77
78
79=== modified file 'test/qmltest/mocks/plugins/Unity/Launcher/Mocks/MockLauncherModel.cpp'
80--- test/qmltest/mocks/plugins/Unity/Launcher/Mocks/MockLauncherModel.cpp 2016-06-03 11:21:11 +0000
81+++ test/qmltest/mocks/plugins/Unity/Launcher/Mocks/MockLauncherModel.cpp 2016-06-03 11:21:11 +0000
82@@ -106,11 +106,6 @@
83 return m_list.at(index);
84 }
85
86-void MockLauncherModel::setAlerting(const QString &appId, bool alerting) {
87- Q_UNUSED(appId)
88- Q_UNUSED(alerting)
89-}
90-
91 void MockLauncherModel::move(int oldIndex, int newIndex)
92 {
93 Q_UNUSED(oldIndex)
94
95=== modified file 'test/qmltest/mocks/plugins/Unity/Launcher/Mocks/MockLauncherModel.h'
96--- test/qmltest/mocks/plugins/Unity/Launcher/Mocks/MockLauncherModel.h 2015-06-19 16:13:00 +0000
97+++ test/qmltest/mocks/plugins/Unity/Launcher/Mocks/MockLauncherModel.h 2016-06-03 11:21:11 +0000
98@@ -39,7 +39,6 @@
99
100 QVariant data(const QModelIndex& index, int role) const;
101
102- Q_INVOKABLE void setAlerting(const QString& appId, bool alerting);
103 Q_INVOKABLE unity::shell::launcher::LauncherItemInterface *get(int index) const;
104 Q_INVOKABLE void move(int oldIndex, int newIndex);
105 Q_INVOKABLE void pin(const QString &appId, int index = -1);
106
107=== modified file 'test/qmltest/unity/shell/launcher/tst_Launcher.qml'
108--- test/qmltest/unity/shell/launcher/tst_Launcher.qml 2016-06-03 11:21:11 +0000
109+++ test/qmltest/unity/shell/launcher/tst_Launcher.qml 2016-06-03 11:21:11 +0000
110@@ -105,7 +105,6 @@
111
112 function test_model_methods_data() {
113 return [
114- { tag: "Model.methods[setAlerting]", method: "setAlerting" },
115 { tag: "Model.methods[get]", method: "get" },
116 { tag: "Model.methods[move]", method: "move" },
117 { tag: "Model.methods[pin]", method: "pin" },

Subscribers

People subscribed via source and target branches

to all changes: