/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
/*
 * GData Client
 * Copyright (C) Philip Withnall 2009 <philip@tecnocode.co.uk>
 *
 * GData Client 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.
 *
 * GData Client 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 GData Client.  If not, see <http://www.gnu.org/licenses/>.
 */

#ifndef GDATA_MEDIA_GROUP_H
#define GDATA_MEDIA_GROUP_H

#include <glib.h>
#include <glib-object.h>

#include <gdata/gdata-parsable.h>
#include <gdata/media/gdata-media-category.h>
#include <gdata/media/gdata-media-content.h>
#include <gdata/media/gdata-media-credit.h>
#include <gdata/media/gdata-media-thumbnail.h>

G_BEGIN_DECLS

#define GDATA_TYPE_MEDIA_GROUP		(gdata_media_group_get_type ())
#define GDATA_MEDIA_GROUP(o)		(G_TYPE_CHECK_INSTANCE_CAST ((o), GDATA_TYPE_MEDIA_GROUP, GDataMediaGroup))
#define GDATA_MEDIA_GROUP_CLASS(k)	(G_TYPE_CHECK_CLASS_CAST((k), GDATA_TYPE_MEDIA_GROUP, GDataMediaGroupClass))
#define GDATA_IS_MEDIA_GROUP(o)		(G_TYPE_CHECK_INSTANCE_TYPE ((o), GDATA_TYPE_MEDIA_GROUP))
#define GDATA_IS_MEDIA_GROUP_CLASS(k)	(G_TYPE_CHECK_CLASS_TYPE ((k), GDATA_TYPE_MEDIA_GROUP))
#define GDATA_MEDIA_GROUP_GET_CLASS(o)	(G_TYPE_INSTANCE_GET_CLASS ((o), GDATA_TYPE_MEDIA_GROUP, GDataMediaGroupClass))

typedef struct _GDataMediaGroupPrivate	GDataMediaGroupPrivate;

/**
 * GDataMediaGroup:
 *
 * All the fields in the #GDataMediaGroup structure are private and should never be accessed directly.
 **/
typedef struct {
	GDataParsable parent;
	GDataMediaGroupPrivate *priv;
} GDataMediaGroup;

/**
 * GDataMediaGroupClass:
 *
 * All the fields in the #GDataMediaGroupClass structure are private and should never be accessed directly.
 *
 * Since: 0.4.0
 **/
typedef struct {
	/*< private >*/
	GDataParsableClass parent;

	/*< private >*/
	/* Padding for future expansion */
	void (*_g_reserved0) (void);
	void (*_g_reserved1) (void);
} GDataMediaGroupClass;

GType gdata_media_group_get_type (void) G_GNUC_CONST;

const gchar *gdata_media_group_get_title (GDataMediaGroup *self) G_GNUC_PURE;
void gdata_media_group_set_title (GDataMediaGroup *self, const gchar *title);
const gchar *gdata_media_group_get_description (GDataMediaGroup *self) G_GNUC_PURE;
void gdata_media_group_set_description (GDataMediaGroup *self, const gchar *description);
const gchar * const *gdata_media_group_get_keywords (GDataMediaGroup *self) G_GNUC_PURE;
void gdata_media_group_set_keywords (GDataMediaGroup *self, const gchar * const *keywords);
GDataMediaCategory *gdata_media_group_get_category (GDataMediaGroup *self) G_GNUC_PURE;
void gdata_media_group_set_category (GDataMediaGroup *self, GDataMediaCategory *category);
GDataMediaContent *gdata_media_group_look_up_content (GDataMediaGroup *self, const gchar *type) G_GNUC_PURE;
GList *gdata_media_group_get_contents (GDataMediaGroup *self) G_GNUC_PURE;
void _gdata_media_group_add_content (GDataMediaGroup *self, GDataMediaContent *content);
GDataMediaCredit *gdata_media_group_get_credit (GDataMediaGroup *self) G_GNUC_PURE;
void _gdata_media_group_set_credit (GDataMediaGroup *self, GDataMediaCredit *credit);
const gchar *gdata_media_group_get_player_uri (GDataMediaGroup *self) G_GNUC_PURE;
gboolean gdata_media_group_is_restricted_in_country (GDataMediaGroup *self, const gchar *country) G_GNUC_PURE;
const gchar *gdata_media_group_get_media_rating (GDataMediaGroup *self, const gchar *rating_type) G_GNUC_PURE;
GList *gdata_media_group_get_thumbnails (GDataMediaGroup *self) G_GNUC_PURE;
void _gdata_media_group_add_thumbnail (GDataMediaGroup *self, GDataMediaThumbnail *thumbnail);

G_END_DECLS

#endif /* !GDATA_MEDIA_GROUP_H */
