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

#include "settings.h"

#include <kstaticdeleter.h>

Settings *Settings::mSelf = 0;
static KStaticDeleter<Settings> staticSettingsDeleter;

Settings *Settings::self()
{
  if ( !mSelf ) {
    staticSettingsDeleter.setObject( mSelf, new Settings() );
    mSelf->readConfig();
  }

  return mSelf;
}

Settings::Settings(  )
  : TDEConfigSkeleton( TQString::fromLatin1( "knetwalkrc" ) )
{
  mSelf = this;
  setCurrentGroup( TQString::fromLatin1( "Preferences" ) );

  TDEConfigSkeleton::ItemString  *itemUsername;
  itemUsername = new TDEConfigSkeleton::ItemString( currentGroup(), TQString::fromLatin1( "username" ), mUsername );
  addItem( itemUsername, TQString::fromLatin1( "username" ) );
  TQValueList<TDEConfigSkeleton::ItemEnum::Choice> valuesskill;
  {
    TDEConfigSkeleton::ItemEnum::Choice choice;
    choice.name = TQString::fromLatin1( "Novice" );
    valuesskill.append( choice );
  }
  {
    TDEConfigSkeleton::ItemEnum::Choice choice;
    choice.name = TQString::fromLatin1( "Normal" );
    valuesskill.append( choice );
  }
  {
    TDEConfigSkeleton::ItemEnum::Choice choice;
    choice.name = TQString::fromLatin1( "Expert" );
    valuesskill.append( choice );
  }
  {
    TDEConfigSkeleton::ItemEnum::Choice choice;
    choice.name = TQString::fromLatin1( "Master" );
    valuesskill.append( choice );
  }
  TDEConfigSkeleton::ItemEnum  *itemSkill;
  itemSkill = new TDEConfigSkeleton::ItemEnum( currentGroup(), TQString::fromLatin1( "skill" ), mSkill, valuesskill, EnumSkill::Novice );
  addItem( itemSkill, TQString::fromLatin1( "skill" ) );
}

Settings::~Settings()
{
  if ( mSelf == this )
    staticSettingsDeleter.setObject( mSelf, 0, false );
}

