Added README.
[irreco.git] / irreco / src / core / irreco_remote_download_dlg.h
blob12258b01bdcd897c5afd68b99cfb68a10ab81426
1 /*
2 * irreco - Ir Remote Control
3 * Copyright (C) 2008 Joni Kokko (t5kojo01@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.
20 /**
21 * @addtogroup IrrecoRemoteDownloadDlg
22 * @{
25 /**
26 * @file
27 * Header file of @ref IrrecoRemoteDownloadDlg.
32 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
33 /* Typedef */
34 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
36 * Make sure that typedefs are available before we include anything elese.
38 * This makes sure that whatever other structures that depend on structures
39 * defined in this file will compile OK recardles of header inclusion order.
41 #ifndef __IRRECO_REMOTE_DOWNLOAD_DLG_H_TYPEDEF__
42 #define __IRRECO_REMOTE_DOWNLOAD_DLG_H_TYPEDEF__
44 #define IRRECO_TYPE_REMOTE_DOWNLOAD_DLG irreco_remote_download_dlg_get_type()
46 #define IRRECO_REMOTE_DOWNLOAD_DLG(obj) \
47 (G_TYPE_CHECK_INSTANCE_CAST ((obj), \
48 IRRECO_TYPE_REMOTE_DOWNLOAD_DLG, IrrecoRemoteDownloadDlg))
50 #define IRRECO_REMOTE_DOWNLOAD_DLG_CLASS(klass) \
51 (G_TYPE_CHECK_CLASS_CAST ((klass), \
52 IRRECO_TYPE_REMOTE_DOWNLOAD_DLG, IrrecoRemoteDownloadDlgClass))
54 #define IRRECO_IS_REMOTE_DOWNLOAD_DLG(obj) \
55 (G_TYPE_CHECK_INSTANCE_TYPE ((obj), \
56 IRRECO_TYPE_REMOTE_DOWNLOAD_DLG))
58 #define IRRECO_IS_REMOTE_DOWNLOAD_DLG_CLASS(klass) \
59 (G_TYPE_CHECK_CLASS_TYPE ((klass), IRRECO_TYPE_REMOTE_DOWNLOAD_DLG))
61 #define IRRECO_REMOTE_DOWNLOAD_DLG_GET_CLASS(obj) \
62 (G_TYPE_INSTANCE_GET_CLASS ((obj), \
63 IRRECO_TYPE_REMOTE_DOWNLOAD_DLG, IrrecoRemoteDownloadDlgClass))
65 typedef struct _IrrecoRemoteDownloadDlgClass IrrecoRemoteDownloadDlgClass;
66 typedef struct _IrrecoRemoteDownloadDlg IrrecoRemoteDownloadDlg;
67 #endif /* __IRRECO_REMOTE_DOWNLOAD_DLG_H_TYPEDEF__ */
71 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
72 /* Include */
73 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
74 #ifndef __IRRECO_REMOTE_DOWNLOAD_DLG_H__
75 #define __IRRECO_REMOTE_DOWNLOAD_DLG_H__
76 #include "irreco.h"
77 #include "irreco_data.h"
78 #include "irreco_dlg.h"
79 #include "irreco_webdb_remote.h"
80 #include <glib-object.h>
84 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
85 /* Datatypes */
86 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
88 struct _IrrecoRemoteDownloadDlg {
89 IrrecoDlg parent;
90 IrrecoData *irreco_data;
91 GtkWidget *banner;
92 gint loader_func_id;
93 gint loader_state;
94 gint loader_pos;
95 GtkTreeIter *loader_parent_iter;
96 IrrecoWebdbRemote *remote;
98 /* Remotes */
99 GtkTreeStore *tree_store;
100 GtkTreeView *tree_view;
102 /* Details */
103 GtkWidget *details;
104 GtkWidget *help_text;
105 GtkWidget *details_model;
106 GtkWidget *details_creator;
107 GtkWidget *details_backends;
108 GtkWidget *details_themes;
109 GtkWidget *details_downloaded;
110 GtkWidget *details_comment;
113 struct _IrrecoRemoteDownloadDlgClass {
114 IrrecoDlgClass parent_class;
119 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
120 /* Prototypes */
121 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
123 GType irreco_remote_download_dlg_get_type (void);
125 IrrecoRemoteDownloadDlg* irreco_remote_download_dlg_new(IrrecoData *irreco_data,
126 GtkWindow *parent);
128 gboolean irreco_show_remote_download_dlg(IrrecoData *irreco_data,
129 GtkWindow *parent);
132 #endif /* __IRRECO_REMOTE_DOWNLOAD_DLG_H__ */
134 /** @} */