Imported Upstream version 0.10.23
[profile/ivi/gst-plugins-bad.git] / tests / examples / scaletempo / demo-gui.h
1 /* demo-gui.h
2  * Copyright (C) 2008 Rov Juvano <rovjuvano@users.sourceforge.net>
3  *
4  * This program is free software: you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License as published by
6  * the Free Software Foundation, either version 3 of the License, or
7  * (at your option) any later version.
8  *
9  * This program is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12  * GNU General Public License for more details.
13  *
14  * You should have received a copy of the GNU General Public License
15  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
16  */
17
18 #ifndef __DEMO_GUI_H_INCLUDED_
19 #define __DEMO_GUI_H_INCLUDED_
20
21 #include <glib-object.h>
22 #include "demo-player.h"
23
24 G_BEGIN_DECLS
25
26 #define DEMO_TYPE_GUI          (demo_gui_get_type())
27 #define DEMO_GUI(o)            (G_TYPE_CHECK_INSTANCE_CAST((o), DEMO_TYPE_GUI, DemoGui))
28 #define DEMO_IS_GUI(o)         (G_TYPE_CHECK_INSTANCE_TYPE((o), DEMO_TYPE_GUI))
29 #define DEMO_GUI_TYPE(o)       (G_TYPE_FROM_INSTANCE (o))
30 #define DEMO_GUI_TYPE_NAME(o)  (g_type_name (DEMO_GUI_GUI (o)))
31
32 #define DEMO_GUI_CLASS(c)      (G_TYPE_CHECK_CLASS_CAST((c),    DEMO_TYPE_GUI, DemoGuiClass))
33 #define DEMO_IS_GUI_CLASS(c)   (G_TYPE_CHECK_CLASS_TYPE((c),    DEMO_TYPE_GUI))
34 #define DEMO_GUI_GET_CLASS(o)  (G_TYPE_INSTANCE_GET_CLASS ((o), DEMO_TYPE_GUI, DemoGuiClass))
35
36 typedef struct _DemoGui DemoGui;
37 typedef struct _DemoGuiClass DemoGuiClass;
38
39 struct _DemoGui
40 {
41   GObject parent;
42 };
43
44 struct _DemoGuiClass
45 {
46   GObjectClass parent;
47   void (*set_player)   (DemoGui   *gui, DemoPlayer   *player);
48   void (*set_playlist) (DemoGui   *gui, GList        *uris);
49   void (*show)         (DemoGui   *gui);
50 };
51
52 GType demo_gui_get_type (void);
53
54 void demo_gui_set_player   (DemoGui   *gui, DemoPlayer   *player);
55 void demo_gui_set_playlist (DemoGui   *gui, GList        *uris);
56 void demo_gui_show         (DemoGui   *gui);
57
58 G_END_DECLS
59
60 #endif /* __DEMO_GUI_H_INCLUDED_ */