// This file is generated by kconfig_compiler from skgimportexport_settings.kcfg.
// All changes you do to this file will be lost.

#include "skgimportexport_settings.h"

#include <kglobal.h>
#include <QtCore/QFile>

class skgimportexport_settingsHelper
{
  public:
    skgimportexport_settingsHelper() : q(0) {}
    ~skgimportexport_settingsHelper() { delete q; }
    skgimportexport_settings *q;
};
K_GLOBAL_STATIC(skgimportexport_settingsHelper, s_globalskgimportexport_settings)
skgimportexport_settings *skgimportexport_settings::self()
{
  if (!s_globalskgimportexport_settings->q) {
    new skgimportexport_settings;
    s_globalskgimportexport_settings->q->readConfig();
  }

  return s_globalskgimportexport_settings->q;
}

skgimportexport_settings::skgimportexport_settings(  )
  : KConfigSkeleton()
{
  Q_ASSERT(!s_globalskgimportexport_settings->q);
  s_globalskgimportexport_settings->q = this;
  setCurrentGroup( QLatin1String( "skrooge_importexport" ) );

  KConfigSkeleton::ItemBool  *itemAutomatic_validation;
  itemAutomatic_validation = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "automatic_validation" ), mAutomatic_validation, false );
  addItem( itemAutomatic_validation, QLatin1String( "automatic_validation" ) );
  KConfigSkeleton::ItemBool  *itemApply_rules;
  itemApply_rules = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "apply_rules" ), mApply_rules, false );
  addItem( itemApply_rules, QLatin1String( "apply_rules" ) );
  KConfigSkeleton::ItemBool  *itemOpen_after_import_or_processing;
  itemOpen_after_import_or_processing = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "open_after_import_or_processing" ), mOpen_after_import_or_processing, false );
  addItem( itemOpen_after_import_or_processing, QLatin1String( "open_after_import_or_processing" ) );
  KConfigSkeleton::ItemBool  *itemSince_last_import;
  itemSince_last_import = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "since_last_import" ), mSince_last_import, true );
  addItem( itemSince_last_import, QLatin1String( "since_last_import" ) );
  KConfigSkeleton::ItemBool  *itemAutomatic_search_header;
  itemAutomatic_search_header = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "automatic_search_header" ), mAutomatic_search_header, true );
  addItem( itemAutomatic_search_header, QLatin1String( "automatic_search_header" ) );
  KConfigSkeleton::ItemBool  *itemAutomatic_search_columns;
  itemAutomatic_search_columns = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "automatic_search_columns" ), mAutomatic_search_columns, true );
  addItem( itemAutomatic_search_columns, QLatin1String( "automatic_search_columns" ) );
  KConfigSkeleton::ItemInt  *itemHeader_position;
  itemHeader_position = new KConfigSkeleton::ItemInt( currentGroup(), QLatin1String( "header_position" ), mHeader_position, 1 );
  addItem( itemHeader_position, QLatin1String( "header_position" ) );
  KConfigSkeleton::ItemString  *itemColumns_positions;
  itemColumns_positions = new KConfigSkeleton::ItemString( currentGroup(), QLatin1String( "columns_positions" ), mColumns_positions );
  addItem( itemColumns_positions, QLatin1String( "columns_positions" ) );
  KConfigSkeleton::ItemString  *itemMapping_date;
  itemMapping_date = new KConfigSkeleton::ItemString( currentGroup(), QLatin1String( "mapping_date" ), mMapping_date, QLatin1String( "^date" ) );
  addItem( itemMapping_date, QLatin1String( "mapping_date" ) );
  KConfigSkeleton::ItemString  *itemMapping_number;
  itemMapping_number = new KConfigSkeleton::ItemString( currentGroup(), QLatin1String( "mapping_number" ), mMapping_number, QLatin1String( "^number|^num?ro" ) );
  addItem( itemMapping_number, QLatin1String( "mapping_number" ) );
  KConfigSkeleton::ItemString  *itemMapping_mode;
  itemMapping_mode = new KConfigSkeleton::ItemString( currentGroup(), QLatin1String( "mapping_mode" ), mMapping_mode, QLatin1String( "^mode|^type" ) );
  addItem( itemMapping_mode, QLatin1String( "mapping_mode" ) );
  KConfigSkeleton::ItemString  *itemMapping_payee;
  itemMapping_payee = new KConfigSkeleton::ItemString( currentGroup(), QLatin1String( "mapping_payee" ), mMapping_payee, QLatin1String( "^payee|^tiers" ) );
  addItem( itemMapping_payee, QLatin1String( "mapping_payee" ) );
  KConfigSkeleton::ItemString  *itemMapping_comment;
  itemMapping_comment = new KConfigSkeleton::ItemString( currentGroup(), QLatin1String( "mapping_comment" ), mMapping_comment, QLatin1String( "^comment|^libell?|^d?tail|^info" ) );
  addItem( itemMapping_comment, QLatin1String( "mapping_comment" ) );
  KConfigSkeleton::ItemString  *itemMapping_status;
  itemMapping_status = new KConfigSkeleton::ItemString( currentGroup(), QLatin1String( "mapping_status" ), mMapping_status, QLatin1String( "^status|^pointage" ) );
  addItem( itemMapping_status, QLatin1String( "mapping_status" ) );
  KConfigSkeleton::ItemString  *itemMapping_bookmarked;
  itemMapping_bookmarked = new KConfigSkeleton::ItemString( currentGroup(), QLatin1String( "mapping_bookmarked" ), mMapping_bookmarked, QLatin1String( "^bookmarked" ) );
  addItem( itemMapping_bookmarked, QLatin1String( "mapping_bookmarked" ) );
  KConfigSkeleton::ItemString  *itemMapping_account;
  itemMapping_account = new KConfigSkeleton::ItemString( currentGroup(), QLatin1String( "mapping_account" ), mMapping_account, QLatin1String( "^account" ) );
  addItem( itemMapping_account, QLatin1String( "mapping_account" ) );
  KConfigSkeleton::ItemString  *itemMapping_category;
  itemMapping_category = new KConfigSkeleton::ItemString( currentGroup(), QLatin1String( "mapping_category" ), mMapping_category, QLatin1String( "^cat\\w*gor\\w*" ) );
  addItem( itemMapping_category, QLatin1String( "mapping_category" ) );
  KConfigSkeleton::ItemString  *itemMapping_amount;
  itemMapping_amount = new KConfigSkeleton::ItemString( currentGroup(), QLatin1String( "mapping_amount" ), mMapping_amount, QLatin1String( "^value|^amount|^valeur|^montant|^credit|^debit" ) );
  addItem( itemMapping_amount, QLatin1String( "mapping_amount" ) );
  KConfigSkeleton::ItemString  *itemMapping_quantity;
  itemMapping_quantity = new KConfigSkeleton::ItemString( currentGroup(), QLatin1String( "mapping_quantity" ), mMapping_quantity, QLatin1String( "^quantity" ) );
  addItem( itemMapping_quantity, QLatin1String( "mapping_quantity" ) );
  KConfigSkeleton::ItemString  *itemMapping_sign;
  itemMapping_sign = new KConfigSkeleton::ItemString( currentGroup(), QLatin1String( "mapping_sign" ), mMapping_sign, QLatin1String( "^sign|^sens" ) );
  addItem( itemMapping_sign, QLatin1String( "mapping_sign" ) );
  KConfigSkeleton::ItemString  *itemMapping_debit;
  itemMapping_debit = new KConfigSkeleton::ItemString( currentGroup(), QLatin1String( "mapping_debit" ), mMapping_debit, QLatin1String( "^-|^debit|^withdrawal" ) );
  addItem( itemMapping_debit, QLatin1String( "mapping_debit" ) );
  KConfigSkeleton::ItemString  *itemMapping_unit;
  itemMapping_unit = new KConfigSkeleton::ItemString( currentGroup(), QLatin1String( "mapping_unit" ), mMapping_unit, QLatin1String( "^unit" ) );
  addItem( itemMapping_unit, QLatin1String( "mapping_unit" ) );
  KConfigSkeleton::ItemString  *itemMapping_idtransaction;
  itemMapping_idtransaction = new KConfigSkeleton::ItemString( currentGroup(), QLatin1String( "mapping_idtransaction" ), mMapping_idtransaction, QLatin1String( "^idtransaction" ) );
  addItem( itemMapping_idtransaction, QLatin1String( "mapping_idtransaction" ) );
  KConfigSkeleton::ItemString  *itemMapping_idgroup;
  itemMapping_idgroup = new KConfigSkeleton::ItemString( currentGroup(), QLatin1String( "mapping_idgroup" ), mMapping_idgroup, QLatin1String( "^idgroup" ) );
  addItem( itemMapping_idgroup, QLatin1String( "mapping_idgroup" ) );
  KConfigSkeleton::ItemString  *itemMapping_property;
  itemMapping_property = new KConfigSkeleton::ItemString( currentGroup(), QLatin1String( "mapping_property" ), mMapping_property );
  addItem( itemMapping_property, QLatin1String( "mapping_property" ) );
  KConfigSkeleton::ItemString  *itemBackends;
  itemBackends = new KConfigSkeleton::ItemString( currentGroup(), QLatin1String( "backends" ), mBackends, QLatin1String( "weboob" ) );
  addItem( itemBackends, QLatin1String( "backends" ) );
  KConfigSkeleton::ItemString  *itemCsv_date_format;
  itemCsv_date_format = new KConfigSkeleton::ItemString( currentGroup(), QLatin1String( "csv_date_format" ), mCsv_date_format, QLatin1String( "Automatic detection" ) );
  addItem( itemCsv_date_format, QLatin1String( "csv_date_format" ) );
  KConfigSkeleton::ItemString  *itemQif_date_format;
  itemQif_date_format = new KConfigSkeleton::ItemString( currentGroup(), QLatin1String( "qif_date_format" ), mQif_date_format, QLatin1String( "Automatic detection" ) );
  addItem( itemQif_date_format, QLatin1String( "qif_date_format" ) );
  KConfigSkeleton::ItemBool  *itemDownload_on_open;
  itemDownload_on_open = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "download_on_open" ), mDownload_on_open, false );
  addItem( itemDownload_on_open, QLatin1String( "download_on_open" ) );
  KConfigSkeleton::ItemInt  *itemDownload_frequency;
  itemDownload_frequency = new KConfigSkeleton::ItemInt( currentGroup(), QLatin1String( "download_frequency" ), mDownload_frequency, 0 );
  addItem( itemDownload_frequency, QLatin1String( "download_frequency" ) );
}

skgimportexport_settings::~skgimportexport_settings()
{
  if (!s_globalskgimportexport_settings.isDestroyed()) {
    s_globalskgimportexport_settings->q = 0;
  }
}

