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

#include "pluginsettings.h"

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

class PluginSettingsHelper
{
  public:
    PluginSettingsHelper() : q(0) {}
    ~PluginSettingsHelper() { delete q; }
    PluginSettings *q;
};
Q_GLOBAL_STATIC(PluginSettingsHelper, s_globalPluginSettings)
PluginSettings *PluginSettings::self()
{
  if (!s_globalPluginSettings()->q) {
    new PluginSettings;
    s_globalPluginSettings()->q->read();
  }

  return s_globalPluginSettings()->q;
}

PluginSettings::PluginSettings(  )
  : KConfigSkeleton( QStringLiteral( "kmymoney/csvimporterrc" ) )
{
  Q_ASSERT(!s_globalPluginSettings()->q);
  s_globalPluginSettings()->q = this;
  setCurrentGroup( QStringLiteral( "Misc" ) );

  KConfigSkeleton::ItemBool  *itemAutoFieldDelimiter;
  itemAutoFieldDelimiter = new KConfigSkeleton::ItemBool( currentGroup(), QStringLiteral( "AutoFieldDelimiter" ), mAutoFieldDelimiter );
  addItem( itemAutoFieldDelimiter, QStringLiteral( "AutoFieldDelimiter" ) );
  KConfigSkeleton::ItemBool  *itemAutoDecimalSymbol;
  itemAutoDecimalSymbol = new KConfigSkeleton::ItemBool( currentGroup(), QStringLiteral( "AutoDecimalSymbol" ), mAutoDecimalSymbol );
  addItem( itemAutoDecimalSymbol, QStringLiteral( "AutoDecimalSymbol" ) );
  KConfigSkeleton::ItemBool  *itemAutoDateFormat;
  itemAutoDateFormat = new KConfigSkeleton::ItemBool( currentGroup(), QStringLiteral( "AutoDateFormat" ), mAutoDateFormat );
  addItem( itemAutoDateFormat, QStringLiteral( "AutoDateFormat" ) );
  KConfigSkeleton::ItemBool  *itemAutoAccountInvest;
  itemAutoAccountInvest = new KConfigSkeleton::ItemBool( currentGroup(), QStringLiteral( "AutoAccountInvest" ), mAutoAccountInvest );
  addItem( itemAutoAccountInvest, QStringLiteral( "AutoAccountInvest" ) );
  KConfigSkeleton::ItemBool  *itemAutoAccountBank;
  itemAutoAccountBank = new KConfigSkeleton::ItemBool( currentGroup(), QStringLiteral( "AutoAccountBank" ), mAutoAccountBank );
  addItem( itemAutoAccountBank, QStringLiteral( "AutoAccountBank" ) );
}

PluginSettings::~PluginSettings()
{
  s_globalPluginSettings()->q = 0;
}

