2 * irreco - Ir Remote Control
3 * Copyright (C) 2008 Arto Karppinen (arto.karppinen@iki.fi)
5 * This program is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU General Public License
7 * as published by the Free Software Foundation; either version 2
8 * of the License, or (at your option) any later version.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software Foundation,
17 * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
21 * @addtogroup IrrecoThemeDownloadDlg
27 * Header file of @ref IrrecoThemeDownloadDlg.
32 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
34 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
36 * Make sure that typedefs are available before we include anything elese.
38 * This makes sure that whatever other structures that depend on structures
39 * defined in this file will compile OK recardles of header inclusion order.
41 #ifndef _IRRECO_THEME_DOWNLOAD_DLG_H_TYPEDEF__
42 #define _IRRECO_THEME_DOWNLOAD_DLG_H_TYPEDEF__
44 #define IRRECO_TYPE_THEME_DOWNLOAD_DLG irreco_theme_download_dlg_get_type()
46 #define IRRECO_THEME_DOWNLOAD_DLG(obj) \
47 (G_TYPE_CHECK_INSTANCE_CAST ((obj), IRRECO_TYPE_THEME_DOWNLOAD_DLG, \
48 IrrecoThemeDownloadDlg))
50 #define IRRECO_THEME_DOWNLOAD_DLG_CLASS(klass) \
51 (G_TYPE_CHECK_CLASS_CAST ((klass), IRRECO_TYPE_THEME_DOWNLOAD_DLG, \
52 IrrecoThemeDownloadDlgClass))
54 #define IRRECO_IS_THEME_DOWNLOAD_DLG(obj) \
55 (G_TYPE_CHECK_INSTANCE_TYPE ((obj), IRRECO_TYPE_THEME_DOWNLOAD_DLG))
57 #define IRRECO_IS_THEME_DOWNLOAD_DLG_CLASS(klass) \
58 (G_TYPE_CHECK_CLASS_TYPE ((klass), IRRECO_TYPE_THEME_DOWNLOAD_DLG))
60 #define IRRECO_THEME_DOWNLOAD_DLG_GET_CLASS(obj) \
61 (G_TYPE_INSTANCE_GET_CLASS ((obj), IRRECO_TYPE_THEME_DOWNLOAD_DLG, \
62 IrrecoThemeDownloadDlgClass))
64 typedef struct _IrrecoThemeDownloadDlg IrrecoThemeDownloadDlg
;
65 typedef struct _IrrecoThemeDownloadDlgClass IrrecoThemeDownloadDlgClass
;
67 #endif /* _IRRECO_THEME_DOWNLOAD_DLG_H_TYPEDEF__ */
71 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
73 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
74 #ifndef __IRRECO_THEME_DOWNLOAD_DLG_H__
75 #define __IRRECO_THEME_DOWNLOAD_DLG_H__
77 #include <glib-object.h>
79 #include "irreco_dlg.h"
80 #include "irreco_data.h"
82 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
84 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
86 struct _IrrecoThemeDownloadDlg
{
93 IrrecoData
*irreco_data
;
94 IrrecoWebdbTheme
*webdb_theme
;
97 gint theme_loader_index
;
99 gboolean theme_downloaded_successfully
;
101 GtkTreeIter
*loader_parent_iter
;
102 GtkTreeIter
*loader_iter
;
105 struct _IrrecoThemeDownloadDlgClass
{
106 IrrecoDlgClass parent_class
;
109 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
111 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
113 GType
irreco_theme_download_dlg_get_type (void);
114 IrrecoThemeDownloadDlg
*irreco_theme_download_dlg_new (GtkWindow
*parent
);
115 gboolean
irreco_theme_download_dlg_run(IrrecoData
*irreco_data
,
122 #endif /* _IRRECO_THEME_DOWNLOAD_DLG_H__ */