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

/*
 * 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.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 <stdlib.h>
#include <string.h>
#include <glib.h>
#include "rygel-server.h"
#include <gee.h>
#include <glib-object.h>

enum  {
	RYGEL_TRACKER_PICTURES_0_PROPERTY,
	RYGEL_TRACKER_PICTURES_NUM_PROPERTIES
};
static GParamSpec* rygel_tracker_pictures_properties[RYGEL_TRACKER_PICTURES_NUM_PROPERTIES];
#define _rygel_tracker_item_factory_unref0(var) ((var == NULL) ? NULL : (var = (rygel_tracker_item_factory_unref (var), NULL)))
#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))

static gpointer rygel_tracker_pictures_parent_class = NULL;

static GType rygel_tracker_pictures_get_type_once (void);

RygelTrackerPictures*
rygel_tracker_pictures_construct (GType object_type,
                                  const gchar* id,
                                  RygelMediaContainer* parent,
                                  const gchar* title)
{
	RygelTrackerPictures * self = NULL;
	RygelTrackerPictureItemFactory* _tmp0_;
	RygelTrackerPictureItemFactory* _tmp1_;
	RygelTrackerItemFactory* _tmp2_;
	RygelTrackerYears* _tmp3_;
	RygelTrackerYears* _tmp4_;
	GeeArrayList* _tmp5_;
	GeeArrayList* _tmp6_;
	g_return_val_if_fail (id != NULL, NULL);
	g_return_val_if_fail (parent != NULL, NULL);
	g_return_val_if_fail (title != NULL, NULL);
	_tmp0_ = rygel_tracker_picture_item_factory_new ();
	_tmp1_ = _tmp0_;
	self = (RygelTrackerPictures*) rygel_tracker_category_container_construct (object_type, id, parent, title, (RygelTrackerItemFactory*) _tmp1_);
	_rygel_tracker_item_factory_unref0 (_tmp1_);
	_tmp2_ = ((RygelTrackerCategoryContainer*) self)->item_factory;
	_tmp3_ = rygel_tracker_years_new ((RygelMediaContainer*) self, _tmp2_);
	_tmp4_ = _tmp3_;
	rygel_simple_container_add_child_container ((RygelSimpleContainer*) self, (RygelMediaContainer*) _tmp4_);
	_g_object_unref0 (_tmp4_);
	_tmp5_ = rygel_searchable_container_get_search_classes ((RygelSearchableContainer*) self);
	_tmp6_ = _tmp5_;
	gee_abstract_collection_add ((GeeAbstractCollection*) _tmp6_, RYGEL_IMAGE_ITEM_UPNP_CLASS);
	rygel_tracker_category_container_add_create_class ((RygelTrackerCategoryContainer*) self, RYGEL_IMAGE_ITEM_UPNP_CLASS);
	return self;
}

RygelTrackerPictures*
rygel_tracker_pictures_new (const gchar* id,
                            RygelMediaContainer* parent,
                            const gchar* title)
{
	return rygel_tracker_pictures_construct (RYGEL_TRACKER_TYPE_PICTURES, id, parent, title);
}

static void
rygel_tracker_pictures_class_init (RygelTrackerPicturesClass * klass,
                                   gpointer klass_data)
{
	rygel_tracker_pictures_parent_class = g_type_class_peek_parent (klass);
}

static void
rygel_tracker_pictures_instance_init (RygelTrackerPictures * self,
                                      gpointer klass)
{
}

/**
 * Container listing Pictures content hierarchy.
 */
static GType
rygel_tracker_pictures_get_type_once (void)
{
	static const GTypeInfo g_define_type_info = { sizeof (RygelTrackerPicturesClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) rygel_tracker_pictures_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (RygelTrackerPictures), 0, (GInstanceInitFunc) rygel_tracker_pictures_instance_init, NULL };
	GType rygel_tracker_pictures_type_id;
	rygel_tracker_pictures_type_id = g_type_register_static (RYGEL_TRACKER_TYPE_CATEGORY_CONTAINER, "RygelTrackerPictures", &g_define_type_info, 0);
	return rygel_tracker_pictures_type_id;
}

GType
rygel_tracker_pictures_get_type (void)
{
	static volatile gsize rygel_tracker_pictures_type_id__once = 0;
	if (g_once_init_enter (&rygel_tracker_pictures_type_id__once)) {
		GType rygel_tracker_pictures_type_id;
		rygel_tracker_pictures_type_id = rygel_tracker_pictures_get_type_once ();
		g_once_init_leave (&rygel_tracker_pictures_type_id__once, rygel_tracker_pictures_type_id);
	}
	return rygel_tracker_pictures_type_id__once;
}

