ac0aa6b902f223c3f49080b2cc7feccf049fef24
[maevies] / src / mvs-watc-movie.h
1 /*
2  * mvs-watc-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_WATC_MOVIE
20 #define _MVS_WATC_MOVIE
21
22 #include <glib-object.h>
23
24 G_BEGIN_DECLS
25
26 enum {
27         MVS_STINGERS_UNKNOWN,
28         MVS_STINGERS_YES,
29         MVS_STINGERS_NO,
30         MVS_STINGERS_LAST
31 };
32
33 #define MVS_TYPE_WATC_MOVIE mvs_watc_movie_get_type()
34 #define MVS_WATC_MOVIE(obj) \
35   (G_TYPE_CHECK_INSTANCE_CAST ((obj), MVS_TYPE_WATC_MOVIE, MvsWatcMovie))
36 #define MVS_WATC_MOVIE_CLASS(klass) \
37   (G_TYPE_CHECK_CLASS_CAST ((klass), MVS_TYPE_WATC_MOVIE, MvsWatcMovieClass))
38 #define MVS_IS_WATC_MOVIE(obj) \
39   (G_TYPE_CHECK_INSTANCE_TYPE ((obj), MVS_TYPE_WATC_MOVIE))
40 #define MVS_IS_WATC_MOVIE_CLASS(klass) \
41   (G_TYPE_CHECK_CLASS_TYPE ((klass), MVS_TYPE_WATC_MOVIE))
42 #define MVS_WATC_MOVIE_GET_CLASS(obj) \
43   (G_TYPE_INSTANCE_GET_CLASS ((obj), MVS_TYPE_WATC_MOVIE, MvsWatcMovieClass))
44
45 typedef struct _MvsWatcMoviePrivate MvsWatcMoviePrivate;
46
47 typedef struct {
48         GObject parent;
49
50         /* <private> */
51         MvsWatcMoviePrivate *priv;
52 } MvsWatcMovie;
53
54 typedef struct {
55         GObjectClass parent_class;
56 } MvsWatcMovieClass;
57
58 GType mvs_watc_movie_get_type (void);
59
60 MvsWatcMovie* mvs_watc_movie_new (const gchar *raw_name);
61
62 gboolean
63 mvs_watc_movie_set_name (MvsWatcMovie *self, const gchar *name);
64
65 const gchar*
66 mvs_watc_movie_get_name (MvsWatcMovie *self);
67
68 gboolean
69 mvs_watc_movie_set_stingers (MvsWatcMovie *self, int stingers);
70
71 gint
72 mvs_watch_movie_get_stingers (MvsWatcMovie *self);
73
74 gboolean
75 mvs_watc_movie_set_year (MvsWatcMovie *self, const gchar *year);
76
77 const gchar*
78 mvs_watc_movie_get_year (MvsWatcMovie *self);
79
80 void
81 mvs_watch_movie_print (MvsWatcMovie *self);
82
83 G_END_DECLS
84
85 #endif /* _MVS_WATC_MOVIE */