rygel-media-tracker.vala \
rygel-tracker-root-container.vala \
rygel-tracker-music.vala \
+ rygel-tracker-pictures.vala \
rygel-tracker-metadata-values.vala \
rygel-tracker-tags.vala \
rygel-tracker-search-container.vala \
--- /dev/null
+/*
+ * 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 Pictures content hierarchy.
+ */
+public class Rygel.TrackerPictures : Rygel.SimpleContainer {
+ public TrackerPictures (string id,
+ MediaContainer parent,
+ string title) {
+ base (id, parent, title);
+
+ var item_factory = new TrackerPictureItemFactory ();
+
+ this.add_child (new TrackerTags ("19", this, item_factory));
+ }
+}
+
base.root (title);
this.add_child (new TrackerSearchContainer (
- "16",
- this,
- "Pictures",
- new TrackerPictureItemFactory ()));
- this.add_child (new TrackerSearchContainer (
"15",
this,
"Videos",
new TrackerVideoItemFactory ()));
this.add_child (new TrackerMusic ("14", this, "Music"));
- this.add_child (new TrackerTags ("19", this));
+ this.add_child (new TrackerPictures ("16", this, "Pictures"));
}
}
private const string TITLE = "Tags";
private const string[] KEY_CHAIN = { "nao:hasTag", "nao:prefLabel", null };
- public TrackerTags (string id,
- MediaContainer parent) {
- base (id, parent, TITLE, new TrackerPictureItemFactory (), KEY_CHAIN);
+ public TrackerTags (string id,
+ MediaContainer parent,
+ TrackerItemFactory item_factory) {
+ base (id, parent, TITLE, item_factory, KEY_CHAIN);
}
}