|
GnuCash 2.4.99
|
00001 /********************************************************************\ 00002 * io-example-account.h -- api for example accounts * 00003 * * 00004 * Copyright (C) 2001 James LewisMoss <dres@debian.org> * 00005 * * 00006 * This program is free software; you can redistribute it and/or * 00007 * modify it under the terms of the GNU General Public License as * 00008 * published by the Free Software Foundation; either version 2 of * 00009 * the License, or (at your option) any later version. * 00010 * * 00011 * This program is distributed in the hope that it will be useful, * 00012 * but WITHOUT ANY WARRANTY; without even the implied warranty of * 00013 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * 00014 * GNU General Public License for more details. * 00015 * * 00016 * You should have received a copy of the GNU General Public License* 00017 * along with this program; if not, contact: * 00018 * * 00019 * Free Software Foundation Voice: +1-617-542-5942 * 00020 * 51 Franklin Street, Fifth Floor Fax: +1-617-542-2652 * 00021 * Boston, MA 02110-1301, USA gnu@gnu.org * 00022 * * 00023 \********************************************************************/ 00024 00025 #ifndef IO_EXAMPLE_ACCOUNT_H 00026 #define IO_EXAMPLE_ACCOUNT_H 00027 00028 #include <glib.h> 00029 00030 #include "sixtp.h" 00031 #include "gnc-engine.h" 00032 00033 struct GncExampleAccount_struct 00034 { 00035 gchar *title; 00036 gchar *filename; 00037 QofBook *book; 00038 Account *root; 00039 gchar *short_description; 00040 gchar *long_description; 00041 gboolean exclude_from_select_all; 00042 gboolean start_selected; 00043 }; 00044 typedef struct GncExampleAccount_struct GncExampleAccount; 00045 00046 void gnc_destroy_example_account(GncExampleAccount *gea); 00047 00048 gboolean gnc_write_example_account(GncExampleAccount *gea, 00049 const gchar *filename); 00050 GncExampleAccount *gnc_read_example_account(const gchar *filename); 00051 00052 00053 void gnc_free_example_account_list(GSList *list); 00054 GSList* gnc_load_example_account_list(const char *dirname); 00055 00056 /* gboolean gnc_is_example_account_xml(const gchar *name); */ 00057 00058 #endif /* IO_EXAMPLE_ACCOUNT_H */
1.7.4