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

#include "magiclampconfig.h"

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

using namespace KWin;

namespace KWin {

class MagicLampConfigHelper
{
  public:
    MagicLampConfigHelper() : q(0) {}
    ~MagicLampConfigHelper() { delete q; }
    MagicLampConfig *q;
};
}

Q_GLOBAL_STATIC(MagicLampConfigHelper, s_globalMagicLampConfig)
MagicLampConfig *MagicLampConfig::self()
{
  if (!s_globalMagicLampConfig()->q) {
    new MagicLampConfig;
    s_globalMagicLampConfig()->q->read();
  }

  return s_globalMagicLampConfig()->q;
}

MagicLampConfig::MagicLampConfig(  )
  : KConfigSkeleton( QStringLiteral( "kwinrc" ) )
{
  Q_ASSERT(!s_globalMagicLampConfig()->q);
  s_globalMagicLampConfig()->q = this;
  setCurrentGroup( QStringLiteral( "Effect-MagicLamp" ) );

  KConfigSkeleton::ItemInt  *itemAnimationDuration;
  itemAnimationDuration = new KConfigSkeleton::ItemInt( currentGroup(), QStringLiteral( "AnimationDuration" ), mAnimationDuration, 0 );
  addItem( itemAnimationDuration, QStringLiteral( "AnimationDuration" ) );
}

MagicLampConfig::~MagicLampConfig()
{
  s_globalMagicLampConfig()->q = 0;
}

