Mostly minor fixes up until version 0.8.10.
[irreco.git] / irreco / src / webdb / irreco_webdb_remote.h
blob8460246586197deaab1e5fc9caac86abf42e8b35
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 IrrecoWebdbRemote
22 * @{
25 /**
26 * @file
27 * Header file of @ref IrrecoWebdbRemote.
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_REMOTE_H_TYPEDEF__
41 #define __WEBDB_REMOTE_H_TYPEDEF__
42 typedef struct _IrrecoWebdbRemote IrrecoWebdbRemote;
43 #endif /* __WEBDB_REMOTE_H_TYPEDEF__ */
47 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
48 /* Include */
49 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
50 #ifndef __WEBDB_REMOTE_H__
51 #define __WEBDB_REMOTE_H__
52 #include "irreco_webdb.h"
56 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
57 /* Datatypes */
58 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
60 struct _IrrecoWebdbRemote
62 gint id;
63 GString *creator;
64 GString *comment;
65 GString *category;
66 GString *manufacturer;
67 GString *model;
68 GString *file_hash;
69 GString *file_name;
70 GString *uploaded;
71 GString *modified;
72 GString *downloaded;
73 gint download_count;
74 GList *configurations;
75 GList *themes;
78 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
79 /* Macro */
80 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
84 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
85 /* Prototypes */
86 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
88 IrrecoWebdbRemote *irreco_webdb_remote_new();
89 void irreco_webdb_remote_free(IrrecoWebdbRemote *self);
91 void irreco_webdb_remote_set(IrrecoWebdbRemote *self,
92 gint id,
93 const char *creator,
94 const char *comment,
95 const char *category,
96 const char *manufacturer,
97 const char *model,
98 const char *file_hash,
99 const char *file_name,
100 const char *uploaded,
101 const char *modified,
102 const char *downloaded,
103 gint download_count);
105 void irreco_webdb_remote_add_configuration_id(IrrecoWebdbRemote *self, gint id);
107 void irreco_webdb_remote_add_theme_id(IrrecoWebdbRemote *self, gint id);
109 void irreco_webdb_remote_print(IrrecoWebdbRemote *self);
111 #endif /* __WEBDB_REMOTE_H__ */
113 /** @} */