Blame gdata/media/gdata-media-group.h

Packit 4b6dd7
/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
Packit 4b6dd7
/*
Packit 4b6dd7
 * GData Client
Packit 4b6dd7
 * Copyright (C) Philip Withnall 2009 <philip@tecnocode.co.uk>
Packit 4b6dd7
 *
Packit 4b6dd7
 * GData Client is free software; you can redistribute it and/or
Packit 4b6dd7
 * modify it under the terms of the GNU Lesser General Public
Packit 4b6dd7
 * License as published by the Free Software Foundation; either
Packit 4b6dd7
 * version 2.1 of the License, or (at your option) any later version.
Packit 4b6dd7
 *
Packit 4b6dd7
 * GData Client is distributed in the hope that it will be useful,
Packit 4b6dd7
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit 4b6dd7
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Packit 4b6dd7
 * Lesser General Public License for more details.
Packit 4b6dd7
 *
Packit 4b6dd7
 * You should have received a copy of the GNU Lesser General Public
Packit 4b6dd7
 * License along with GData Client.  If not, see <http://www.gnu.org/licenses/>.
Packit 4b6dd7
 */
Packit 4b6dd7
Packit 4b6dd7
#ifndef GDATA_MEDIA_GROUP_H
Packit 4b6dd7
#define GDATA_MEDIA_GROUP_H
Packit 4b6dd7
Packit 4b6dd7
#include <glib.h>
Packit 4b6dd7
#include <glib-object.h>
Packit 4b6dd7
Packit 4b6dd7
#include <gdata/gdata-parsable.h>
Packit 4b6dd7
#include <gdata/media/gdata-media-category.h>
Packit 4b6dd7
#include <gdata/media/gdata-media-content.h>
Packit 4b6dd7
#include <gdata/media/gdata-media-credit.h>
Packit 4b6dd7
#include <gdata/media/gdata-media-thumbnail.h>
Packit 4b6dd7
Packit 4b6dd7
G_BEGIN_DECLS
Packit 4b6dd7
Packit 4b6dd7
#define GDATA_TYPE_MEDIA_GROUP		(gdata_media_group_get_type ())
Packit 4b6dd7
#define GDATA_MEDIA_GROUP(o)		(G_TYPE_CHECK_INSTANCE_CAST ((o), GDATA_TYPE_MEDIA_GROUP, GDataMediaGroup))
Packit 4b6dd7
#define GDATA_MEDIA_GROUP_CLASS(k)	(G_TYPE_CHECK_CLASS_CAST((k), GDATA_TYPE_MEDIA_GROUP, GDataMediaGroupClass))
Packit 4b6dd7
#define GDATA_IS_MEDIA_GROUP(o)		(G_TYPE_CHECK_INSTANCE_TYPE ((o), GDATA_TYPE_MEDIA_GROUP))
Packit 4b6dd7
#define GDATA_IS_MEDIA_GROUP_CLASS(k)	(G_TYPE_CHECK_CLASS_TYPE ((k), GDATA_TYPE_MEDIA_GROUP))
Packit 4b6dd7
#define GDATA_MEDIA_GROUP_GET_CLASS(o)	(G_TYPE_INSTANCE_GET_CLASS ((o), GDATA_TYPE_MEDIA_GROUP, GDataMediaGroupClass))
Packit 4b6dd7
Packit 4b6dd7
typedef struct _GDataMediaGroupPrivate	GDataMediaGroupPrivate;
Packit 4b6dd7
Packit 4b6dd7
/**
Packit 4b6dd7
 * GDataMediaGroup:
Packit 4b6dd7
 *
Packit 4b6dd7
 * All the fields in the #GDataMediaGroup structure are private and should never be accessed directly.
Packit 4b6dd7
 */
Packit 4b6dd7
typedef struct {
Packit 4b6dd7
	GDataParsable parent;
Packit 4b6dd7
	GDataMediaGroupPrivate *priv;
Packit 4b6dd7
} GDataMediaGroup;
Packit 4b6dd7
Packit 4b6dd7
/**
Packit 4b6dd7
 * GDataMediaGroupClass:
Packit 4b6dd7
 *
Packit 4b6dd7
 * All the fields in the #GDataMediaGroupClass structure are private and should never be accessed directly.
Packit 4b6dd7
 *
Packit 4b6dd7
 * Since: 0.4.0
Packit 4b6dd7
 */
Packit 4b6dd7
typedef struct {
Packit 4b6dd7
	/*< private >*/
Packit 4b6dd7
	GDataParsableClass parent;
Packit 4b6dd7
Packit 4b6dd7
	/*< private >*/
Packit 4b6dd7
	/* Padding for future expansion */
Packit 4b6dd7
	void (*_g_reserved0) (void);
Packit 4b6dd7
	void (*_g_reserved1) (void);
Packit 4b6dd7
} GDataMediaGroupClass;
Packit 4b6dd7
Packit 4b6dd7
GType gdata_media_group_get_type (void) G_GNUC_CONST;
Packit 4b6dd7
Packit 4b6dd7
const gchar *gdata_media_group_get_title (GDataMediaGroup *self) G_GNUC_PURE;
Packit 4b6dd7
void gdata_media_group_set_title (GDataMediaGroup *self, const gchar *title);
Packit 4b6dd7
const gchar *gdata_media_group_get_description (GDataMediaGroup *self) G_GNUC_PURE;
Packit 4b6dd7
void gdata_media_group_set_description (GDataMediaGroup *self, const gchar *description);
Packit 4b6dd7
const gchar * const *gdata_media_group_get_keywords (GDataMediaGroup *self) G_GNUC_PURE;
Packit 4b6dd7
void gdata_media_group_set_keywords (GDataMediaGroup *self, const gchar * const *keywords);
Packit 4b6dd7
GDataMediaCategory *gdata_media_group_get_category (GDataMediaGroup *self) G_GNUC_PURE;
Packit 4b6dd7
void gdata_media_group_set_category (GDataMediaGroup *self, GDataMediaCategory *category);
Packit 4b6dd7
GDataMediaContent *gdata_media_group_look_up_content (GDataMediaGroup *self, const gchar *type) G_GNUC_PURE;
Packit 4b6dd7
GList *gdata_media_group_get_contents (GDataMediaGroup *self) G_GNUC_PURE;
Packit 4b6dd7
void _gdata_media_group_add_content (GDataMediaGroup *self, GDataMediaContent *content);
Packit 4b6dd7
GDataMediaCredit *gdata_media_group_get_credit (GDataMediaGroup *self) G_GNUC_PURE;
Packit 4b6dd7
void _gdata_media_group_set_credit (GDataMediaGroup *self, GDataMediaCredit *credit);
Packit 4b6dd7
const gchar *gdata_media_group_get_player_uri (GDataMediaGroup *self) G_GNUC_PURE;
Packit 4b6dd7
gboolean gdata_media_group_is_restricted_in_country (GDataMediaGroup *self, const gchar *country) G_GNUC_PURE;
Packit 4b6dd7
const gchar *gdata_media_group_get_media_rating (GDataMediaGroup *self, const gchar *rating_type) G_GNUC_PURE;
Packit 4b6dd7
GList *gdata_media_group_get_thumbnails (GDataMediaGroup *self) G_GNUC_PURE;
Packit 4b6dd7
void _gdata_media_group_add_thumbnail (GDataMediaGroup *self, GDataMediaThumbnail *thumbnail);
Packit 4b6dd7
Packit 4b6dd7
G_END_DECLS
Packit 4b6dd7
Packit 4b6dd7
#endif /* !GDATA_MEDIA_GROUP_H */