2 * irreco - Ir Remote Control
3 * Copyright (C) 2007,2008 Sami Mäki (kasmra@xob.kapsi.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 IrrecoWebdbUploadDlg
27 * Header file of @ref IrrecoWebdbUploadDlg.
30 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
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_WEBDB_UPLOAD_DLG_H_TYPEDEF
40 #define __IRRECO_WEBDB_UPLOAD_DLG_H_TYPEDEF
42 #define IRRECO_TYPE_WEBDB_UPLOAD_DLG irreco_webdb_upload_dlg_get_type()
43 #define IRRECO_WEBDB_UPLOAD_DLG(obj) \
44 (G_TYPE_CHECK_INSTANCE_CAST ((obj), IRRECO_TYPE_WEBDB_UPLOAD_DLG, \
45 IrrecoWebdbUploadDlg))
46 #define IRRECO_WEBDB_UPLOAD_DLG_CLASS(klass) \
47 (G_TYPE_CHECK_CLASS_CAST ((klass), IRRECO_TYPE_WEBDB_UPLOAD_DLG, \
48 IrrecoWebdbUploadDlgClass))
49 #define IRRECO_IS_WEBDB_UPLOAD_DLG(obj) \
50 (G_TYPE_CHECK_INSTANCE_TYPE ((obj), IRRECO_TYPE_WEBDB_UPLOAD_DLG))
51 #define IRRECO_IS_WEBDB_UPLOAD_DLG_CLASS(klass) \
52 (G_TYPE_CHECK_CLASS_TYPE ((klass), IRRECO_TYPE_WEBDB_UPLOAD_DLG))
53 #define IRRECO_WEBDB_UPLOAD_DLG_GET_CLASS(obj) \
54 (G_TYPE_INSTANCE_GET_CLASS ((obj), IRRECO_TYPE_WEBDB_UPLOAD_DLG, \
55 IrrecoWebdbUploadDlgClass))
57 typedef struct _IrrecoWebdbUploadDlg IrrecoWebdbUploadDlg
;
58 typedef struct _IrrecoWebdbUploadDlgClass IrrecoWebdbUploadDlgClass
;
60 #endif /* _IRRECO_WEBDB_UPLOAD_DLG_H_TYPEDEF */
63 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
65 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
66 #ifndef __IRRECO_WEBDB_UPLOAD_DLG_H__
67 #define __IRRECO_WEBDB_UPLOAD_DLG_H__
69 #include "irreco_dlg.h"
70 #include "irreco_data.h"
71 #include "irreco_login_dlg.h"
72 #include "irreco_device_dlg.h"
74 /* Include the prototypes for GConf client functions. */
75 #include <gconf/gconf-client.h>
78 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
80 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
82 struct _IrrecoWebdbUploadDlg
{
84 IrrecoData
*irreco_data
;
87 const gchar
*category
;
88 const gchar
*file_hash
;
89 const gchar
*file_name
;
90 const gchar
*manufacturer
;
96 GtkWidget
*categories
;
97 GtkWidget
*manufacturers
;
102 struct _IrrecoWebdbUploadDlgClass
{
103 IrrecoDlgClass parent_class
;
107 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
109 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
113 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
115 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
117 GType
irreco_webdb_upload_dlg_get_type (void);
118 IrrecoWebdbUploadDlg
*irreco_webdb_upload_dlg_new (IrrecoData
*irreco_data
,
120 gboolean
irreco_show_webdb_upload_dlg(IrrecoData
*irreco_data
, GtkWindow
*parent
,
121 IrrecoBackendFileContainer
*file_container
,
122 const gchar
*device_description
,
125 gboolean
irreco_webdb_upload_dlg_add_configuration_cache(
126 IrrecoWebdbUploadDlg
*self
);
127 gboolean
irreco_webdb_upload_dlg_add_configuration(IrrecoWebdbUploadDlg
*self
);
128 gboolean
irreco_webdb_upload_dlg_populate_category_cbentry(
129 IrrecoWebdbUploadDlg
*self
);
130 gboolean
irreco_webdb_upload_dlg_populate_manufacturer_cbentry(
131 IrrecoWebdbUploadDlg
*self
);
133 #endif /* __IRRECO_WEBDB_UPLOAD_DLG_H__ */