Added README.
[irreco.git] / irreco / src / core / irreco_theme_upload_dlg.h
blob67c2e013e5254931a0a41b67e68d05da3fc50992
1 /*
2 * irreco - Ir Remote Control
3 * Copyright (C) 2007 Arto Karppinen (arto.karppinen@iki.fi),
4 * Harri Vattulainen (t5vaha01@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 IrrecoThemeUploadDlg
23 * @{
26 /**
27 * @file
28 * Header file of @ref IrrecoThemeUploadDlg.
33 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
34 /* Typedef */
35 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
37 * Make sure that typedefs are available before we include anything elese.
39 * This makes sure that whatever other structures that depend on structures
40 * defined in this file will compile OK recardles of header inclusion order.
42 #ifndef __IRRECO_THEME_UPLOAD_DLG_H_TYPEDEF__
43 #define __IRRECO_THEME_UPLOAD_DLG_H_TYPEDEF__
45 #define IRRECO_TYPE_THEME_UPLOAD_DLG (irreco_theme_upload_dlg_get_type ())
46 #define IRRECO_THEME_UPLOAD_DLG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), IRRECO_TYPE_THEME_UPLOAD_DLG, IrrecoThemeUploadDlg))
47 #define IRRECO_THEME_UPLOAD_DLG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), IRRECO_TYPE_THEME_UPLOAD_DLG, IrrecoThemeUploadDlgClass))
48 #define IRRECO_IS_THEME_UPLOAD_DLG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), IRRECO_TYPE_THEME_UPLOAD_DLG))
49 #define IRRECO_IS_THEME_UPLOAD_DLG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), IRRECO_TYPE_THEME_UPLOAD_DLG))
50 #define IRRECO_THEME_UPLOAD_DLG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), IRRECO_TYPE_THEME_UPLOAD_DLG, IrrecoThemeUploadDlgClass))
52 typedef struct _IrrecoThemeUploadDlgClass IrrecoThemeUploadDlgClass;
53 typedef struct _IrrecoThemeUploadDlg IrrecoThemeUploadDlg;
55 #endif /* __IRRECO_THEME_UPLOAD_DLG_H_TYPEDEF__ */
59 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
60 /* Include */
61 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
62 #ifndef __IRRECO_THEME_UPLOAD_DLG_H__
63 #define __IRRECO_THEME_UPLOAD_DLG_H__
64 #include "irreco.h"
65 #include "irreco_internal_dlg.h"
66 #include "irreco_button.h"
67 #include "irreco_bg_browser_widget.h"
68 #include "irreco_button_browser_widget.h"
69 #include "irreco_login_dlg.h"
73 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
74 /* Datatypes */
75 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
77 struct _IrrecoThemeUploadDlgClass
79 IrrecoInternalDlgClass parent_class;
82 struct _IrrecoThemeUploadDlg
84 IrrecoInternalDlg parent_instance;
86 GtkWindow *parent_window;
87 IrrecoData *irreco_data;
88 const gchar *theme_name;
89 gchar *comments;
90 gchar *user;
91 gchar *password;
92 GtkWidget *preview;
93 IrrecoTheme *theme;
94 GtkWidget *entry_name;
95 GtkWidget *textview_comments;
96 GtkTextBuffer *buffer_comments;
97 IrrecoThemeButton *preview_button;
98 GtkWidget *preview_image;
99 GtkWidget *preview_event_box;
100 gchar *preview_name;
101 gboolean uploading_errors;
102 GtkWidget *banner;
103 gint banner_max; /* num. of buttons and bg's */
104 gint banner_index; /* num. of img curr. uploading */
105 gint loader_state;
106 gint loader_func_id;
107 gboolean uploading_started; /* is theme being uploaded */
108 gint themeindex;
109 gsize buffer_size;
110 IrrecoWebdbCache *cache;
111 gint strtablesize;
112 gint strtableindex;
117 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
118 /* Macro */
119 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
123 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
124 /* Prototypes */
125 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
127 GType irreco_theme_upload_dlg_get_type (void) G_GNUC_CONST;
128 void irreco_theme_upload_dlg_destroy(IrrecoThemeUploadDlg * theme_upload_dlg);
129 gboolean irreco_theme_upload_dlg_run(GtkWindow *parent_window,
130 IrrecoData *irreco_data,
131 IrrecoTheme *irreco_theme,
132 gchar *user,
133 gchar *password);
136 #endif /* __IRRECO_THEME_UPLOAD_DLG_H__ */
138 /** @} */