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

#include "kscreenconfig.h"

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

using namespace KWin;

namespace KWin {

class KscreenConfigHelper
{
  public:
    KscreenConfigHelper() : q(0) {}
    ~KscreenConfigHelper() { delete q; }
    KscreenConfig *q;
};
}

K_GLOBAL_STATIC(KscreenConfigHelper, s_globalKscreenConfig)
KscreenConfig *KscreenConfig::self()
{
  if (!s_globalKscreenConfig->q) {
    new KscreenConfig;
    s_globalKscreenConfig->q->readConfig();
  }

  return s_globalKscreenConfig->q;
}

KscreenConfig::KscreenConfig(  )
  : KConfigSkeleton( QLatin1String( "kwinrc" ) )
{
  Q_ASSERT(!s_globalKscreenConfig->q);
  s_globalKscreenConfig->q = this;
  setCurrentGroup( QLatin1String( "Effect-Kscreen" ) );

  KConfigSkeleton::ItemInt  *itemDuration;
  itemDuration = new KConfigSkeleton::ItemInt( currentGroup(), QLatin1String( "Duration" ), mDuration, 0 );
  addItem( itemDuration, QLatin1String( "Duration" ) );
}

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

