Clean code
[irreco.git] / irreco / src / core / irreco_backend_select_dlg.h
blob6dd007629676a5dc94ab66ea4ef3c970def6d116
1 /*
2 * irreco - Ir Remote Control
3 * Copyright (C) 2007 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.
20 /**
21 * @addtogroup IrrecoBackendSelectDlg
22 * @{
25 /**
26 * @file
27 * Header file of @ref IrrecoBackendSelectDlg.
30 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
31 /* Typedef */
32 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
34 * Make sure that typedefs are available before we include anything elese.
36 * This makes sure that whatever other structures that depend on structures
37 * defined in this file will compile OK recardles of header inclusion order.
39 #ifndef __IRRECO_BACKEND_SELECT_DLG_TYPEDEF__
40 #define __IRRECO_BACKEND_SELECT_DLG_TYPEDEF__
41 #define IRRECO_TYPE_BACKEND_SELECT_DLG irreco_backend_select_dlg_get_type()
42 #define IRRECO_BACKEND_SELECT_DLG(obj) \
43 (G_TYPE_CHECK_INSTANCE_CAST ((obj), \
44 IRRECO_TYPE_BACKEND_SELECT_DLG, IrrecoBackendSelectDlg))
45 #define IRRECO_BACKEND_SELECT_DLG_CLASS(klass) \
46 (G_TYPE_CHECK_CLASS_CAST ((klass), \
47 IRRECO_TYPE_BACKEND_SELECT_DLG, IrrecoBackendSelectDlgClass))
48 #define IRRECO_IS_BACKEND_SELECT_DLG(obj) \
49 (G_TYPE_CHECK_INSTANCE_TYPE ((obj), \
50 IRRECO_TYPE_BACKEND_SELECT_DLG))
51 #define IRRECO_IS_BACKEND_SELECT_DLG_CLASS(klass) \
52 (G_TYPE_CHECK_CLASS_TYPE ((klass), \
53 IRRECO_TYPE_BACKEND_SELECT_DLG))
54 #define IRRECO_BACKEND_SELECT_DLG_GET_CLASS(obj) \
55 (G_TYPE_INSTANCE_GET_CLASS ((obj), \
56 IRRECO_TYPE_BACKEND_SELECT_DLG, IrrecoBackendSelectDlgClass))
58 typedef struct _IrrecoBackendSelectDlg IrrecoBackendSelectDlg;
59 typedef struct _IrrecoBackendSelectDlgClass IrrecoBackendSelectDlgClass;
61 #endif /* __IRRECO_BACKEND_SELECT_DLG_TYPEDEF__ */
65 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
66 /* Include */
67 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
68 #ifndef __IRRECO_BACKEND_SELECT_DLG__
69 #define __IRRECO_BACKEND_SELECT_DLG__
70 #include "irreco.h"
71 #include "irreco_dlg.h"
72 #include "irreco_data.h"
73 #include "irreco_listbox_text.h"
77 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
78 /* Datatypes */
79 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
81 struct _IrrecoBackendSelectDlg {
82 IrrecoDlg parent;
84 IrrecoData *irreco_data;
85 GtkWidget *listbox;
88 struct _IrrecoBackendSelectDlgClass {
89 IrrecoDlgClass parent_class;
93 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
94 /* Macro */
95 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
99 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
100 /* Prototypes */
101 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
102 GType irreco_backend_select_dlg_get_type(void);
103 GtkWidget * irreco_backend_select_dlg_new(IrrecoData *irreco_data,
104 GtkWindow *parent);
105 gboolean irreco_show_backend_select_dlg(IrrecoData *irreco_data,
106 GtkWindow *parent,
107 IrrecoBackendLib ** backend_lib);
108 void irreco_backend_select_dlg_set_irreco_data(IrrecoBackendSelectDlg *self,
109 IrrecoData *irreco_data);
111 #endif /* __IRRECO_BACKEND_SELECT_DLG__ */
113 /** @} */