28#ifndef GNC_CSV_IMPORT_SETTINGS_H
29#define GNC_CSV_IMPORT_SETTINGS_H
39#include <gnc-datetime.hpp>
45enum SEP_BUTTON_TYPES {SEP_SPACE, SEP_TAB, SEP_COMMA, SEP_COLON, SEP_SEMICOLON, SEP_HYPHEN,
53 CsvImportSettings() : m_file_format (GncImpFileFormat::CSV), m_encoding {
"UTF-8"},
54 m_date_format {0}, m_currency_format {0},
55 m_skip_start_lines{0}, m_skip_end_lines{0}, m_skip_alt_lines (
false),
56 m_separators {
","}, m_enable_escape {
true}, m_load_error {
false} { }
78std::string m_encoding;
81uint32_t m_skip_start_lines;
82uint32_t m_skip_end_lines;
84std::string m_separators;
87std::vector<uint32_t> m_column_widths;
90 virtual const char* get_group_prefix (
void) = 0;
93std::string get_no_settings (
void);
94std::string get_gnc_exp (
void);
95std::string get_gnc_exp_4 (
void);
111handle_load_error (GError **key_error,
const std::string& group);
Account handling public routines.
Commodity handling public routines.
SETTINGS_COL
Enumeration for the settings combo's.
SEP_BUTTON_TYPES
Enumeration for separator checkbutton types.
bool preset_is_reserved_name(const std::string &name)
Check whether name can be used as a preset name.
Class convert a file into vector of string vectors.
GncImpFileFormat
Enumeration for file formats supported by this importer.
bool save(void)
Save the gathered widget properties to a key File.
bool load(void)
Load the widget properties from a key File.
void remove(void)
Remove the preset from the state file.