GnuCash  5.6-150-g038405b370+
io-example-account.h
1 /********************************************************************\
2  * io-example-account.h -- api for example accounts *
3  * *
4  * Copyright (C) 2001 James LewisMoss <dres@debian.org> *
5  * *
6  * This program is free software; you can redistribute it and/or *
7  * modify it under the terms of the GNU General Public License as *
8  * published by the Free Software Foundation; either version 2 of *
9  * the License, or (at your option) any later version. *
10  * *
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. *
15  * *
16  * You should have received a copy of the GNU General Public License*
17  * along with this program; if not, contact: *
18  * *
19  * Free Software Foundation Voice: +1-617-542-5942 *
20  * 51 Franklin Street, Fifth Floor Fax: +1-617-542-2652 *
21  * Boston, MA 02110-1301, USA gnu@gnu.org *
22  * *
23 \********************************************************************/
24 
25 #ifndef IO_EXAMPLE_ACCOUNT_H
26 #define IO_EXAMPLE_ACCOUNT_H
27 #include <glib.h>
28 
29 #include "gnc-engine.h"
30 
32 {
33  gchar* title;
34  gchar* filename;
35  QofBook* book;
36  Account* root;
37  gchar* short_description;
38  gchar* long_description;
39  gboolean exclude_from_select_all;
40  gboolean start_selected;
41 };
42 typedef struct GncExampleAccount_struct GncExampleAccount;
43 
44 #ifdef __cplusplus
45 extern "C"
46 {
47 #endif
48 void gnc_destroy_example_account (GncExampleAccount* gea);
49 
50 gboolean gnc_write_example_account (GncExampleAccount* gea,
51  const gchar* filename);
52 GncExampleAccount* gnc_read_example_account (const gchar* filename);
53 
54 
55 void gnc_free_example_account_list (GSList* list);
56 GSList* gnc_load_example_account_list (const char* dirname);
57 #ifdef __cplusplus
58 }
59 #endif
60 /* gboolean gnc_is_example_account_xml(const gchar *name); */
61 
62 #endif /* IO_EXAMPLE_ACCOUNT_H */
STRUCTS.
All type declarations for the whole Gnucash engine.