I have made the following changes intended for : CE:MW:Shared / nemo-qml-plugin-grilo
Please review and accept or decline. BOSS has already run some checks on this request. See the "Messages from BOSS" section below. https://build.pub.meego.com//request/show/7219 Thank You, msameer [This message was auto-generated] --- Request # 7219: Messages from BOSS: State: review at 2012-10-31T12:38:38 by bossbot Reviews: accepted by bossbot : Prechecks succeeded. new for CE-maintainers : Please replace this text with a review and approve/reject the review (not the SR). BOSS will take care of the rest Changes: submit: home:msameer:grilo / nemo-qml-plugin-grilo -> CE:MW:Shared / nemo-qml-plugin-grilo changes files: -------------- --- nemo-qml-plugin-grilo.changes +++ nemo-qml-plugin-grilo.changes @@ -0,0 +1,3 @@ +* Wed Oct 31 2012 Mohammed Hassan <[email protected]> - 0.0.20121031 +- New release exposing album property + old: ---- qtgrilo-0.0.20121019.tar.gz new: ---- qtgrilo-0.0.20121031.tar.gz spec files: ----------- --- nemo-qml-plugin-grilo.spec +++ nemo-qml-plugin-grilo.spec @@ -1,6 +1,6 @@ Name: nemo-qml-plugin-grilo Summary: Framework for discovering and browsing media -Version: 0.0.20121019 +Version: 0.0.20121031 Release: 1 Group: Development/Libraries License: LGPLv2.1 other changes: -------------- ++++++ qtgrilo-0.0.20121019.tar.gz -> qtgrilo-0.0.20121031.tar.gz --- declarative/grilomedia.cpp +++ declarative/grilomedia.cpp @@ -73,3 +73,11 @@ QString GriloMedia::author() const { return grl_media_get_author(m_media); } + +QString GriloMedia::album() const { + if (GRL_IS_MEDIA_AUDIO(m_media)) { + return grl_media_audio_get_album(GRL_MEDIA_AUDIO(m_media)); + } + + return QString(); +} --- declarative/grilomedia.h +++ declarative/grilomedia.h @@ -37,6 +37,7 @@ Q_PROPERTY(bool container READ isContainer CONSTANT); Q_PROPERTY(int duration READ duration CONSTANT); Q_PROPERTY(QString author READ author CONSTANT); + Q_PROPERTY(QString album READ album CONSTANT); public: GriloMedia(GrlMedia *media, QObject *parent = 0); @@ -48,6 +49,7 @@ bool isContainer() const; int duration() const; QString author() const; + QString album() const; GrlMedia *media();
