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

#include "ksirkskineditorsettings.h"

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

using namespace KsirkSkinEditor;

namespace KsirkSkinEditor {

class KsirkSkinEditorSettingsHelper
{
  public:
    KsirkSkinEditorSettingsHelper() : q(0) {}
    ~KsirkSkinEditorSettingsHelper() { delete q; }
    KsirkSkinEditorSettings *q;
};
}

K_GLOBAL_STATIC(KsirkSkinEditorSettingsHelper, s_globalKsirkSkinEditorSettings)
KsirkSkinEditorSettings *KsirkSkinEditorSettings::self()
{
  if (!s_globalKsirkSkinEditorSettings->q) {
    new KsirkSkinEditorSettings;
    s_globalKsirkSkinEditorSettings->q->readConfig();
  }

  return s_globalKsirkSkinEditorSettings->q;
}

KsirkSkinEditorSettings::KsirkSkinEditorSettings(  )
  : KConfigSkeleton( QLatin1String( "ksirkskineditorrc" ) )
{
  Q_ASSERT(!s_globalKsirkSkinEditorSettings->q);
  s_globalKsirkSkinEditorSettings->q = this;
}

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

