Merge lp:~mzanetti/unity-api/mirsurface-appid into lp:unity-api

Proposed by Michael Zanetti
Status: Superseded
Proposed branch: lp:~mzanetti/unity-api/mirsurface-appid
Merge into: lp:unity-api
Diff against target: 129 lines (+31/-4)
7 files modified
debian/changelog (+13/-0)
include/unity/shell/application/CMakeLists.txt (+1/-1)
include/unity/shell/application/MirSurfaceInterface.h (+7/-0)
include/unity/shell/launcher/CMakeLists.txt (+1/-1)
include/unity/shell/launcher/QuickListModelInterface.h (+5/-1)
test/qmltest/mocks/plugins/Unity/Launcher/Mocks/MockQuickListModel.cpp (+2/-0)
test/qmltest/unity/shell/launcher/tst_Launcher.qml (+2/-1)
To merge this branch: bzr merge lp:~mzanetti/unity-api/mirsurface-appid
Reviewer Review Type Date Requested Status
Unity Team Pending
Review via email: mp+319948@code.launchpad.net

This proposal has been superseded by a proposal from 2017-03-15.

Commit message

add appId property to MirSurfaceInterface

To post a comment you must log in.
280. By Michael Zanetti

Add appId property to MirSurfaceInterface

Unmerged revisions

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 2017-02-23 11:22:38 +0000
3+++ debian/changelog 2017-03-15 16:51:45 +0000
4@@ -1,3 +1,16 @@
5+unity-api (8.6) UNRELEASED; urgency=medium
6+
7+ * Add appId property to MirSurfaceInterface
8+
9+ -- Michael Zanetti <michael.zanetti@canonical.com> Wed, 15 Mar 2017 17:38:36 +0100
10+
11+unity-api (8.5) zesty; urgency=medium
12+
13+ [ Michael Zanetti ]
14+ * Add RoleIsPrivate to launcher's quicklist entries
15+
16+ -- Michael Zanetti <michael.zanetti@canonical.com> Fri, 24 Feb 2017 13:57:12 +0000
17+
18 unity-api (8.4+17.04.20170223-0ubuntu1) zesty; urgency=medium
19
20 [ Pete Woods ]
21
22=== modified file 'include/unity/shell/application/CMakeLists.txt'
23--- include/unity/shell/application/CMakeLists.txt 2017-01-26 11:07:35 +0000
24+++ include/unity/shell/application/CMakeLists.txt 2017-03-15 16:51:45 +0000
25@@ -7,7 +7,7 @@
26
27 set(UNITY_API_LIB_HDRS ${UNITY_API_LIB_HDRS} ${headers} ${internal_headers} PARENT_SCOPE)
28
29-set(VERSION 26)
30+set(VERSION 27)
31 set(PKGCONFIG_NAME "unity-shell-application")
32 set(PKGCONFIG_DESCRIPTION "Unity shell Application APIs")
33 set(PKGCONFIG_REQUIRES "Qt5Core")
34
35=== modified file 'include/unity/shell/application/MirSurfaceInterface.h'
36--- include/unity/shell/application/MirSurfaceInterface.h 2017-01-26 11:07:35 +0000
37+++ include/unity/shell/application/MirSurfaceInterface.h 2017-03-15 16:51:45 +0000
38@@ -58,6 +58,11 @@
39 Q_PROPERTY(QString persistentId READ persistentId CONSTANT)
40
41 /**
42+ * @brief App Id of the app this surface belongs to
43+ */
44+ Q_PROPERTY(QString appId READ appId CONSTANT)
45+
46+ /**
47 * @brief Position of the current surface buffer, in pixels.
48 */
49 Q_PROPERTY(QPoint position READ position NOTIFY positionChanged)
50@@ -188,6 +193,8 @@
51
52 virtual QString persistentId() const = 0;
53
54+ virtual QString appId() const = 0;
55+
56 virtual QPoint position() const = 0;
57
58 virtual QSize size() const = 0;
59
60=== modified file 'include/unity/shell/launcher/CMakeLists.txt'
61--- include/unity/shell/launcher/CMakeLists.txt 2016-11-30 10:43:52 +0000
62+++ include/unity/shell/launcher/CMakeLists.txt 2017-03-15 16:51:45 +0000
63@@ -7,7 +7,7 @@
64
65 set(UNITY_API_LIB_HDRS ${UNITY_API_LIB_HDRS} ${headers} ${internal_headers} PARENT_SCOPE)
66
67-set(VERSION 11)
68+set(VERSION 12)
69 set(PKGCONFIG_NAME "unity-shell-launcher")
70 set(PKGCONFIG_DESCRIPTION "Unity shell Launcher APIs")
71 set(PKGCONFIG_REQUIRES "Qt5Core")
72
73=== modified file 'include/unity/shell/launcher/QuickListModelInterface.h'
74--- include/unity/shell/launcher/QuickListModelInterface.h 2016-12-14 15:57:28 +0000
75+++ include/unity/shell/launcher/QuickListModelInterface.h 2017-03-15 16:51:45 +0000
76@@ -39,6 +39,7 @@
77 * - RoleIcon (icon): The icon to be shown for this entry (QString).
78 * - RoleClickable (clickable): Determines if the entry can be triggered or is just a static text (boolean)
79 * - RoleHasSeparator (hasSeparator): Determines if the entry has a separator (boolean)
80+ * - RoleIsPrivate (isPrivate): Determines whether the entry should be shown or not in locked mode (e.g. greeter is locked)
81 */
82 class UNITY_API QuickListModelInterface: public QAbstractListModel
83 {
84@@ -51,6 +52,7 @@
85 m_roleNames.insert(RoleIcon, "icon");
86 m_roleNames.insert(RoleClickable, "clickable");
87 m_roleNames.insert(RoleHasSeparator, "hasSeparator");
88+ m_roleNames.insert(RoleIsPrivate, "isPrivate");
89 }
90 /// @endcond
91 public:
92@@ -63,8 +65,10 @@
93 RoleLabel,
94 RoleIcon,
95 RoleClickable,
96- RoleHasSeparator
97+ RoleHasSeparator,
98+ RoleIsPrivate
99 };
100+ Q_ENUM(Roles)
101
102 /// @cond
103 virtual ~QuickListModelInterface() {}
104
105=== modified file 'test/qmltest/mocks/plugins/Unity/Launcher/Mocks/MockQuickListModel.cpp'
106--- test/qmltest/mocks/plugins/Unity/Launcher/Mocks/MockQuickListModel.cpp 2016-10-28 11:14:37 +0000
107+++ test/qmltest/mocks/plugins/Unity/Launcher/Mocks/MockQuickListModel.cpp 2017-03-15 16:51:45 +0000
108@@ -39,6 +39,8 @@
109 return true;
110 case RoleHasSeparator:
111 return true;
112+ case RoleIsPrivate:
113+ return false;
114 }
115 return QVariant();
116 }
117
118=== modified file 'test/qmltest/unity/shell/launcher/tst_Launcher.qml'
119--- test/qmltest/unity/shell/launcher/tst_Launcher.qml 2016-11-30 10:38:23 +0000
120+++ test/qmltest/unity/shell/launcher/tst_Launcher.qml 2017-03-15 16:51:45 +0000
121@@ -175,7 +175,8 @@
122 { tag: "Model.roles[label]", role: "label", type: "string" },
123 { tag: "Model.roles[icon]", role: "icon", type: "string" },
124 { tag: "Model.roles[clickable]", role: "clickable", type: "boolean" },
125- { tag: "Model.roles[hasSeparator]", role: "hasSeparator", type: "boolean" }
126+ { tag: "Model.roles[hasSeparator]", role: "hasSeparator", type: "boolean" },
127+ { tag: "Model.roles[isPrivate]", role: "isPrivate", type: "boolean" }
128 ];
129 }
130

Subscribers

People subscribed via source and target branches

to all changes: