Added Buttonlistdir = $(buttonstyledir)
[irreco.git] / irreco / src / webdb / irreco_webdb_theme.h
blobb0232c8d96997221fe57f8e6e56cea74ffce76b7
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 IrrecoWebdbTheme
22 * @{
25 /**
26 * @file
27 * Header file of @ref IrrecoWebdbTheme.
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 __WEBDB_THEME_H_TYPEDEF__
41 #define __WEBDB_THEME_H_TYPEDEF__
42 typedef struct _IrrecoWebdbTheme IrrecoWebdbTheme;
43 #endif /* __WEBDB_THEME_H_TYPEDEF__ */
47 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
48 /* Include */
49 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
50 #ifndef __WEBDB_THEME_H__
51 #define __WEBDB_THEME_H__
52 #include "irreco_webdb.h"
56 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
57 /* Datatypes */
58 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
60 struct _IrrecoWebdbTheme
62 gint id;
63 GString *name;
64 GString *creator;
65 GString *comment;
66 GString *preview_button_name;
67 GdkPixbuf *preview_button;
68 GString *folder;
69 GString *uploaded;
70 GString *modified;
71 GString *downloaded;
72 gint download_count;
73 IrrecoStringTable *versions;
76 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
77 /* Macro */
78 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
82 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
83 /* Prototypes */
84 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
86 IrrecoWebdbTheme *irreco_webdb_theme_new();
87 void irreco_webdb_theme_free(IrrecoWebdbTheme *self);
89 void irreco_webdb_theme_set(IrrecoWebdbTheme *self,
90 gint id,
91 const char *name,
92 const char *creator,
93 const char *comment,
94 const char *preview_button_name,
95 GdkPixbuf *preview_button,
96 const char *folder,
97 const char *uploaded,
98 const char *modified,
99 const char *downloaded,
100 gint download_count);
102 void irreco_webdb_theme_print(IrrecoWebdbTheme *self);
103 void irreco_webdb_theme_set_preview_button(IrrecoWebdbTheme *self,
104 GdkPixbuf *preview_button);
105 #endif /* __WEBDB_THEME_H__ */
107 /** @} */