Merge branch 'master' of ssh://pege77@mercury.wipsl.com/var/git/irreco-theme-editor
[irreco.git] / irreco / src / core / irreco_webdb_dlg.h
blobaf9b1803f7e8fb0ada7e8e509e0a18312d2e6953
1 /*
2 * irreco - Ir Remote Control
3 * Copyright (C) 2007,2008 Arto Karppinen (arto.karppinen@iki.fi),
4 * Joni Kokko (t5kojo01@students.oamk.fi)
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.
21 /**
22 * @addtogroup IrrecoWebdbDlg
23 * @{
26 /**
27 * @file
28 * Header file of @ref IrrecoWebdbDlg.
31 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
32 /* Typedef */
33 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
35 * Make sure that typedefs are available before we include anything elese.
37 * This makes sure that whatever other structures that depend on structures
38 * defined in this file will compile OK recardles of header inclusion order.
40 #ifndef __IRRECO_WEBDB_DLG_H_TYPEDEF__
41 #define __IRRECO_WEBDB_DLG_H_TYPEDEF__
43 #define IRRECO_TYPE_WEBDB_DLG irreco_webdb_dlg_get_type()
44 #define IRRECO_WEBDB_DLG(obj) \
45 (G_TYPE_CHECK_INSTANCE_CAST ((obj), IRRECO_TYPE_WEBDB_DLG, IrrecoWebdbDlg))
46 #define IRRECO_WEBDB_DLG_CLASS(klass) \
47 (G_TYPE_CHECK_CLASS_CAST ((klass), IRRECO_TYPE_WEBDB_DLG, IrrecoWebdbDlgClass))
48 #define IRRECO_IS_WEBDB_DLG(obj) \
49 (G_TYPE_CHECK_INSTANCE_TYPE ((obj), IRRECO_TYPE_WEBDB_DLG))
50 #define IRRECO_IS_WEBDB_DLG_CLASS(klass) \
51 (G_TYPE_CHECK_CLASS_TYPE ((klass), IRRECO_TYPE_WEBDB_DLG))
52 #define IRRECO_WEBDB_DLG_GET_CLASS(obj) \
53 (G_TYPE_INSTANCE_GET_CLASS ((obj), IRRECO_TYPE_WEBDB_DLG, IrrecoWebdbDlgClass))
55 typedef struct _IrrecoWebdbDlg IrrecoWebdbDlg;
56 typedef struct _IrrecoWebdbDlgClass IrrecoWebdbDlgClass;
58 #endif /* __IRRECO_WEBDB_DLG_H_TYPEDEF__ */
62 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
63 /* Include */
64 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
65 #ifndef __IRRECO_WEBDB_DLG_H__
66 #define __IRRECO_WEBDB_DLG_H__
67 #include "irreco.h"
68 #include "irreco_dlg.h"
69 #include "irreco_data.h"
73 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
74 /* Datatypes */
75 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
77 struct _IrrecoWebdbDlg {
78 IrrecoDlg parent;
79 IrrecoData *irreco_data;
80 GtkTreeStore *tree_store;
81 GtkTreeView *tree_view;
82 GtkWidget *banner;
83 GtkWidget *hbox;
84 IrrecoWebdbConf *config;
85 GtkWidget *config_info;
86 GtkWidget *config_user;
87 GtkWidget *config_backend;
88 GtkWidget *config_category;
89 GtkWidget *config_manuf;
90 GtkWidget *config_model;
91 GtkWidget *config_uploaded;
92 GtkWidget *config_download_count;
93 GtkWidget *scrollbar;
95 gint loader_func_id;
96 gint loader_state;
97 gint loader_pos;
98 /** The loaded items are childern of this iter.*/
99 GtkTreeIter *loader_parent_iter;
102 struct _IrrecoWebdbDlgClass {
103 IrrecoDlgClass parent_class;
108 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
109 /* Macro */
110 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
114 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
115 /* Prototypes */
116 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
117 GType irreco_webdb_dlg_get_type(void);
118 GtkWidget *irreco_webdb_dlg_new(IrrecoData *irreco_data,
119 GtkWindow *parent);
120 void irreco_webdb_dlg_set_irreco_data(IrrecoWebdbDlg *self,
121 IrrecoData *irreco_data);
122 void irreco_show_webdb_dlg(IrrecoData *irreco_data, GtkWindow *parent);
125 #endif /* __IRRECO_WEBDB_DLG_H__ */
127 /** @} */