rygel r566 - trunk/src/plugins/tracker



Author: zeeshanak
Date: Sat Feb 14 15:22:43 2009
New Revision: 566
URL: http://svn.gnome.org/viewvc/rygel?rev=566&view=rev

Log:
Turn find_item*() methods private.

Modified:
   trunk/src/plugins/tracker/rygel-tracker-container.vala

Modified: trunk/src/plugins/tracker/rygel-tracker-container.vala
==============================================================================
--- trunk/src/plugins/tracker/rygel-tracker-container.vala	(original)
+++ trunk/src/plugins/tracker/rygel-tracker-container.vala	Sat Feb 14 15:22:43 2009
@@ -147,30 +147,6 @@
         }
     }
 
-    public MediaItem? find_item (string id) throws GLib.Error {
-        string path = this.get_item_path (id);
-
-        if (path == null) {
-            return null;
-        }
-
-        return this.find_item_by_path (path);
-    }
-
-    public MediaItem? find_item_by_path (string path) throws GLib.Error {
-        MediaItem item;
-
-        if (this.child_class == MediaItem.VIDEO_CLASS) {
-            item = new TrackerVideoItem (this.id + ":" + path, path, this);
-        } else if (this.child_class == MediaItem.IMAGE_CLASS) {
-            item = new TrackerImageItem (this.id + ":" + path, path, this);
-        } else {
-            item = new TrackerMusicItem (this.id + ":" + path, path, this);
-        }
-
-        return item;
-    }
-
     public override void find_object (string             id,
                                       Cancellable?       cancellable,
                                       AsyncReadyCallback callback) {
@@ -225,5 +201,29 @@
             return null;
         }
     }
+
+    private MediaItem? find_item (string id) throws GLib.Error {
+        string path = this.get_item_path (id);
+
+        if (path == null) {
+            return null;
+        }
+
+        return this.find_item_by_path (path);
+    }
+
+    private MediaItem? find_item_by_path (string path) throws GLib.Error {
+        MediaItem item;
+
+        if (this.child_class == MediaItem.VIDEO_CLASS) {
+            item = new TrackerVideoItem (this.id + ":" + path, path, this);
+        } else if (this.child_class == MediaItem.IMAGE_CLASS) {
+            item = new TrackerImageItem (this.id + ":" + path, path, this);
+        } else {
+            item = new TrackerMusicItem (this.id + ":" + path, path, this);
+        }
+
+        return item;
+    }
 }
 



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