GnuCash  5.6-150-g038405b370+
gnucash-commands.hpp
1 /*
2  * gnucash-commands.hpp -- Implementation of all the commands that
3  * can be invoked via gnucash-cli
4  *
5  * Copyright (C) 2020 Geert Janssens <geert@kobaltwit.be>
6  *
7  * This program is free software; you can redistribute it and/or
8  * modify it under the terms of the GNU General Public License as
9  * published by the Free Software Foundation; either version 2 of
10  * the License, or (at your option) any later version.
11  *
12  * This program is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  * GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License
18  * along with this program; if not, contact:
19  *
20  * Free Software Foundation Voice: +1-617-542-5942
21  * 51 Franklin Street, Fifth Floor Fax: +1-617-542-2652
22  * Boston, MA 02110-1301, USA gnu@gnu.org
23  */
24 
25 #ifndef GNUCASH_COMMANDS_HPP
26 #define GNUCASH_COMMANDS_HPP
27 
28 #include <string>
29 #include <vector>
30 #include <boost/optional.hpp>
31 
32 using bo_str = boost::optional <std::string>;
33 using StrVec = std::vector<std::string>;
34 
35 namespace Gnucash {
36 
37  int check_finance_quote (void);
38  int add_quotes (const bo_str& uri);
39  int report_quotes (const char* source,
40  const StrVec& commodities,
41  bool verbose);
42  int run_report (const bo_str& file_to_load,
43  const bo_str& run_report,
44  const bo_str& export_type,
45  const bo_str& output_file);
46  int report_list (void);
47  int report_show (const bo_str& file_to_load,
48  const bo_str& run_report);
49 }
50 #endif