[rygel] core: add some documentation



commit 949c15a32bd94a380e556b3b329dbfbb634abc36
Author: Jens Georg <mail jensge org>
Date:   Sat Jun 27 00:23:13 2009 +0200

    core: add some documentation

 src/rygel/rygel-media-db.vala |   15 +++++++++++++++
 1 files changed, 15 insertions(+), 0 deletions(-)
---
diff --git a/src/rygel/rygel-media-db.vala b/src/rygel/rygel-media-db.vala
index 6f589ba..9823b0b 100644
--- a/src/rygel/rygel-media-db.vala
+++ b/src/rygel/rygel-media-db.vala
@@ -35,6 +35,11 @@ public enum Rygel.MediaDBObjectType {
     ITEM
 }
 
+/**
+ * Persistent storage of media objects
+ *
+ * MediaDB is a sqlite3 backed persistent storage of media objects
+ */
 public class Rygel.MediaDB : Object {
     private Database db;
     private MediaDBObjectFactory factory;
@@ -100,6 +105,16 @@ public class Rygel.MediaDB : Object {
     "FROM Object LEFT OUTER JOIN Meta_Data " +
         "ON Object.metadata_fk = Meta_Data.id WHERE Object.upnp_id = ?";
 
+    /**
+     * This is the database query used to retrieve the children for a
+     * given object.
+     *
+     * Sorting is as follows:
+     *   - by type: containers first, then items if both are present
+     *   - by upnp_class: items are sorted according to their class
+     *   - by track: sorted by track
+     *   - and after that alphabetically
+     */
     private const string GET_CHILDREN_STRING =
     "SELECT type_fk, title, Meta_Data.size, Meta_Data.mime_type, " +
             "Meta_Data.width, Meta_Data.height, " +



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