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

#include "pluginsettings.h"

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

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

  return s_globalPluginSettings->q;
}

PluginSettings::PluginSettings(  )
  : KConfigSkeleton( QLatin1String( "printcheckpluginrc" ) )
{
  Q_ASSERT(!s_globalPluginSettings->q);
  s_globalPluginSettings->q = this;
  setCurrentGroup( QLatin1String( "General" ) );

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

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

