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

#include "sheetconfig.h"

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

using namespace KWin;

namespace KWin {

class SheetConfigHelper
{
  public:
    SheetConfigHelper() : q(0) {}
    ~SheetConfigHelper() { delete q; }
    SheetConfig *q;
};
}

K_GLOBAL_STATIC(SheetConfigHelper, s_globalSheetConfig)
SheetConfig *SheetConfig::self()
{
  if (!s_globalSheetConfig->q) {
    new SheetConfig;
    s_globalSheetConfig->q->readConfig();
  }

  return s_globalSheetConfig->q;
}

SheetConfig::SheetConfig(  )
  : KConfigSkeleton( QLatin1String( "kwinrc" ) )
{
  Q_ASSERT(!s_globalSheetConfig->q);
  s_globalSheetConfig->q = this;
  setCurrentGroup( QLatin1String( "Effect-Sheet" ) );

  KConfigSkeleton::ItemInt  *itemAnimationTime;
  itemAnimationTime = new KConfigSkeleton::ItemInt( currentGroup(), QLatin1String( "AnimationTime" ), mAnimationTime, 0 );
  addItem( itemAnimationTime, QLatin1String( "AnimationTime" ) );
}

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

