Added an example to test the WATC module. It lets you query whatsafterthecredits...
[maevies] / src / maevies_window.h
1 /*
2  * maevies_window.h
3  *
4  * This file is part of maevies
5  * Copyright (C) 2009 spenap <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 MAEVIES_WINDOW_H_
20 #define MAEVIES_WINDOW_H_
21
22 #include <hildon/hildon.h>
23 #include <libosso.h>
24
25 #include "maevies_movie.h"
26
27 G_BEGIN_DECLS
28
29 #define MAEVIES_TYPE_WINDOW maevies_window_get_type()
30
31 #define MAEVIES_WINDOW(obj) \
32   (G_TYPE_CHECK_INSTANCE_CAST ((obj), \
33   MAEVIES_TYPE_WINDOW, MaeviesWindow))
34
35 #define MAEVIES_WINDOW_CLASS(klass) \
36   (G_TYPE_CHECK_CLASS_CAST ((klass), \
37   MAEVIES_TYPE_WINDOW, MaeviesWindowClass))
38
39 #define MAEVIES_IS_WINDOW(obj) \
40   (G_TYPE_CHECK_INSTANCE_TYPE ((obj), \
41   MAEVIES_TYPE_WINDOW))
42
43 #define MAEVIES_IS_WINDOW_CLASS(klass) \
44   (G_TYPE_CHECK_CLASS_TYPE ((klass), \
45   MAEVIES_TYPE_WINDOW))
46
47 #define MAEVIES_WINDOW_GET_CLASS(obj) \
48   (G_TYPE_INSTANCE_GET_CLASS ((obj), \
49   MAEVIES_TYPE_WINDOW, MaeviesWindowClass))
50
51 typedef struct _MaeviesWindow MaeviesWindow;
52 typedef struct _MaeviesWindowClass MaeviesWindowClass;
53
54 struct _MaeviesWindow {
55
56         /* The Hildon window */
57         HildonWindow parent;
58
59         /* Osso context */
60         osso_context_t *osso;
61
62         /* "Say hello world" button */
63         GtkWidget *hello_item;
64
65         MaeviesMovie *movie;
66 };
67
68 struct _MaeviesWindowClass {
69         HildonWindowClass parent_class;
70 };
71
72 GType maevies_window_get_type(void);
73
74 MaeviesWindow* maevies_window_new(osso_context_t *osso);
75
76 G_END_DECLS
77
78 #endif /* MAEVIES_WINDOW_H_ */