2 * Copyright (C) 2008 Rov Juvano <rovjuvano@users.sourceforge.net>
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.
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.
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/>.
18 #ifndef __DEMO_GUI_H_INCLUDED_
19 #define __DEMO_GUI_H_INCLUDED_
21 #include <glib-object.h>
22 #include "demo-player.h"
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)))
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))
36 typedef struct _DemoGui DemoGui
;
37 typedef struct _DemoGuiClass DemoGuiClass
;
47 void (*set_player
) (DemoGui
*gui
, DemoPlayer
*player
);
48 void (*set_playlist
) (DemoGui
*gui
, GList
*uris
);
49 void (*show
) (DemoGui
*gui
);
52 GType
demo_gui_get_type (void);
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
);
60 #endif /* __DEMO_GUI_H_INCLUDED_ */