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

#include "lookingglassconfig.h"

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

using namespace KWin;

namespace KWin {

class LookingGlassConfigHelper
{
  public:
    LookingGlassConfigHelper() : q(0) {}
    ~LookingGlassConfigHelper() { delete q; }
    LookingGlassConfig *q;
};
}

K_GLOBAL_STATIC(LookingGlassConfigHelper, s_globalLookingGlassConfig)
LookingGlassConfig *LookingGlassConfig::self()
{
  if (!s_globalLookingGlassConfig->q) {
    new LookingGlassConfig;
    s_globalLookingGlassConfig->q->readConfig();
  }

  return s_globalLookingGlassConfig->q;
}

LookingGlassConfig::LookingGlassConfig(  )
  : KConfigSkeleton( QLatin1String( "kwinrc" ) )
{
  Q_ASSERT(!s_globalLookingGlassConfig->q);
  s_globalLookingGlassConfig->q = this;
  setCurrentGroup( QLatin1String( "Effect-LookingGlass" ) );

  KConfigSkeleton::ItemUInt  *itemRadius;
  itemRadius = new KConfigSkeleton::ItemUInt( currentGroup(), QLatin1String( "Radius" ), mRadius, 200 );
  addItem( itemRadius, QLatin1String( "Radius" ) );
}

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

