rygel r524 - trunk/src/rygel



Author: zeeshanak
Date: Thu Jan 29 00:01:53 2009
New Revision: 524
URL: http://svn.gnome.org/viewvc/rygel?rev=524&view=rev

Log:
MediaContainer is now an abstract class.

Modified:
   trunk/src/rygel/rygel-media-container.vala

Modified: trunk/src/rygel/rygel-media-container.vala
==============================================================================
--- trunk/src/rygel/rygel-media-container.vala	(original)
+++ trunk/src/rygel/rygel-media-container.vala	Thu Jan 29 00:01:53 2009
@@ -28,7 +28,7 @@
  * are supposed to provide working implementations of get_children and
  * find_object_by_id.
  */
-public class Rygel.MediaContainer : MediaObject {
+public abstract class Rygel.MediaContainer : MediaObject {
     public uint child_count;
 
     public MediaContainer (string id,
@@ -81,11 +81,9 @@
      *
      * return A list of media objects.
      */
-    public virtual Gee.List<MediaObject>? get_children (uint offset,
-                                                        uint max_count)
-                                                        throws Error {
-        return null;
-    }
+    public abstract Gee.List<MediaObject>? get_children (uint offset,
+                                                         uint max_count)
+                                                         throws Error;
 
    /**
      * Recursively searches for media object with the given id in this
@@ -95,7 +93,5 @@
      *
      * return the found media object.
      */
-    public virtual MediaObject? find_object_by_id (string id) throws Error {
-        return null;
-    }
+    public abstract MediaObject? find_object_by_id (string id) throws Error;
 }



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