0561a8fae3e67ea54243a517949ba4b1ed08e384
[maevies] / src / mvs-tmdb-movie.h
1 /*
2  * mvs-tmdb-movie.h
3  *
4  * This file is part of maevies
5  * Copyright (C) 2010 Simón Pena <spenap@gmail.com>
6  *
7  * This program is free software; you can redistribute it and/or
8  * modify it under the terms of the GNU General Public License as
9  * published by the Free Software Foundation; either version 3 of the
10  * License, or (at your option) any later version.
11  *
12  * This program is distributed in the hope that it will be useful, but
13  * WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
15  * General Public License for more details.
16  *
17  */
18
19 #ifndef _MVS_TMDB_MOVIE
20 #define _MVS_TMDB_MOVIE
21
22 #include <glib-object.h>
23
24 G_BEGIN_DECLS
25
26 #define MVS_TYPE_TMDB_MOVIE mvs_tmdb_movie_get_type()
27 #define MVS_TMDB_MOVIE(obj) \
28   (G_TYPE_CHECK_INSTANCE_CAST ((obj), MVS_TYPE_TMDB_MOVIE, MvsTmdbMovie))
29 #define MVS_TMDB_MOVIE_CLASS(klass) \
30   (G_TYPE_CHECK_CLASS_CAST ((klass), MVS_TYPE_TMDB_MOVIE, MvsTmdbMovieClass))
31 #define MVS_IS_TMDB_MOVIE(obj) \
32   (G_TYPE_CHECK_INSTANCE_TYPE ((obj), MVS_TYPE_TMDB_MOVIE))
33 #define MVS_IS_TMDB_MOVIE_CLASS(klass) \
34   (G_TYPE_CHECK_CLASS_TYPE ((klass), MVS_TYPE_TMDB_MOVIE))
35 #define MVS_TMDB_MOVIE_GET_CLASS(obj) \
36   (G_TYPE_INSTANCE_GET_CLASS ((obj), MVS_TYPE_TMDB_MOVIE, MvsTmdbMovieClass))
37
38 typedef struct _MvsTmdbMoviePrivate MvsTmdbMoviePrivate;
39
40 typedef struct {
41         GObject parent;
42
43         /* <private> */
44         MvsTmdbMoviePrivate *priv;
45 } MvsTmdbMovie;
46
47 typedef struct {
48         GObjectClass parent_class;
49 } MvsTmdbMovieClass;
50
51 GType mvs_tmdb_movie_get_type (void);
52 MvsTmdbMovie* mvs_tmdb_movie_new (void);
53
54 gboolean
55 mvs_tmdb_movie_set_alt_name (MvsTmdbMovie *self, const gchar *alt_name);
56
57 const gchar*
58 mvs_tmdb_movie_get_alt_name (MvsTmdbMovie *self);
59
60 gboolean
61 mvs_tmdb_movie_set_certification (MvsTmdbMovie *self, const gchar *certification);
62
63 const gchar*
64 mvs_tmdb_movie_get_certification (MvsTmdbMovie *self);
65
66 gboolean
67 mvs_tmdb_movie_set_id (MvsTmdbMovie *self, const gchar *id);
68
69 const gchar*
70 mvs_tmdb_movie_get_id (MvsTmdbMovie *self);
71
72 gboolean
73 mvs_tmdb_movie_set_images (MvsTmdbMovie *self, const gchar *images);
74
75 const gchar*
76 mvs_tmdb_movie_get_images (MvsTmdbMovie *self);
77
78 gboolean
79 mvs_tmdb_movie_set_imdb_id (MvsTmdbMovie *self, const gchar *imdb_id);
80
81 const gchar*
82 mvs_tmdb_movie_get_imdb_id (MvsTmdbMovie *self);
83
84 gboolean
85 mvs_tmdb_movie_set_language (MvsTmdbMovie *self, const gchar *language);
86
87 const gchar*
88 mvs_tmdb_movie_get_language (MvsTmdbMovie *self);
89
90 gboolean
91 mvs_tmdb_movie_set_last_modified (MvsTmdbMovie *self,
92                                   const gchar *last_modified);
93
94 const gchar*
95 mvs_tmdb_movie_get_last_modified (MvsTmdbMovie *self);
96
97 gboolean
98 mvs_tmdb_movie_set_name (MvsTmdbMovie *self, const gchar *names);
99
100 const gchar*
101 mvs_tmdb_movie_get_name (MvsTmdbMovie *self);
102
103 gboolean
104 mvs_tmdb_movie_set_overview (MvsTmdbMovie *self, const gchar *overview);
105
106 const gchar*
107 mvs_tmdb_movie_get_overview (MvsTmdbMovie *self);
108
109 gboolean
110 mvs_tmdb_movie_set_popularity (MvsTmdbMovie *self, const gchar *popularity);
111
112 gboolean
113 mvs_tmdb_movie_set_rating (MvsTmdbMovie *self, const gchar *rating);
114
115 const gchar*
116 mvs_tmdb_movie_get_rating (MvsTmdbMovie *self);
117
118 gboolean
119 mvs_tmdb_movie_set_released (MvsTmdbMovie *self, const gchar *released);
120
121 const gchar*
122 mvs_tmdb_movie_get_released (MvsTmdbMovie *self);
123
124 gboolean
125 mvs_tmdb_movie_set_score (MvsTmdbMovie *self, const gchar *score);
126
127 const gchar*
128 mvs_tmdb_movie_get_score (MvsTmdbMovie *self);
129
130 gboolean
131 mvs_tmdb_movie_set_translated (MvsTmdbMovie *self, const gchar *translated);
132
133 const gchar*
134 mvs_tmdb_movie_get_translated (MvsTmdbMovie *self);
135
136 gboolean
137 mvs_tmdb_movie_set_type (MvsTmdbMovie *self, const gchar *type);
138
139 const gchar*
140 mvs_tmdb_movie_get_source_type (MvsTmdbMovie *self);
141
142 gboolean
143 mvs_tmdb_movie_set_url (MvsTmdbMovie *self, const gchar *url);
144
145 const gchar*
146 mvs_tmdb_movie_get_url (MvsTmdbMovie *self);
147
148 void
149 mvs_tmdb_movie_print (MvsTmdbMovie *self);
150
151 G_END_DECLS
152
153 #endif /* _MVS_TMDB_MOVIE */