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

#include "coverswitchconfig.h"

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

using namespace KWin;

namespace KWin {

class CoverSwitchConfigHelper
{
  public:
    CoverSwitchConfigHelper() : q(0) {}
    ~CoverSwitchConfigHelper() { delete q; }
    CoverSwitchConfig *q;
};
}

K_GLOBAL_STATIC(CoverSwitchConfigHelper, s_globalCoverSwitchConfig)
CoverSwitchConfig *CoverSwitchConfig::self()
{
  if (!s_globalCoverSwitchConfig->q) {
    new CoverSwitchConfig;
    s_globalCoverSwitchConfig->q->readConfig();
  }

  return s_globalCoverSwitchConfig->q;
}

CoverSwitchConfig::CoverSwitchConfig(  )
  : KConfigSkeleton( QLatin1String( "kwinrc" ) )
{
  Q_ASSERT(!s_globalCoverSwitchConfig->q);
  s_globalCoverSwitchConfig->q = this;
  setCurrentGroup( QLatin1String( "Effect-CoverSwitch" ) );

  KConfigSkeleton::ItemUInt  *itemDuration;
  itemDuration = new KConfigSkeleton::ItemUInt( currentGroup(), QLatin1String( "Duration" ), mDuration, 0 );
  addItem( itemDuration, QLatin1String( "Duration" ) );
  KConfigSkeleton::ItemBool  *itemAnimateSwitch;
  itemAnimateSwitch = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "AnimateSwitch" ), mAnimateSwitch, true );
  addItem( itemAnimateSwitch, QLatin1String( "AnimateSwitch" ) );
  KConfigSkeleton::ItemBool  *itemAnimateStart;
  itemAnimateStart = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "AnimateStart" ), mAnimateStart, true );
  addItem( itemAnimateStart, QLatin1String( "AnimateStart" ) );
  KConfigSkeleton::ItemBool  *itemAnimateStop;
  itemAnimateStop = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "AnimateStop" ), mAnimateStop, true );
  addItem( itemAnimateStop, QLatin1String( "AnimateStop" ) );
  KConfigSkeleton::ItemBool  *itemReflection;
  itemReflection = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "Reflection" ), mReflection, true );
  addItem( itemReflection, QLatin1String( "Reflection" ) );
  KConfigSkeleton::ItemColor  *itemMirrorFrontColor;
  itemMirrorFrontColor = new KConfigSkeleton::ItemColor( currentGroup(), QLatin1String( "MirrorFrontColor" ), mMirrorFrontColor, QColor(0, 0, 0) );
  addItem( itemMirrorFrontColor, QLatin1String( "MirrorFrontColor" ) );
  KConfigSkeleton::ItemColor  *itemMirrorRearColor;
  itemMirrorRearColor = new KConfigSkeleton::ItemColor( currentGroup(), QLatin1String( "MirrorRearColor" ), mMirrorRearColor, QColor(0, 0, 0) );
  addItem( itemMirrorRearColor, QLatin1String( "MirrorRearColor" ) );
  KConfigSkeleton::ItemBool  *itemWindowTitle;
  itemWindowTitle = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "WindowTitle" ), mWindowTitle, true );
  addItem( itemWindowTitle, QLatin1String( "WindowTitle" ) );
  KConfigSkeleton::ItemUInt  *itemZPosition;
  itemZPosition = new KConfigSkeleton::ItemUInt( currentGroup(), QLatin1String( "zPosition" ), mZPosition, 900 );
  addItem( itemZPosition, QLatin1String( "zPosition" ) );
  KConfigSkeleton::ItemBool  *itemTabBox;
  itemTabBox = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "TabBox" ), mTabBox, false );
  addItem( itemTabBox, QLatin1String( "TabBox" ) );
  KConfigSkeleton::ItemBool  *itemTabBoxAlternative;
  itemTabBoxAlternative = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "TabBoxAlternative" ), mTabBoxAlternative, false );
  addItem( itemTabBoxAlternative, QLatin1String( "TabBoxAlternative" ) );
}

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

