GnuCash  2.6.99
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
gnc-slots-sql.h
Go to the documentation of this file.
1 /********************************************************************
2  * gnc-slots-sql.h: load and save data to SQL *
3  * *
4  * This program is free software; you can redistribute it and/or *
5  * modify it under the terms of the GNU General Public License as *
6  * published by the Free Software Foundation; either version 2 of *
7  * the License, or (at your option) any later version. *
8  * *
9  * This program is distributed in the hope that it will be useful, *
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of *
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
12  * GNU General Public License for more details. *
13  * *
14  * You should have received a copy of the GNU General Public License*
15  * along with this program; if not, contact: *
16  * *
17  * Free Software Foundation Voice: +1-617-542-5942 *
18  * 51 Franklin Street, Fifth Floor Fax: +1-617-542-2652 *
19  * Boston, MA 02110-1301, USA [email protected] *
20 \********************************************************************/
29 #ifndef GNC_SLOTS_SQL_H
30 #define GNC_SLOTS_SQL_H
31 
32 #include <glib.h>
33 #include "guid.h"
34 #include "kvp_frame.h"
35 #include "qof.h"
36 #include "gnc-backend-sql.h"
37 
47 gboolean gnc_sql_slots_save( GncSqlBackend* be, const GncGUID* guid,
48  gboolean is_infant, KvpFrame* pFrame );
49 
57 gboolean gnc_sql_slots_delete( GncSqlBackend* be, const GncGUID* guid );
58 
64 
73 void gnc_sql_slots_load_for_list( GncSqlBackend* be, GList* list );
74 
75 typedef QofInstance* (*BookLookupFn)( const GncGUID* guid, const QofBook* book );
76 
86 void gnc_sql_slots_load_for_sql_subquery( GncSqlBackend* be, const gchar* subquery,
87  BookLookupFn lookup_fn );
88 
89 void gnc_sql_init_slots_handler( void );
90 
91 #endif /* GNC_SLOTS_SQL_H */
gboolean gnc_sql_slots_save(GncSqlBackend *be, const GncGUID *guid, gboolean is_infant, KvpFrame *pFrame)
A key-value frame system.
globally unique ID User API
load and save data to SQL
void gnc_sql_slots_load_for_sql_subquery(GncSqlBackend *be, const gchar *subquery, BookLookupFn lookup_fn)
gboolean gnc_sql_slots_delete(GncSqlBackend *be, const GncGUID *guid)
Definition: guid.h:65
void gnc_sql_slots_load(GncSqlBackend *be, QofInstance *inst)
void gnc_sql_slots_load_for_list(GncSqlBackend *be, GList *list)
struct KvpFrameImpl KvpFrame
Definition: kvp_frame.h:76