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

#include "kscreenconfig.h"

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

using namespace KWin;

namespace KWin {

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

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

  return s_globalKscreenConfig()->q;
}

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

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

KscreenConfig::~KscreenConfig()
{
  s_globalKscreenConfig()->q = 0;
}

