public const string DESCRIPTION_PATH = "xml/ContentDirectory.xml";
protected string feature_list;
- protected string sort_caps;
internal HTTPServer http_server;
"xsi:schemaLocation=\"urn:schemas-upnp-org:av:avs" +
"http://www.upnp.org/schemas/av/avs-v1-20060531.xsd\">" +
"</Features>";
- this.sort_caps = "";
this.action_invoked["Browse"].connect (this.browse_cb);
this.action_invoked["Search"].connect (this.search_cb);
private void get_sort_capabilities_cb (Service content_dir,
owned ServiceAction action) {
/* Set action return arguments */
- action.set ("SortCaps", typeof (string), this.sort_caps);
+ action.set ("SortCaps", typeof (string), MediaObjects.SORT_CAPS);
action.return ();
}
ref GLib.Value value) {
/* Set action return arguments */
value.init (typeof (string));
- value.set_string (this.sort_caps);
+ value.set_string (MediaObjects.SORT_CAPS);
}
/* action GetFeatureList implementation */
* An array list that keeps media objects.
*/
public class Rygel.MediaObjects : ArrayList<MediaObject> {
+ public const string SORT_CAPS = "@id,@parentID,dc:title,upnp:class," +
+ "dc:artist,dc:author,upnp:album,dc:date";
+
public override Gee.List<MediaObject>? slice (int start, int stop) {
var slice = base.slice (start, stop);
var ret = new MediaObjects ();