GnuCash c935c2f+
Loading...
Searching...
No Matches
gnc-optiondb.h
Go to the documentation of this file.
1/********************************************************************\
2 * gnc-optiondb.h -- Collection of GncOption objects C interface *
3 * Copyright (C) 2019 John Ralls <jralls@ceridwen.us> *
4 * *
5 * This program is free software; you can redistribute it and/or *
6 * modify it under the terms of the GNU General Public License as *
7 * published by the Free Software Foundation; either version 2 of *
8 * the License, or (at your option) any later version. *
9 * *
10 * This program is distributed in the hope that it will be useful, *
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
13 * GNU General Public License for more details. *
14 * *
15 * You should have received a copy of the GNU General Public License*
16 * along with this program; if not, contact: *
17 * *
18 * Free Software Foundation Voice: +1-617-542-5942 *
19 * 51 Franklin Street, Fifth Floor Fax: +1-617-542-2652 *
20 * Boston, MA 02110-1301, USA gnu@gnu.org *
21 * *
22\********************************************************************/
54#ifndef GNC_OPTIONDB_H_
55#define GNC_OPTIONDB_H_
56
57#ifdef __cplusplus
58class GncOption;
59class GncOptionDB;
60#else
61// It's a class in C++ but the C compiler can't tell.
62typedef struct GncOption GncOption;
63typedef struct GncOptionDB GncOptionDB;
64#endif
65
66#include <config.h>
67#include "Account.h"
68#include "gnc-budget.h"
69#include "gnc-commodity.h"
70#include "gncInvoice.h"
71#include "gncTaxTable.h"
72
73#ifdef __cplusplus
74extern "C"
75{
76#endif
77
84
90
98
104
110void gnc_option_db_load(GncOptionDB* odb, QofBook* book);
111
118void gnc_option_db_save(GncOptionDB* odb, QofBook* book,
119 gboolean clear_options);
120
127
139 const char*,
140 const char*);
141
142#ifdef __cplusplus
143}
144#endif
145#endif //GNC_OPTIONDB_H_
146
Account handling public routines.
Holds all of the options for a book, report, or stylesheet, organized by GncOptionSections.
Represents the public interface for an option.
GnuCash Budgets.
Commodity handling public routines.
Business Invoice Interface.
Tax Table programming interface.
void gnc_option_db_save(GncOptionDB *odb, QofBook *book, gboolean clear_options)
Save the GncOptionDB contents into a book's options store.
GncOptionDB * gnc_option_db_new(void)
Create an empty option database.
const QofInstance * gnc_option_db_lookup_qofinstance_value(GncOptionDB *, const char *, const char *)
Retrieve the QofInstance value of an option in the GncOptionDB.
GList * gnc_option_db_commit(GncOptionDB *odb)
Write all changed ui_item values to their options.
void gnc_option_db_clean(GncOptionDB *odb)
Reset all ui_items to the option value.
void gnc_option_db_book_options(GncOptionDB *)
Register the standard option set for a QofBook.
void gnc_option_db_destroy(GncOptionDB *odb)
Destruct and release a GncOptionDB.
void gnc_option_db_load(GncOptionDB *odb, QofBook *book)
Load a book's options into the GncOptionDB.
QofBook reference.
Definition qofbook-p.hpp:47