Merge lp:~pete-woods/unity-mir/window-stack-get-property into lp:unity-mir

Proposed by Pete Woods
Status: Merged
Approved by: Pete Woods
Approved revision: 108
Merged at revision: 110
Proposed branch: lp:~pete-woods/unity-mir/window-stack-get-property
Merge into: lp:unity-mir
Diff against target: 31 lines (+10/-0)
2 files modified
src/modules/Unity/Application/dbuswindowstack.cpp (+9/-0)
src/modules/Unity/Application/dbuswindowstack.h (+1/-0)
To merge this branch: bzr merge lp:~pete-woods/unity-mir/window-stack-get-property
Reviewer Review Type Date Requested Status
Thomas Voß (community) Approve
PS Jenkins bot (community) continuous-integration Approve
Gerry Boland Pending
Review via email: mp+189984@code.launchpad.net

Commit message

Add stub implementation of GetWindowProperties method

This enables the implementation of the BAMF -> WindowStack bridge

Description of the change

Add stub implementation of GetWindowProperties method

This enables the implementation of the BAMF -> WindowStack bridge

To post a comment you must log in.
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
108. By Pete Woods

Reduce repeated method calls by asking for multiple properties at the same time

Revision history for this message
Thomas Voß (thomas-voss) wrote :

From a code perspective: LGTM.
From an architectural perspective, the interface is way to generic and we should start refactoring both the notion of a window stack (we are app-centric, after all) and this very interface to be more specific and to fit better with the rest of the system.

Can you please log bugs for both tasks against unity-mir? Once those are in, I will approve.

review: Needs Fixing
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
Revision history for this message
Pete Woods (pete-woods) wrote :
Revision history for this message
Thomas Voß (thomas-voss) wrote :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'src/modules/Unity/Application/dbuswindowstack.cpp'
2--- src/modules/Unity/Application/dbuswindowstack.cpp 2013-10-02 11:50:21 +0000
3+++ src/modules/Unity/Application/dbuswindowstack.cpp 2013-10-09 09:02:34 +0000
4@@ -68,6 +68,15 @@
5 return res;
6 }
7
8+QStringList DBusWindowStack::GetWindowProperties(unsigned int window_id, const QString &app_id,
9+ const QStringList &names)
10+{
11+ Q_UNUSED(window_id);
12+ Q_UNUSED(app_id);
13+ Q_UNUSED(names);
14+ return QStringList();
15+}
16+
17 QDBusArgument &operator<<(QDBusArgument &a, const AppIdDesktopFile &aidf)
18 {
19 a.beginStructure();
20
21=== modified file 'src/modules/Unity/Application/dbuswindowstack.h'
22--- src/modules/Unity/Application/dbuswindowstack.h 2013-10-02 11:50:21 +0000
23+++ src/modules/Unity/Application/dbuswindowstack.h 2013-10-09 09:02:34 +0000
24@@ -54,6 +54,7 @@
25
26 Q_INVOKABLE Q_SCRIPTABLE AppIdDesktopFile GetAppIdFromPid(unsigned int pid);
27 Q_INVOKABLE Q_SCRIPTABLE QList<WindowInfo> GetWindowStack();
28+ Q_INVOKABLE Q_SCRIPTABLE QStringList GetWindowProperties(unsigned int window_id, const QString &app_id, const QStringList &names);
29
30 signals:
31 void FocusedWindowChanged(unsigned int window_id, const QString &app_id, unsigned int stage);

Subscribers

People subscribed via source and target branches