2 * irreco - Ir Remote Control
3 * Copyright (C) 2007,2008 Sami Mäki (t5masa02@students.oamk.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 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
23 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
25 * Make sure that typedefs are available before we include anything elese.
27 * This makes sure that whatever other structures that depend on structures
28 * defined in this file will compile OK recardles of header inclusion order.
30 #ifndef __IRRECO_WEBDB_UPLOAD_DLG_H_TYPEDEF
31 #define __IRRECO_WEBDB_UPLOAD_DLG_H_TYPEDEF
33 #define IRRECO_TYPE_WEBDB_UPLOAD_DLG irreco_webdb_upload_dlg_get_type()
34 #define IRRECO_WEBDB_UPLOAD_DLG(obj) \
35 (G_TYPE_CHECK_INSTANCE_CAST ((obj), IRRECO_TYPE_WEBDB_UPLOAD_DLG, \
36 IrrecoWebdbUploadDlg))
37 #define IRRECO_WEBDB_UPLOAD_DLG_CLASS(klass) \
38 (G_TYPE_CHECK_CLASS_CAST ((klass), IRRECO_TYPE_WEBDB_UPLOAD_DLG, \
39 IrrecoWebdbUploadDlgClass))
40 #define IRRECO_IS_WEBDB_UPLOAD_DLG(obj) \
41 (G_TYPE_CHECK_INSTANCE_TYPE ((obj), IRRECO_TYPE_WEBDB_UPLOAD_DLG))
42 #define IRRECO_IS_WEBDB_UPLOAD_DLG_CLASS(klass) \
43 (G_TYPE_CHECK_CLASS_TYPE ((klass), IRRECO_TYPE_WEBDB_UPLOAD_DLG))
44 #define IRRECO_WEBDB_UPLOAD_DLG_GET_CLASS(obj) \
45 (G_TYPE_INSTANCE_GET_CLASS ((obj), IRRECO_TYPE_WEBDB_UPLOAD_DLG, \
46 IrrecoWebdbUploadDlgClass))
48 typedef struct _IrrecoWebdbUploadDlg IrrecoWebdbUploadDlg
;
49 typedef struct _IrrecoWebdbUploadDlgClass IrrecoWebdbUploadDlgClass
;
51 #endif /* _IRRECO_WEBDB_UPLOAD_DLG_H_TYPEDEF */
55 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
57 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
58 #ifndef __IRRECO_WEBDB_UPLOAD_DLG_H__
59 #define __IRRECO_WEBDB_UPLOAD_DLG_H__
61 #include "irreco_dlg.h"
62 #include "irreco_data.h"
65 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
67 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
69 struct _IrrecoWebdbUploadDlg
{
71 IrrecoData
*irreco_data
;
74 const gchar
*category
;
75 const gchar
*file_hash
;
76 const gchar
*file_name
;
77 const gchar
*manufacturer
;
80 const gchar
*password
;
83 GtkWidget
*categories
;
84 GtkWidget
*manufacturers
;
88 struct _IrrecoWebdbUploadDlgClass
{
89 IrrecoDlgClass parent_class
;
93 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
95 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
99 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
101 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
103 GType
irreco_webdb_upload_dlg_get_type (void);
104 IrrecoWebdbUploadDlg
*irreco_webdb_upload_dlg_new (IrrecoData
*irreco_data
,
106 void irreco_show_webdb_upload_dlg(IrrecoData
*irreco_data
, GtkWindow
*parent
,
107 IrrecoBackendFileContainer
*file_container
);
108 gboolean
irreco_webdb_upload_dlg_add_configuration_cache(
109 IrrecoWebdbUploadDlg
*self
, gchar
*pwhash
);
110 gboolean
irreco_webdb_upload_dlg_add_configuration(IrrecoWebdbUploadDlg
*self
);
111 gboolean
irreco_webdb_upload_dlg_populate_category_cbentry(
112 IrrecoWebdbUploadDlg
*self
);
113 gboolean
irreco_webdb_upload_dlg_populate_manufacturer_cbentry(
114 IrrecoWebdbUploadDlg
*self
);
116 #endif /* __IRRECO_WEBDB_UPLOAD_DLG_H__ */