summaryrefslogtreecommitdiff
path: root/src/plugins/external/rygel-external-dummy-container.vala
diff options
context:
space:
mode:
authorZeeshan Ali (Khattak) <zeeshanak@gnome.org>2010-06-11 17:34:12 +0300
committerZeeshan Ali (Khattak) <zeeshanak@gnome.org>2010-06-16 19:54:49 +0300
commit55e205268e06a6bd919786bcb91a443f032bb0e6 (patch)
treeced86ed64ee86f96c9f4dd27cff50f5c4be33292 /src/plugins/external/rygel-external-dummy-container.vala
parent163b8d4a9ccf4e610a5f84be946f07376fbee7d2 (diff)
downloadrygel-55e205268e06a6bd919786bcb91a443f032bb0e6.tar.gz
external: Port to MediaServer2 spec
New spec available at: http://live.gnome.org/Rygel/MediaServer2Spec
Diffstat (limited to 'src/plugins/external/rygel-external-dummy-container.vala')
-rw-r--r--src/plugins/external/rygel-external-dummy-container.vala48
1 files changed, 48 insertions, 0 deletions
diff --git a/src/plugins/external/rygel-external-dummy-container.vala b/src/plugins/external/rygel-external-dummy-container.vala
new file mode 100644
index 00000000..397210a2
--- /dev/null
+++ b/src/plugins/external/rygel-external-dummy-container.vala
@@ -0,0 +1,48 @@
+/*
+ * Copyright (C) 2009,2010 Jens Georg <mail@jensge.org>.
+ * Copyright (C) 2010 Nokia Corporation.
+ *
+ * Author: Jens Georg <mail@jensge.org>
+ * Author: Zeeshan Ali (Khattak) <zeeshanak@gnome.org>
+ * <zeeshan.ali@nokia.com>
+ *
+ * This file is part of Rygel.
+ *
+ * Rygel is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU Lesser General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * Rygel is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this program; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ */
+
+using Rygel;
+using Gee;
+
+/**
+ * This is a dummy container used to satisfy rygel when creating objects for
+ * search resuts.
+ */
+internal class Rygel.ExternalDummyContainer : MediaContainer {
+ public ExternalDummyContainer (string id,
+ string title,
+ uint child_coult,
+ MediaContainer? parent) {
+ base (id, parent, title, child_count);
+ }
+
+ public override async Gee.List<MediaObject>? get_children (
+ uint offset,
+ uint max_count,
+ Cancellable? cancellable)
+ throws Error {
+ return new ArrayList<MediaObject> ();
+ }
+}