[rygel] tracker: Special container class for Videos
- From: Zeeshan Ali Khattak <zeeshanak src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [rygel] tracker: Special container class for Videos
- Date: Sat, 5 Dec 2009 01:21:49 +0000 (UTC)
commit 8b8f98c2129a3d40f0194fdd2f5c3cef38343168
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date: Wed Dec 2 19:55:03 2009 +0200
tracker: Special container class for Videos
Currently we only provide a tags container inside videos but we should
at least be able to provide 'years' hierarchy under it.
src/plugins/tracker/Makefile.am | 1 +
.../tracker/rygel-tracker-root-container.vala | 7 +---
src/plugins/tracker/rygel-tracker-videos.vala | 40 ++++++++++++++++++++
3 files changed, 42 insertions(+), 6 deletions(-)
---
diff --git a/src/plugins/tracker/Makefile.am b/src/plugins/tracker/Makefile.am
index 3000041..ac36bcd 100644
--- a/src/plugins/tracker/Makefile.am
+++ b/src/plugins/tracker/Makefile.am
@@ -13,6 +13,7 @@ librygel_media_tracker_la_SOURCES = \
rygel-media-tracker.vala \
rygel-tracker-root-container.vala \
rygel-tracker-music.vala \
+ rygel-tracker-videos.vala \
rygel-tracker-pictures.vala \
rygel-tracker-metadata-values.vala \
rygel-tracker-tags.vala \
diff --git a/src/plugins/tracker/rygel-tracker-root-container.vala b/src/plugins/tracker/rygel-tracker-root-container.vala
index f3cccd0..3fefaa0 100644
--- a/src/plugins/tracker/rygel-tracker-root-container.vala
+++ b/src/plugins/tracker/rygel-tracker-root-container.vala
@@ -33,13 +33,8 @@ public class Rygel.TrackerRootContainer : Rygel.SimpleContainer {
public TrackerRootContainer (string title) {
base.root (title);
- this.add_child (new TrackerSearchContainer (
- "15",
- this,
- "Videos",
- new TrackerVideoItemFactory ()));
-
this.add_child (new TrackerMusic ("14", this, "Music"));
+ this.add_child (new TrackerVideos ("15", this, "Vidoes"));
this.add_child (new TrackerPictures ("16", this, "Pictures"));
}
}
diff --git a/src/plugins/tracker/rygel-tracker-videos.vala b/src/plugins/tracker/rygel-tracker-videos.vala
new file mode 100644
index 0000000..bc798de
--- /dev/null
+++ b/src/plugins/tracker/rygel-tracker-videos.vala
@@ -0,0 +1,40 @@
+/*
+ * Copyright (C) 2009 Nokia Corporation.
+ *
+ * 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 Gee;
+
+/**
+ * Container listing video content hierarchy.
+ */
+public class Rygel.TrackerVideos : Rygel.SimpleContainer {
+ public TrackerVideos (string id,
+ MediaContainer parent,
+ string title) {
+ base (id, parent, title);
+
+ var item_factory = new TrackerVideoItemFactory ();
+
+ this.add_child (new TrackerTags ("20", this, item_factory));
+ }
+}
+
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]