Clean code
[irreco.git] / irreco / src / core / irreco_backend_err_dlg.h
blobc230c177467374e595fb9ede2ad4954777a146a3
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 IrrecoBackendErrDlg
22 * @{
25 /**
26 * @file
27 * Header file of @ref IrrecoBackendErrDlg.
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_ERR_DLG_TYPEDEF__
40 #define __IRRECO_BACKEND_ERR_DLG_TYPEDEF__
41 #define IRRECO_TYPE_BACKEND_ERR_DLG irreco_backend_err_dlg_get_type()
43 #define IRRECO_BACKEND_ERR_DLG(obj) \
44 (G_TYPE_CHECK_INSTANCE_CAST ((obj), \
45 IRRECO_TYPE_BACKEND_ERR_DLG, IrrecoBackendErrDlg))
47 #define IRRECO_BACKEND_ERR_DLG_CLASS(klass) \
48 (G_TYPE_CHECK_CLASS_CAST ((klass), \
49 IRRECO_TYPE_BACKEND_ERR_DLG, IrrecoBackendErrDlgClass))
51 #define IRRECO_IS_BACKEND_ERR_DLG(obj) \
52 (G_TYPE_CHECK_INSTANCE_TYPE ((obj), \
53 IRRECO_TYPE_BACKEND_ERR_DLG))
55 #define IRRECO_IS_BACKEND_ERR_DLG_CLASS(klass) \
56 (G_TYPE_CHECK_CLASS_TYPE ((klass), \
57 IRRECO_TYPE_BACKEND_ERR_DLG))
59 #define IRRECO_BACKEND_ERR_DLG_GET_CLASS(obj) \
60 (G_TYPE_INSTANCE_GET_CLASS ((obj), \
61 IRRECO_TYPE_BACKEND_ERR_DLG, IrrecoBackendErrDlgClass))
63 typedef struct _IrrecoBackendErrDlg IrrecoBackendErrDlg;
64 typedef struct _IrrecoBackendErrDlgClass IrrecoBackendErrDlgClass;
66 #endif /* __IRRECO_BACKEND_ERR_DLG_TYPEDEF__ */
70 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
71 /* Include */
72 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
73 #ifndef __IRRECO_BACKEND_ERR_DLG__
74 #define __IRRECO_BACKEND_ERR_DLG__
75 #include "irreco.h"
76 #include "irreco_dlg.h"
80 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
81 /* Datatypes */
82 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
83 struct _IrrecoBackendErrDlg {
84 IrrecoDlg parent;
86 GtkWidget* backend;
87 GtkWidget* instace;
88 GtkWidget* code;
89 GtkWidget* message;
92 struct _IrrecoBackendErrDlgClass{
93 IrrecoDlgClass parent_class;
98 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
99 /* Macro */
100 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
104 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
105 /* Prototypes */
106 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
107 GType irreco_backend_err_dlg_get_type (void);
108 GtkWidget* irreco_backend_err_dlg_new (GtkWindow *parent,
109 const gchar *backend,
110 const gchar *instace,
111 const gchar *code,
112 const gchar *message);
113 void irreco_show_backend_err_dlg (GtkWindow *parent,
114 const gchar *backend,
115 const gchar *instace,
116 const gchar *code,
117 const gchar *message);
120 #endif /* __IRRECO_BACKEND_ERR_DLG__ */
122 /** @} */