Need to provide an api for setting launcher counters
Bug #1301400 reported by
Michał Sawicz
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
apparmor-easyprof-ubuntu (Ubuntu) |
Fix Released
|
High
|
Jamie Strandboge | ||
unity8 (Ubuntu) |
Fix Released
|
High
|
Ted Gould |
Bug Description
For reference, old API: https:/
My proposal is, on dbus:
/com/canonical/
com.canonical.
This will obviously need to be wrapped in a lib later, possibly even platform api, and ideally the old libunity api will be ported to support this, too.
Short-term the above interface called by push notification daemon should be enough.
Related branches
lp:~ted/unity8/launcher-dbus
- Michael Zanetti (community): Approve
- PS Jenkins bot (community): Needs Fixing (continuous-integration)
- Unity Team: Pending requested
-
Diff: 668 lines (+488/-23)4 files modifiedplugins/Unity/Launcher/backend/launcherbackend.cpp (+266/-16)
plugins/Unity/Launcher/backend/launcherbackend.h (+52/-4)
tests/plugins/Unity/Launcher/CMakeLists.txt (+3/-3)
tests/plugins/Unity/Launcher/launcherbackendtest.cpp (+167/-0)
Changed in unity8: | |
status: | Triaged → In Progress |
Changed in unity8 (Ubuntu): | |
status: | New → In Progress |
Changed in unity8: | |
status: | In Progress → Fix Released |
Changed in unity8 (Ubuntu): | |
assignee: | nobody → Ted Gould (ted) |
importance: | Undecided → High |
no longer affects: | unity8 |
To post a comment you must log in.
May I propose that we make it
int IncreaseCounter (app_id, delta, visible)
that increases the counter by the (signed) delta, and returns the current (post-delta) value?