// 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/checkprintingrc" ) )
{
  Q_ASSERT(!s_globalPluginSettings()->q);
  s_globalPluginSettings()->q = this;
  setCurrentGroup( QStringLiteral( "General" ) );

  KConfigSkeleton::ItemString  *itemCheckTemplateFile;
  itemCheckTemplateFile = new KConfigSkeleton::ItemString( currentGroup(), QStringLiteral( "checkTemplateFile" ), mCheckTemplateFile );
  addItem( itemCheckTemplateFile, QStringLiteral( "checkTemplateFile" ) );
  KConfigSkeleton::ItemStringList  *itemPrintedChecks;
  itemPrintedChecks = new KConfigSkeleton::ItemStringList( currentGroup(), QStringLiteral( "printedChecks" ), mPrintedChecks );
  addItem( itemPrintedChecks, QStringLiteral( "printedChecks" ) );
}

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

