GnuCash  5.6-150-g038405b370+
ScrubBusiness.h
Go to the documentation of this file.
1 /********************************************************************\
2  * ScrubBusiness.h -- Cleanup functions for the business objects. *
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 gnu@gnu.org *
20 \********************************************************************/
21 
32 #ifndef GNC_SCRUBBUSINESS_H
33 #define GNC_SCRUBBUSINESS_H
34 
35 #include "gnc-engine.h"
36 
37 #ifdef __cplusplus
38 extern "C"
39 {
40 #endif
41 
60 gboolean gncScrubBusinessLot (GNCLot *lot);
61 
80 gboolean gncScrubBusinessSplit (Split *split);
81 
89 void gncScrubBusinessAccountLots (Account *acc, QofPercentageFunc percentagefunc);
90 
94 void gncScrubBusinessAccountSplits (Account *acc, QofPercentageFunc percentagefunc);
95 
104 void gncScrubBusinessAccount (Account *acc, QofPercentageFunc percentagefunc);
105 
110 void gncScrubBusinessAccountTree (Account *acc, QofPercentageFunc percentagefunc);
111 
112 #ifdef __cplusplus
113 }
114 #endif
115 
117 #endif /* GNC_SCRUBBUSINESS_H */
118 
void(* QofPercentageFunc)(const char *message, double percent)
The qof_session_load() method causes the QofBook to be made ready to to use with this URL/datastore...
Definition: qofsession.h:199
STRUCTS.
void gncScrubBusinessAccountSplits(Account *acc, QofPercentageFunc percentagefunc)
The gncScrubBusinessAccountSplits() function will call gncScrubBusinessSplit() on each split in the g...
void gncScrubBusinessAccountLots(Account *acc, QofPercentageFunc percentagefunc)
The gncScrubBusinessAccountLots() function will call gncScrubBusinessLot() on each lot in the given a...
gboolean gncScrubBusinessSplit(Split *split)
The gncScrubBusinessSplit() function will fix all issues found with the given split.
void gncScrubBusinessAccount(Account *acc, QofPercentageFunc percentagefunc)
The gncScrubBusinessAccount() function will call all scrub functions relevant for a given account on ...
All type declarations for the whole Gnucash engine.
gboolean gncScrubBusinessLot(GNCLot *lot)
The gncScrubBusinessLot() function makes sure that the indicated lot has all the correct properties r...
void gncScrubBusinessAccountTree(Account *acc, QofPercentageFunc percentagefunc)
The gncScrubBusinessAccountTreeLots() function will call gncScrubBusinessAccount() on the given accou...