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

#include "klaunchsettings.h"

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

class KLaunchSettingsHelper
{
  public:
    KLaunchSettingsHelper() : q(0) {}
    ~KLaunchSettingsHelper() { delete q; }
    KLaunchSettings *q;
};
K_GLOBAL_STATIC(KLaunchSettingsHelper, s_globalKLaunchSettings)
KLaunchSettings *KLaunchSettings::self()
{
  if (!s_globalKLaunchSettings->q) {
    new KLaunchSettings;
    s_globalKLaunchSettings->q->readConfig();
  }

  return s_globalKLaunchSettings->q;
}

KLaunchSettings::KLaunchSettings(  )
  : KConfigSkeleton( QLatin1String( "klaunchrc" ) )
{
  Q_ASSERT(!s_globalKLaunchSettings->q);
  s_globalKLaunchSettings->q = this;
  setCurrentGroup( QLatin1String( "BusyCursorSettings" ) );

  KConfigSkeleton::ItemInt  *itemTimeout;
  itemTimeout = new KConfigSkeleton::ItemInt( currentGroup(), QLatin1String( "Timeout" ), mTimeout, 30 );
  addItem( itemTimeout, QLatin1String( "Timeout" ) );
  KConfigSkeleton::ItemBool  *itemBlinking;
  itemBlinking = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "Blinking" ), mBlinking, false );
  addItem( itemBlinking, QLatin1String( "Blinking" ) );
  KConfigSkeleton::ItemBool  *itemBouncing;
  itemBouncing = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "Bouncing" ), mBouncing, true );
  addItem( itemBouncing, QLatin1String( "Bouncing" ) );

  setCurrentGroup( QLatin1String( "FeedbackStyle" ) );

  KConfigSkeleton::ItemBool  *itemBusyCursor;
  itemBusyCursor = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "BusyCursor" ), mBusyCursor, true );
  addItem( itemBusyCursor, QLatin1String( "BusyCursor" ) );
}

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

