/* rygel-tracker-artists.c generated by valac 0.56.1, the Vala compiler
 * generated from rygel-tracker-artists.vala, do not modify */

/*
 * 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.1 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 library; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
 */

#include "rygel-tracker3.h"
#include <glib.h>
#include "rygel-server.h"
#include <stdlib.h>
#include <string.h>
#include <glib/gi18n-lib.h>

enum  {
	RYGEL_TRACKER_ARTISTS_0_PROPERTY,
	RYGEL_TRACKER_ARTISTS_NUM_PROPERTIES
};
static GParamSpec* rygel_tracker_artists_properties[RYGEL_TRACKER_ARTISTS_NUM_PROPERTIES];
#define _g_free0(var) (var = (g_free (var), NULL))

static gpointer rygel_tracker_artists_parent_class = NULL;

static GType rygel_tracker_artists_get_type_once (void);

RygelTrackerArtists*
rygel_tracker_artists_construct (GType object_type,
                                 RygelTrackerMusic* parent)
{
	RygelTrackerArtists * self = NULL;
	const gchar* _tmp0_;
	const gchar* _tmp1_;
	gchar* _tmp2_;
	gchar* _tmp3_;
	RygelTrackerItemFactory* _tmp4_;
	g_return_val_if_fail (parent != NULL, NULL);
	_tmp0_ = rygel_media_object_get_id ((RygelMediaObject*) parent);
	_tmp1_ = _tmp0_;
	_tmp2_ = g_strconcat (_tmp1_, "Artists", NULL);
	_tmp3_ = _tmp2_;
	_tmp4_ = ((RygelTrackerCategoryContainer*) parent)->item_factory;
	self = (RygelTrackerArtists*) rygel_tracker_metadata_values_construct (object_type, _tmp3_, (RygelMediaContainer*) parent, _ ("Artists"), _tmp4_, "upnp:artist", RYGEL_MEDIA_CONTAINER_MUSIC_ARTIST);
	_g_free0 (_tmp3_);
	return self;
}

RygelTrackerArtists*
rygel_tracker_artists_new (RygelTrackerMusic* parent)
{
	return rygel_tracker_artists_construct (RYGEL_TRACKER_TYPE_ARTISTS, parent);
}

static void
rygel_tracker_artists_class_init (RygelTrackerArtistsClass * klass,
                                  gpointer klass_data)
{
	rygel_tracker_artists_parent_class = g_type_class_peek_parent (klass);
}

static void
rygel_tracker_artists_instance_init (RygelTrackerArtists * self,
                                     gpointer klass)
{
}

/**
 * Container listing artists as containers.
 */
static GType
rygel_tracker_artists_get_type_once (void)
{
	static const GTypeInfo g_define_type_info = { sizeof (RygelTrackerArtistsClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) rygel_tracker_artists_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (RygelTrackerArtists), 0, (GInstanceInitFunc) rygel_tracker_artists_instance_init, NULL };
	GType rygel_tracker_artists_type_id;
	rygel_tracker_artists_type_id = g_type_register_static (RYGEL_TRACKER_TYPE_METADATA_VALUES, "RygelTrackerArtists", &g_define_type_info, 0);
	return rygel_tracker_artists_type_id;
}

GType
rygel_tracker_artists_get_type (void)
{
	static volatile gsize rygel_tracker_artists_type_id__once = 0;
	if (g_once_init_enter (&rygel_tracker_artists_type_id__once)) {
		GType rygel_tracker_artists_type_id;
		rygel_tracker_artists_type_id = rygel_tracker_artists_get_type_once ();
		g_once_init_leave (&rygel_tracker_artists_type_id__once, rygel_tracker_artists_type_id);
	}
	return rygel_tracker_artists_type_id__once;
}

