Modified xmlrpc to send irreco version in correct format.
[irreco.git] / irreco / src / core / irreco_webdb_dlg.h
blob4a22460a0d9232fcf9c0176f719198991c72222d
1 /*
2 * irreco - Ir Remote Control
3 * Copyright (C) 2007,2008 Arto Karppinen (arto.karppinen@iki.fi),
4 * Joni Kokko (t5kojo01@students.oamk.fi)
5 *
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public License
8 * as published by the Free Software Foundation; either version 2
9 * of the License, or (at your option) any later version.
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software Foundation,
18 * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
22 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
23 /* Typedef */
24 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
26 * Make sure that typedefs are available before we include anything elese.
28 * This makes sure that whatever other structures that depend on structures
29 * defined in this file will compile OK recardles of header inclusion order.
31 #ifndef __IRRECO_WEBDB_DLG_H_TYPEDEF__
32 #define __IRRECO_WEBDB_DLG_H_TYPEDEF__
34 #define IRRECO_TYPE_WEBDB_DLG irreco_webdb_dlg_get_type()
35 #define IRRECO_WEBDB_DLG(obj) \
36 (G_TYPE_CHECK_INSTANCE_CAST ((obj), IRRECO_TYPE_WEBDB_DLG, IrrecoWebdbDlg))
37 #define IRRECO_WEBDB_DLG_CLASS(klass) \
38 (G_TYPE_CHECK_CLASS_CAST ((klass), IRRECO_TYPE_WEBDB_DLG, IrrecoWebdbDlgClass))
39 #define IRRECO_IS_WEBDB_DLG(obj) \
40 (G_TYPE_CHECK_INSTANCE_TYPE ((obj), IRRECO_TYPE_WEBDB_DLG))
41 #define IRRECO_IS_WEBDB_DLG_CLASS(klass) \
42 (G_TYPE_CHECK_CLASS_TYPE ((klass), IRRECO_TYPE_WEBDB_DLG))
43 #define IRRECO_WEBDB_DLG_GET_CLASS(obj) \
44 (G_TYPE_INSTANCE_GET_CLASS ((obj), IRRECO_TYPE_WEBDB_DLG, IrrecoWebdbDlgClass))
46 typedef struct _IrrecoWebdbDlg IrrecoWebdbDlg;
47 typedef struct _IrrecoWebdbDlgClass IrrecoWebdbDlgClass;
49 #endif /* __IRRECO_WEBDB_DLG_H_TYPEDEF__ */
53 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
54 /* Include */
55 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
56 #ifndef __IRRECO_WEBDB_DLG_H__
57 #define __IRRECO_WEBDB_DLG_H__
58 #include "irreco.h"
59 #include "irreco_dlg.h"
60 #include "irreco_data.h"
64 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
65 /* Datatypes */
66 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
68 struct _IrrecoWebdbDlg {
69 IrrecoDlg parent;
70 IrrecoData *irreco_data;
71 GtkTreeStore *tree_store;
72 GtkTreeView *tree_view;
73 GtkWidget *banner;
74 GtkWidget *hbox;
75 IrrecoWebdbConf *config;
76 GtkWidget *config_info;
77 GtkWidget *config_user;
78 GtkWidget *config_backend;
79 GtkWidget *config_category;
80 GtkWidget *config_manuf;
81 GtkWidget *config_model;
82 GtkWidget *config_uploaded;
83 GtkWidget *config_download_count;
84 GtkWidget *scrollbar;
86 gint loader_func_id;
87 gint loader_state;
88 gint loader_pos;
89 /** The loaded items are childern of this iter.*/
90 GtkTreeIter *loader_parent_iter;
93 struct _IrrecoWebdbDlgClass {
94 IrrecoDlgClass parent_class;
99 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
100 /* Macro */
101 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
105 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
106 /* Prototypes */
107 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
108 GType irreco_webdb_dlg_get_type(void);
109 GtkWidget *irreco_webdb_dlg_new(IrrecoData *irreco_data,
110 GtkWindow *parent);
111 void irreco_webdb_dlg_set_irreco_data(IrrecoWebdbDlg *self,
112 IrrecoData *irreco_data);
113 void irreco_show_webdb_dlg(IrrecoData *irreco_data, GtkWindow *parent);
116 #endif /* __IRRECO_WEBDB_DLG_H__ */