GnuCash  5.6-150-g038405b370+
Data Structures | Enumerations | Functions
gnc-imp-settings-csv.hpp File Reference

CSV Import Settings. More...

#include <config.h>
#include "Account.h"
#include "gnc-commodity.h"
#include <string>
#include <vector>
#include <optional>
#include <cstdint>
#include <gnc-datetime.hpp>
#include "gnc-tokenizer.hpp"

Go to the source code of this file.

Data Structures

struct  CsvImportSettings
 

Enumerations

enum  SEP_BUTTON_TYPES {
  SEP_SPACE, SEP_TAB, SEP_COMMA, SEP_COLON,
  SEP_SEMICOLON, SEP_HYPHEN, SEP_NUM_OF_TYPES
}
 Enumeration for separator checkbutton types. More...
 
enum  SETTINGS_COL { SET_GROUP, SET_NAME }
 Enumeration for the settings combo's.
 

Functions

std::string get_no_settings (void)
 
std::string get_gnc_exp (void)
 
std::string get_gnc_exp_4 (void)
 
bool preset_is_reserved_name (const std::string &name)
 Check whether name can be used as a preset name. More...
 
bool handle_load_error (GError **key_error, const std::string &group)
 

Detailed Description

CSV Import Settings.

Author
Copyright (c) 2014 Robert Fewell
Copyright (c) 2016 Geert Janssens

Definition in file gnc-imp-settings-csv.hpp.

Enumeration Type Documentation

◆ SEP_BUTTON_TYPES

Enumeration for separator checkbutton types.

These are the different types of checkbuttons that the user can click to configure separators in a delimited file.

Definition at line 45 of file gnc-imp-settings-csv.hpp.

45  {SEP_SPACE, SEP_TAB, SEP_COMMA, SEP_COLON, SEP_SEMICOLON, SEP_HYPHEN,
46  SEP_NUM_OF_TYPES};

Function Documentation

◆ preset_is_reserved_name()

bool preset_is_reserved_name ( const std::string &  name)

Check whether name can be used as a preset name.

The names of the internal presets are considered reserved. A preset with such a name should not be saved or deleted.

Definition at line 93 of file gnc-imp-settings-csv.cpp.

94 {
95  return ((name == no_settings) ||
96  (name == _(no_settings.c_str())) ||
97  (name == gnc_exp) ||
98  (name == _(gnc_exp.c_str())));
99 }