[rygel] tracker: Add forgotten file from d8cae15



commit 1ed77d77cf9d342c6fd4f50213a98d979c8dc0ee
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date:   Mon Sep 27 15:50:45 2010 +0300

    tracker: Add forgotten file from d8cae15

 src/plugins/tracker/rygel-tracker-genre.vala |   39 ++++++++++++++++++++++++++
 1 files changed, 39 insertions(+), 0 deletions(-)
---
diff --git a/src/plugins/tracker/rygel-tracker-genre.vala b/src/plugins/tracker/rygel-tracker-genre.vala
new file mode 100644
index 0000000..4fac786
--- /dev/null
+++ b/src/plugins/tracker/rygel-tracker-genre.vala
@@ -0,0 +1,39 @@
+/*
+ * Copyright (C) 2009,2010 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.
+ */
+
+/**
+ * Container listing music genres as containers.
+ */
+public class Rygel.Tracker.Genre : MetadataValues {
+    public Genre (Music parent) {
+        var key_chain = new string[] { "nfo:genre", null };
+
+        base (parent.id + "Genre",
+              parent,
+              _("Genre"),
+              parent.item_factory,
+              key_chain,
+              MediaContainer.MUSIC_GENRE);
+    }
+}
+



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]