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

#include <tdeconfigskeleton.h>
#include <kdebug.h>

class Settings : public TDEConfigSkeleton
{
  public:
    class EnumSkill
    {
      public:
      enum type { Novice, Normal, Expert, Master, COUNT };
    };

    static Settings *self();
    ~Settings();

    /**
      Set Default user name
    */
    static
    void setUsername( const TQString & v )
    {
      if (!self()->isImmutable( TQString::fromLatin1( "username" ) ))
        self()->mUsername = v;
    }

    /**
      Get Default user name
    */
    static
    TQString username()
    {
      return self()->mUsername;
    }

    /**
      Set Default difficulty level
    */
    static
    void setSkill( int v )
    {
      if (!self()->isImmutable( TQString::fromLatin1( "skill" ) ))
        self()->mSkill = v;
    }

    /**
      Get Default difficulty level
    */
    static
    int skill()
    {
      return self()->mSkill;
    }

    static
    void writeConfig()
    {
      static_cast<TDEConfigSkeleton*>(self())->writeConfig();
    }
  protected:
    Settings();
    static Settings *mSelf;


    // Preferences
    TQString mUsername;
    int mSkill;

  private:
};

#endif

