GnuCash 2.4.99
gnc-slots-sql.h
Go to the documentation of this file.
00001 /********************************************************************
00002  * gnc-slots-sql.h: load and save data to SQL                       *
00003  *                                                                  *
00004  * This program is free software; you can redistribute it and/or    *
00005  * modify it under the terms of the GNU General Public License as   *
00006  * published by the Free Software Foundation; either version 2 of   *
00007  * the License, or (at your option) any later version.              *
00008  *                                                                  *
00009  * This program is distributed in the hope that it will be useful,  *
00010  * but WITHOUT ANY WARRANTY; without even the implied warranty of   *
00011  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the    *
00012  * GNU General Public License for more details.                     *
00013  *                                                                  *
00014  * You should have received a copy of the GNU General Public License*
00015  * along with this program; if not, contact:                        *
00016  *                                                                  *
00017  * Free Software Foundation           Voice:  +1-617-542-5942       *
00018  * 51 Franklin Street, Fifth Floor    Fax:    +1-617-542-2652       *
00019  * Boston, MA  02110-1301,  USA       gnu@gnu.org                   *
00020 \********************************************************************/
00029 #ifndef GNC_SLOTS_SQL_H
00030 #define GNC_SLOTS_SQL_H
00031 
00032 #include <glib.h>
00033 #include "guid.h"
00034 #include "kvp_frame.h"
00035 #include "qof.h"
00036 #include "gnc-backend-sql.h"
00037 
00047 gboolean gnc_sql_slots_save( GncSqlBackend* be, const GncGUID* guid,
00048                              gboolean is_infant, KvpFrame* pFrame );
00049 
00057 gboolean gnc_sql_slots_delete( GncSqlBackend* be, const GncGUID* guid );
00058 
00063 void gnc_sql_slots_load( GncSqlBackend* be, QofInstance* inst );
00064 
00073 void gnc_sql_slots_load_for_list( GncSqlBackend* be, GList* list );
00074 
00075 typedef QofInstance* (*BookLookupFn)( const GncGUID* guid, const QofBook* book );
00076 
00086 void gnc_sql_slots_load_for_sql_subquery( GncSqlBackend* be, const gchar* subquery,
00087         BookLookupFn lookup_fn );
00088 
00089 void gnc_sql_init_slots_handler( void );
00090 
00091 #endif /* GNC_SLOTS_SQL_H */
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines