[rygel] tracker: Items should know their service



commit 2f17182a46b0309914f034c2b7c26143a6536d08
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date:   Fri Sep 18 15:00:09 2009 +0300

    tracker: Items should know their service

 .../tracker/rygel-tracker-image-category.vala      |    2 +-
 src/plugins/tracker/rygel-tracker-image-item.vala  |    2 ++
 .../tracker/rygel-tracker-music-category.vala      |    2 +-
 src/plugins/tracker/rygel-tracker-music-item.vala  |    2 ++
 .../tracker/rygel-tracker-video-category.vala      |    2 +-
 src/plugins/tracker/rygel-tracker-video-item.vala  |    2 ++
 6 files changed, 9 insertions(+), 3 deletions(-)
---
diff --git a/src/plugins/tracker/rygel-tracker-image-category.vala b/src/plugins/tracker/rygel-tracker-image-category.vala
index 653ebb9..f154447 100644
--- a/src/plugins/tracker/rygel-tracker-image-category.vala
+++ b/src/plugins/tracker/rygel-tracker-image-category.vala
@@ -28,7 +28,7 @@ public class Rygel.TrackerImageCategory : Rygel.TrackerSearchContainer {
     public TrackerImageCategory (string         id,
                                  MediaContainer parent,
                                  string         title) {
-        base (id, parent, title, "Images");
+        base (id, parent, title, TrackerImageItem.SERVICE);
     }
 
     protected override string[] get_metadata_keys () {
diff --git a/src/plugins/tracker/rygel-tracker-image-item.vala b/src/plugins/tracker/rygel-tracker-image-item.vala
index f4a6849..6c06628 100644
--- a/src/plugins/tracker/rygel-tracker-image-item.vala
+++ b/src/plugins/tracker/rygel-tracker-image-item.vala
@@ -28,6 +28,8 @@ using DBus;
  * Represents Tracker image item.
  */
 public class Rygel.TrackerImageItem : Rygel.TrackerItem {
+    public const string SERVICE = "Images";
+
     private enum Metadata {
         FILE_NAME,
         MIME,
diff --git a/src/plugins/tracker/rygel-tracker-music-category.vala b/src/plugins/tracker/rygel-tracker-music-category.vala
index b9fb1df..d7ee4ea 100644
--- a/src/plugins/tracker/rygel-tracker-music-category.vala
+++ b/src/plugins/tracker/rygel-tracker-music-category.vala
@@ -28,7 +28,7 @@ public class Rygel.TrackerMusicCategory : Rygel.TrackerSearchContainer {
     public TrackerMusicCategory (string         id,
                                  MediaContainer parent,
                                  string         title) {
-        base (id, parent, title, "Music");
+        base (id, parent, title, TrackerMusicItem.SERVICE);
     }
 
     protected override string[] get_metadata_keys () {
diff --git a/src/plugins/tracker/rygel-tracker-music-item.vala b/src/plugins/tracker/rygel-tracker-music-item.vala
index 3140771..2de1b9a 100644
--- a/src/plugins/tracker/rygel-tracker-music-item.vala
+++ b/src/plugins/tracker/rygel-tracker-music-item.vala
@@ -28,6 +28,8 @@ using DBus;
  * Represents Tracker music item.
  */
 public class Rygel.TrackerMusicItem : Rygel.TrackerItem {
+    public const string SERVICE = "Music";
+
     private enum Metadata {
         FILE_NAME,
         MIME,
diff --git a/src/plugins/tracker/rygel-tracker-video-category.vala b/src/plugins/tracker/rygel-tracker-video-category.vala
index 133de29..c8577a2 100644
--- a/src/plugins/tracker/rygel-tracker-video-category.vala
+++ b/src/plugins/tracker/rygel-tracker-video-category.vala
@@ -28,7 +28,7 @@ public class Rygel.TrackerVideoCategory : Rygel.TrackerSearchContainer {
     public TrackerVideoCategory (string         id,
                                  MediaContainer parent,
                                  string         title) {
-        base (id, parent, title, "Videos");
+        base (id, parent, title, TrackerVideoItem.SERVICE);
     }
 
     protected override string[] get_metadata_keys () {
diff --git a/src/plugins/tracker/rygel-tracker-video-item.vala b/src/plugins/tracker/rygel-tracker-video-item.vala
index f3b3d61..e20d799 100644
--- a/src/plugins/tracker/rygel-tracker-video-item.vala
+++ b/src/plugins/tracker/rygel-tracker-video-item.vala
@@ -28,6 +28,8 @@ using DBus;
  * Represents Tracker video item.
  */
 public class Rygel.TrackerVideoItem : Rygel.TrackerItem {
+    public const string SERVICE = "Videos";
+
     private enum Metadata {
         FILE_NAME,
         MIME,



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]