Added button image data transmission from
[irreco.git] / irreco / src / core / irreco_webdb_upload_dlg.h
blobb7dee48240dec0f8014bc685d58ecb32123460e8
1 /*
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.
20 /**
21 * @addtogroup IrrecoWebdbUploadDlg
22 * @{
25 /**
26 * @file
27 * Header file of @ref IrrecoWebdbUploadDlg.
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_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 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
64 /* Include */
65 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
66 #ifndef __IRRECO_WEBDB_UPLOAD_DLG_H__
67 #define __IRRECO_WEBDB_UPLOAD_DLG_H__
68 #include "irreco.h"
69 #include "irreco_dlg.h"
70 #include "irreco_data.h"
71 /* Include the prototypes for GConf client functions. */
72 #include <gconf/gconf-client.h>
75 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
76 /* Datatypes */
77 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
79 struct _IrrecoWebdbUploadDlg {
80 IrrecoDlg parent;
81 IrrecoData *irreco_data;
83 const gchar *backend;
84 const gchar *category;
85 const gchar *file_hash;
86 const gchar *file_name;
87 const gchar *manufacturer;
88 const gchar *model;
89 const gchar *user;
90 const gchar *password;
91 const gchar *data;
93 GtkWidget *categories;
94 GtkWidget *manufacturers;
95 GtkWidget *models;
96 GtkWidget *entry_user;
99 struct _IrrecoWebdbUploadDlgClass {
100 IrrecoDlgClass parent_class;
104 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
105 /* Macro */
106 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
110 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
111 /* Prototypes */
112 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
114 GType irreco_webdb_upload_dlg_get_type (void);
115 IrrecoWebdbUploadDlg *irreco_webdb_upload_dlg_new (IrrecoData *irreco_data,
116 GtkWindow *parent);
117 void irreco_show_webdb_upload_dlg(IrrecoData *irreco_data, GtkWindow *parent,
118 IrrecoBackendFileContainer *file_container);
119 gboolean irreco_webdb_upload_dlg_add_configuration_cache(
120 IrrecoWebdbUploadDlg *self, gchar *pwhash);
121 gboolean irreco_webdb_upload_dlg_add_configuration(IrrecoWebdbUploadDlg *self);
122 gboolean irreco_webdb_upload_dlg_populate_category_cbentry(
123 IrrecoWebdbUploadDlg *self);
124 gboolean irreco_webdb_upload_dlg_populate_manufacturer_cbentry(
125 IrrecoWebdbUploadDlg *self);
126 void irreco_webdb_upload_dlg_store_user(const gchar *default_user);
127 const gchar* irreco_webdb_upload_dlg_get_stored_user();
128 /* void irreco_webdb_upload_dlg_get_stored_user(); */
130 #endif /* __IRRECO_WEBDB_UPLOAD_DLG_H__ */
132 /** @} */