GnuCash  4.8a-80-g9825132ea+
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 
55 gboolean gncScrubBusinessLot (GNCLot *lot);
56 
75 gboolean gncScrubBusinessSplit (Split *split);
76 
84 void gncScrubBusinessAccountLots (Account *acc, QofPercentageFunc percentagefunc);
85 
89 void gncScrubBusinessAccountSplits (Account *acc, QofPercentageFunc percentagefunc);
90 
99 void gncScrubBusinessAccount (Account *acc, QofPercentageFunc percentagefunc);
100 
105 void gncScrubBusinessAccountTree (Account *acc, QofPercentageFunc percentagefunc);
106 
108 #endif /* GNC_SCRUBBUSINESS_H */
109 
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
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...