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

#include "logoutconfig.h"

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

using namespace KWin;

namespace KWin {

class LogoutConfigHelper
{
  public:
    LogoutConfigHelper() : q(0) {}
    ~LogoutConfigHelper() { delete q; }
    LogoutConfig *q;
};
}

K_GLOBAL_STATIC(LogoutConfigHelper, s_globalLogoutConfig)
LogoutConfig *LogoutConfig::self()
{
  if (!s_globalLogoutConfig->q) {
    new LogoutConfig;
    s_globalLogoutConfig->q->readConfig();
  }

  return s_globalLogoutConfig->q;
}

LogoutConfig::LogoutConfig(  )
  : KConfigSkeleton( QLatin1String( "kwinrc" ) )
{
  Q_ASSERT(!s_globalLogoutConfig->q);
  s_globalLogoutConfig->q = this;
  setCurrentGroup( QLatin1String( "Effect-Logout" ) );

  KConfigSkeleton::ItemBool  *itemUseBlur;
  itemUseBlur = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "UseBlur" ), mUseBlur, true );
  addItem( itemUseBlur, QLatin1String( "UseBlur" ) );
}

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

