rygel r516 - trunk/src/rygel
- From: zeeshanak svn gnome org
- To: svn-commits-list gnome org
- Subject: rygel r516 - trunk/src/rygel
- Date: Wed, 28 Jan 2009 12:34:41 +0000 (UTC)
Author: zeeshanak
Date: Wed Jan 28 12:34:40 2009
New Revision: 516
URL: http://svn.gnome.org/viewvc/rygel?rev=516&view=rev
Log:
More docs for MediaContainer.
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 Wed Jan 28 12:34:40 2009
@@ -24,7 +24,9 @@
/**
* Represents a container (folder) for media items and containers. Provides
- * basic serialization (to DIDLLiteWriter) implementation.
+ * basic serialization (to DIDLLiteWriter) implementation. Deriving classes
+ * are supposed to provide working implementations of get_children and
+ * find_object_by_id.
*/
public class Rygel.MediaContainer : MediaObject {
public uint child_count;
@@ -44,6 +46,12 @@
this ("0", "-1", title, child_count);
}
+ /**
+ * Serializes this container to the specified DIDLLiteWriter object
+ *
+ * @param didl_writer the DIDLLiteWriter object to serialize to.
+ *
+ */
public override void serialize (DIDLLiteWriter didl_writer) throws Error {
didl_writer.start_container (this.id,
this.parent_id,
@@ -65,6 +73,16 @@
didl_writer.end_container ();
}
+ /**
+ * Fetches the list of media objects directly under this container.
+ *
+ * @param offet zero-based index of the first item to return
+ * @param max_count maximum number of objects to return
+ * @param child_count placeholder for actual number of objects directly
+ * under this container
+ *
+ * return A list of media objects.
+ */
public virtual Gee.List<MediaObject> get_children (uint offset,
uint max_count,
out uint child_count)
@@ -72,6 +90,14 @@
return null;
}
+ /**
+ * Recursively searches for media object with the given id in this
+ * container.
+ *
+ * @param id ID of the media object to search for.
+ *
+ * return the found media object.
+ */
public virtual MediaObject find_object_by_id (string id) throws Error {
return null;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]