GnuCash c935c2f+
Loading...
Searching...
No Matches
gnc-commodity.hpp
Go to the documentation of this file.
1/**********************************************************************
2 * gnc-commodity.hpp -- API for tradable commodities (incl. currency) *
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 *********************************************************************/
22
33#ifndef GNC_COMMODITY_HPP
34#define GNC_COMMODITY_HPP
35
36#include <vector>
37
38#include <gnc-commodity.h>
39#include <string>
40
41using CommVec = std::vector<gnc_commodity*>;
42
52void gnc_quote_source_set_fq_installed (const char* version_string,
53 const std::vector<std::string>& sources_list);
54
65bool gnc_commodity_table_rename_namespace(const gnc_commodity_table * table,
66 const char * namespace_name,
67 const char * new_namespace_name);
68
69#endif /* GNC_COMMODITY_HPP */
Commodity handling public routines.
void gnc_quote_source_set_fq_installed(const char *version_string, const std::vector< std::string > &sources_list)
Update gnucash internal tables based on what Finance::Quote sources are installed.
bool gnc_commodity_table_rename_namespace(const gnc_commodity_table *table, const char *namespace_name, const char *new_namespace_name)
This function renames a namespace.