* Represents an external container.
*/
public class Rygel.ExternalContainer : Rygel.MediaContainer {
- public ExternalMediaContainer actual_container;
+ public ExternalMediaContainerProxy actual_container;
public string host_ip;
public string service_name;
// Create proxy to MediaContainer iface
this.actual_container = this.connection.get_object (this.service_name,
id)
- as ExternalMediaContainer;
+ as ExternalMediaContainerProxy;
this.update_container.begin (true);
}
throws GLib.Error {
string[] filter = {};
- foreach (var object_prop in ExternalMediaObject.PROPERTIES) {
+ foreach (var object_prop in ExternalMediaObjectProxy.PROPERTIES) {
filter += object_prop;
}
- foreach (var item_prop in ExternalMediaItem.PROPERTIES) {
+ foreach (var item_prop in ExternalMediaItemProxy.PROPERTIES) {
filter += item_prop;
}
}
string[] filter = {};
- foreach (var object_prop in ExternalMediaObject.PROPERTIES) {
+ foreach (var object_prop in ExternalMediaObjectProxy.PROPERTIES) {
filter += object_prop;
}
- foreach (var container_prop in ExternalMediaContainer.PROPERTIES) {
+ foreach (var container_prop in ExternalMediaContainerProxy.PROPERTIES) {
filter += container_prop;
}
- foreach (var item_prop in ExternalMediaItem.PROPERTIES) {
+ foreach (var item_prop in ExternalMediaItemProxy.PROPERTIES) {
filter += item_prop;
}
// Create proxy to MediaObject iface
var actual_object = this.connection.get_object (this.service_name, id)
- as ExternalMediaObject;
+ as ExternalMediaObjectProxy;
if (actual_object.object_type == "container") {
media_object = this.find_container_by_id (id);
var props_iface = this.connection.get_object (this.service_name, id)
as Properties;
- var props = yield props_iface.get_all (ExternalMediaItem.IFACE);
+ var props = yield props_iface.get_all (
+ ExternalMediaItemProxy.IFACE);
// Its an item then
media_object = yield this.item_factory.create (
private async void refresh_child_containers () throws GLib.Error {
string[] filter = {};
- foreach (var object_prop in ExternalMediaObject.PROPERTIES) {
+ foreach (var object_prop in ExternalMediaObjectProxy.PROPERTIES) {
filter += object_prop;
}
- foreach (var container_prop in ExternalMediaContainer.PROPERTIES) {
+ foreach (var container_prop in ExternalMediaContainerProxy.PROPERTIES) {
filter += container_prop;
}
}
}
- private void on_updated (ExternalMediaContainer actual_container) {
+ private void on_updated (ExternalMediaContainerProxy actual_container) {
this.update_container.begin ();
}
using DBus;
[DBus (name = "org.gnome.UPnP.MediaObject2")]
-public interface Rygel.ExternalMediaObject : DBus.Object {
+public interface Rygel.ExternalMediaObjectProxy : DBus.Object {
public static const string IFACE = "org.gnome.UPnP.MediaObject2";
public static const string[] PROPERTIES = { "Parent",
"Type",
}
[DBus (name = "org.gnome.UPnP.MediaContainer2")]
-public interface Rygel.ExternalMediaContainer : DBus.Object,
- ExternalMediaObject {
+public interface Rygel.ExternalMediaContainerProxy : DBus.Object,
+ ExternalMediaObjectProxy {
public static const string IFACE = "org.gnome.UPnP.MediaContainer2";
public static const string[] PROPERTIES = { "ChildCount", "Searchable" };
}
[DBus (name = "org.gnome.UPnP.MediaItem2")]
-public interface Rygel.ExternalMediaItem : DBus.Object, ExternalMediaObject {
+public interface Rygel.ExternalMediaItemProxy : DBus.Object,
+ ExternalMediaObjectProxy {
public static const string IFACE = "org.gnome.UPnP.MediaItem2";
public static const string[] PROPERTIES = { "URLs",
"MIMEType",