From 1ed77d77cf9d342c6fd4f50213a98d979c8dc0ee Mon Sep 17 00:00:00 2001 From: "Zeeshan Ali (Khattak)" Date: Mon, 27 Sep 2010 15:50:45 +0300 Subject: [PATCH] tracker: Add forgotten file from d8cae15 --- src/plugins/tracker/rygel-tracker-genre.vala | 39 ++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 src/plugins/tracker/rygel-tracker-genre.vala 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) + * + * + * 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); + } +} + -- 2.7.4