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/7484

Thank You,
msameer

[This message was auto-generated]

---

Request # 7484:

Messages from BOSS:

State: review at 2012-12-02T03:04:42 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 @@
+* Sun Dec 02 2012 Mohammed Hassan <[email protected]> - 
0.0.20121202
+- New release adding artist and childCount to GriloMedia
+

old:
----
  qtgrilo-0.0.20121115.tar.gz

new:
----
  qtgrilo-0.0.20121202.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.20121115
+Version:    0.0.20121202
 Release:    1
 Group:      Development/Libraries
 License:    LGPLv2.1

other changes:
--------------

++++++ qtgrilo-0.0.20121115.tar.gz -> qtgrilo-0.0.20121202.tar.gz
--- declarative/grilomedia.cpp
+++ declarative/grilomedia.cpp
@@ -81,3 +81,21 @@
 
   return QString();
 }
+
+QString GriloMedia::artist() const
+{
+  if (GRL_IS_MEDIA_AUDIO(m_media)) {
+    return grl_media_audio_get_artist(GRL_MEDIA_AUDIO(m_media));
+  }
+
+  return QString();
+}
+
+int GriloMedia::childCount() const
+{
+  if (GRL_IS_MEDIA_BOX(m_media)) {
+    return grl_media_box_get_childcount(GRL_MEDIA_BOX(m_media));
+  }
+
+  return GRL_METADATA_KEY_CHILDCOUNT_UNKNOWN;
+}
--- declarative/grilomedia.h
+++ declarative/grilomedia.h
@@ -38,6 +38,8 @@
   Q_PROPERTY(int duration READ duration CONSTANT);
   Q_PROPERTY(QString author READ author CONSTANT);
   Q_PROPERTY(QString album READ album CONSTANT);
+  Q_PROPERTY(QString artist READ artist CONSTANT);
+  Q_PROPERTY(int childCount READ childCount CONSTANT);
 
 public:
   GriloMedia(GrlMedia *media, QObject *parent = 0);
@@ -50,6 +52,8 @@
   int duration() const;
   QString author() const;
   QString album() const;
+  QString artist() const;
+  int childCount() const;
 
   GrlMedia *media();
 



Reply via email to