GnuCash  2.6.99
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
SX-book.h
Go to the documentation of this file.
1 /********************************************************************\
2  * SX-book.h -- scheduled transaction dataset access *
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 \********************************************************************/
21 
39 #ifndef GNC_SX_BOOK_H
40 #define GNC_SX_BOOK_H
41 
42 typedef struct xaccSchedXactionsDef SchedXactions;
44 
45 #include <glib.h>
46 #include "SchedXaction.h"
47 #include "qof.h"
48 
50 {
51  QofInstance inst;
52  GList* sx_list;
53  gboolean sx_notsaved;
54 };
55 
57 {
58  QofInstanceClass parent_class;
59 };
60 
61 /* --- type macros --- */
62 #define GNC_TYPE_SCHEDXACTIONS (gnc_schedxactions_get_type ())
63 #define GNC_SCHEDXACTIONS(o) \
64  (G_TYPE_CHECK_INSTANCE_CAST ((o), GNC_TYPE_SCHEDXACTIONS, SchedXactions))
65 #define GNC_SCHEDXACTIONS_CLASS(k) \
66  (G_TYPE_CHECK_CLASS_CAST((k), GNC_TYPE_SCHEDXACTIONS, SchedXactionsClass))
67 #define GNC_IS_SCHEDXACTIONS(o) \
68  (G_TYPE_CHECK_INSTANCE_TYPE ((o), GNC_TYPE_SCHEDXACTIONS))
69 #define GNC_IS_SCHEDXACTIONS_CLASS(k) \
70  (G_TYPE_CHECK_CLASS_TYPE ((k), GNC_TYPE_SCHEDXACTIONS))
71 #define GNC_SCHEDXACTIONS_GET_CLASS(o) \
72  (G_TYPE_INSTANCE_GET_CLASS ((o), GNC_TYPE_SCHEDXACTIONS, SchedXactionsClass))
73 GType gnc_schedxactions_get_type(void);
74 
75 #define GNC_IS_SXES(obj) GNC_IS_SCHEDXACTIONS(obj)
76 #define GNC_SXES(obj) GNC_SCHEDXACTIONS(obj)
77 
78 /*@ dependent @*/ SchedXactions* gnc_book_get_schedxactions(QofBook* book);
79 
80 void gnc_sxes_add_sx(SchedXactions* sxes, SchedXaction* sx);
81 void gnc_sxes_del_sx(SchedXactions* sxes, SchedXaction* sx);
82 
84 /*@ dependent @*/
86 
89 
90 #endif /* GNC_SX_BOOK_H */
91 
Account * gnc_book_get_template_root(const QofBook *book)
Definition: SX-book.c:65
GList * gnc_sx_get_sxes_referencing_account(QofBook *book, Account *acct)
Definition: SX-book.c:366
Scheduled Transactions public handling routines.