2008-08-03 Zeeshan Ali Khattak <zeenix@gmail.com>
+ * src/gupnp-media-manager.vala:
+ * src/gupnp-media-provider.vala:
+ * src/gupnp-media-tracker.vala:
+
+ Add "title" prop to MediaProvider interface.
+
+2008-08-03 Zeeshan Ali Khattak <zeenix@gmail.com>
+
* src/gupnp-media-tracker.vala:
- Correct a typo. Now we export the ID of the container in the format we
/* Properties */
public string# root_id { get; construct; }
public string# root_parent_id { get; construct; }
+ public string# title { get; private construct; }
public GUPnP.Context context { get; construct; }
public uint32 system_update_id { get; private set; }
public MediaManager (GUPnP.Context context) {
this.root_id = "0";
this.root_parent_id = "-1";
+ this.title = "Media Manager";
this.context = context;
}
this.didl_writer.start_didl_lite (null, null, true);
this.providers.for_each ((key, value) => {
+ MediaProvider provider = (MediaProvider) value;
+
add_container ((string) key,
this.root_id,
- (string) key, /* FIXME */
+ provider.title,
-1); /* FIXME */
});
add_container (this.root_id,
"-1", /* FIXME */
- this.root_id, /* FIXME */
+ this.title,
this.providers.size ());
/* End DIDL-Lite fragment */
/* Properties */
public abstract string# root_id { get; construct; }
public abstract string# root_parent_id { get; construct; }
+ public abstract string# title { get; private construct; }
public abstract GUPnP.Context context { get; construct; }
public abstract string? browse (string container_id,
/* Properties */
public string# root_id { get; construct; }
public string# root_parent_id { get; construct; }
+ public string# title { get; private construct; }
public GUPnP.Context context { get; construct; }
construct {
GUPnP.Context context) {
this.root_id = root_id;
this.root_parent_id = root_parent_id;
+ this.title = "Tracker";
this.context = context;
}
private void add_root_container () {
add_container (this.root_id,
this.root_parent_id,
- this.root_id,
+ this.title,
this.containers.length ());
}