Merge lp:~aacid/unity-api/music_cards_extra_attributes into lp:unity-api

Proposed by Albert Astals Cid
Status: Superseded
Proposed branch: lp:~aacid/unity-api/music_cards_extra_attributes
Merge into: lp:unity-api
Diff against target: 19 lines (+2/-0)
1 file modified
include/unity/shell/scopes/ResultsModelInterface.h (+2/-0)
To merge this branch: bzr merge lp:~aacid/unity-api/music_cards_extra_attributes
Reviewer Review Type Date Requested Status
Michael Zanetti (community) Needs Fixing
PS Jenkins bot (community) continuous-integration Approve
Paweł Stołowski (community) Abstain
Unity Team Pending
Review via email: mp+258632@code.launchpad.net

This proposal has been superseded by a proposal from 2015-05-29.

Commit message

New properties to support more complex cards

Like music cards that play directly in the UI from the Dash

Description of the change

This introduces two new properties activationUri and type that will be used by the Dash to be able to special case some behaviours like playing audio files directly from the dash.

To post a comment you must log in.
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
Revision history for this message
Paweł Stołowski (stolowski) wrote :

Looks good, but I've reservations about the name of the new attribute. Will be confusing for developers as it has nothing to do with result activation in the API. How about quickPreviewUri?

review: Abstain
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
Revision history for this message
Michael Zanetti (mzanetti) wrote :

looks good to me.

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

Actually no, needs to bump versions still

review: Needs Fixing

Unmerged revisions

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'include/unity/shell/scopes/ResultsModelInterface.h'
2--- include/unity/shell/scopes/ResultsModelInterface.h 2014-07-18 12:15:05 +0000
3+++ include/unity/shell/scopes/ResultsModelInterface.h 2015-05-18 15:08:13 +0000
4@@ -61,6 +61,7 @@
5 RoleCategoryId,
6 RoleDndUri,
7 RoleResult,
8+ RoleQuickPreviewData, ///< Data for UI quick previewing. In case of audio should contain uri and duration
9 // card components
10 RoleTitle,
11 RoleArt,
12@@ -84,6 +85,7 @@
13 roles[RoleUri] = "uri";
14 roles[RoleCategoryId] = "categoryId";
15 roles[RoleDndUri] = "dndUri";
16+ roles[RoleQuickPreviewData] = "quickPreviewData";
17 roles[RoleResult] = "result";
18 roles[RoleTitle] = "title";
19 roles[RoleArt] = "art";

Subscribers

People subscribed via source and target branches

to all changes: