[rygel] media-export: Use null container for Harvesting
- From: Zeeshan Ali Khattak <zeeshanak src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [rygel] media-export: Use null container for Harvesting
- Date: Wed, 9 Sep 2009 20:40:39 +0000 (UTC)
commit 3f761405c2f6d49714eb2121bac79898e77b720b
Author: Jens Georg <mail jensge org>
Date: Fri Aug 14 20:58:29 2009 +0200
media-export: Use null container for Harvesting
.../media-export/rygel-media-export-harvester.vala | 29 ++++---------------
1 files changed, 6 insertions(+), 23 deletions(-)
---
diff --git a/src/plugins/media-export/rygel-media-export-harvester.vala b/src/plugins/media-export/rygel-media-export-harvester.vala
index 9a85340..7f4104b 100644
--- a/src/plugins/media-export/rygel-media-export-harvester.vala
+++ b/src/plugins/media-export/rygel-media-export-harvester.vala
@@ -21,14 +21,17 @@
using GLib;
using Gee;
-internal class Rygel.DummyContainer : Rygel.MediaContainer {
+internal class Rygel.DummyContainer : NullContainer {
public File file;
public ArrayList<string> seen_children;
public DummyContainer (File file, MediaContainer parent) {
var id = Checksum.compute_for_string (ChecksumType.MD5,
file.get_uri ());
- base (id, parent, file.get_basename (), 0);
+ this.id = id;
+ this.parent = parent;
+ this.title = file.get_basename ();
+ this.child_count = 0;
this.parent_ref = parent;
this.file = file;
this.uris.add (file.get_uri ());
@@ -38,29 +41,9 @@ internal class Rygel.DummyContainer : Rygel.MediaContainer {
public void seen (string id) {
seen_children.add (id);
}
-
-
- public override void get_children (uint offset,
- uint max_count,
- Cancellable? cancellable,
- AsyncReadyCallback callback) {}
-
- public override Gee.List<MediaObject>? get_children_finish (
- AsyncResult res)
- throws Error
- { return null; }
-
- public override void find_object (string id,
- Cancellable? cancellable,
- AsyncReadyCallback callback) { }
-
- public override MediaObject? find_object_finish (AsyncResult res)
- throws Error { return
- null;}
-
}
-internal struct FileQueueEntry {
+internal struct Rygel.FileQueueEntry {
public File file;
public bool update;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]