GnuCash  2.6.99
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
io-example-account.h
1 /********************************************************************\
2  * io-example-account.h -- api for example accounts *
3  * *
4  * Copyright (C) 2001 James LewisMoss <[email protected]> *
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 [email protected] *
22  * *
23 \********************************************************************/
24 
25 #ifndef IO_EXAMPLE_ACCOUNT_H
26 #define IO_EXAMPLE_ACCOUNT_H
27 
28 #include <glib.h>
29 
30 #include "sixtp.h"
31 #include "gnc-engine.h"
32 
34 {
35  gchar *title;
36  gchar *filename;
37  QofBook *book;
38  Account *root;
39  gchar *short_description;
40  gchar *long_description;
41  gboolean exclude_from_select_all;
42  gboolean start_selected;
43 };
45 
46 void gnc_destroy_example_account(GncExampleAccount *gea);
47 
48 gboolean gnc_write_example_account(GncExampleAccount *gea,
49  const gchar *filename);
50 GncExampleAccount *gnc_read_example_account(const gchar *filename);
51 
52 
53 void gnc_free_example_account_list(GSList *list);
54 GSList* gnc_load_example_account_list(const char *dirname);
55 
56 /* gboolean gnc_is_example_account_xml(const gchar *name); */
57 
58 #endif /* IO_EXAMPLE_ACCOUNT_H */
All type declarations for the whole Gnucash engine.