GnuCash c935c2f+
Loading...
Searching...
No Matches
gnc-imp-settings-csv-tx.hpp
Go to the documentation of this file.
1/*******************************************************************\
2 * gnc-imp-settings-csv-tx.hpp -- Trans CSV Import Settings *
3 * *
4 * Copyright (C) 2017 Robert Fewell *
5 * *
6 * This program is free software; you can redistribute it and/or *
7 * modify it under the terms of the GNU General Public License as *
8 * published by the Free Software Foundation; either version 2 of *
9 * the License, or (at your option) any later version. *
10 * *
11 * This program is distributed in the hope that it will be useful, *
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
14 * GNU General Public License for more details. *
15 * *
16 * You should have received a copy of the GNU General Public License*
17 * along with this program; if not, contact: *
18 * *
19 * Free Software Foundation Voice: +1-617-542-5942 *
20 * 51 Franklin Street, Fifth Floor Fax: +1-617-542-2652 *
21 * Boston, MA 02110-1301, USA gnu@gnu.org *
22\********************************************************************/
28#ifndef GNC_CSV_TRANS_IMPORT_SETTINGS_H
29#define GNC_CSV_TRANS_IMPORT_SETTINGS_H
30
31#include <config.h>
32#include "Account.h"
33#include "gnc-commodity.h"
34
35#include <string>
36#include <vector>
37#include "gnc-imp-props-tx.hpp"
38#include "gnc-tokenizer.hpp"
40
42{
43 CsvTransImpSettings() : m_base_account {nullptr}, m_multi_split (false) { }
44
49bool save (void);
50
55bool load (void);
56
59void remove (void);
60
61// Transaction Settings
62Account *m_base_account; // Base account
63bool m_multi_split; // Assume multiple lines per transaction
64std::vector<GncTransPropType> m_column_types; // The Column types in order
65
66protected:
67 const char* get_group_prefix (void) override;
68};
69
70using preset_vec_trans = std::vector<std::shared_ptr<CsvTransImpSettings>>;
71
78const preset_vec_trans& get_import_presets_trans (void);
79
80#endif
Account handling public routines.
Commodity handling public routines.
const preset_vec_trans & get_import_presets_trans(void)
Creates a vector of CsvTransImpSettings which combines.
CSV Import Settings.
Class convert a file into vector of string vectors.
STRUCTS.
bool save(void)
Save the gathered widget properties to a key File.
void remove(void)
Remove the preset from the state file.
bool load(void)
Load the widget properties from a key File.