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

#include <kconfigskeleton.h>
#include <kdebug.h>

class Settings : public KConfigSkeleton
{
  public:
    class EnumGameType
    {
      public:
      enum type { PlayerVSComputer, PlayerVSPlayer, Snake, COUNT };
    };

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

    /**
      Set The graphical theme to be used.
    */
    static
    void setTheme( const QString & v )
    {
      if (!self()->isImmutable( QString::fromLatin1( "Theme" ) ))
        self()->mTheme = v;
    }

    /**
      Get The graphical theme to be used.
    */
    static
    QString theme()
    {
      return self()->mTheme;
    }

    /**
      Set Whether to disable acceleration.
    */
    static
    void setAcceleratorBlocked( bool v )
    {
      if (!self()->isImmutable( QString::fromLatin1( "AcceleratorBlocked" ) ))
        self()->mAcceleratorBlocked = v;
    }

    /**
      Get Whether to disable acceleration.
    */
    static
    bool acceleratorBlocked()
    {
      return self()->mAcceleratorBlocked;
    }

    /**
      Set The name of player 1.
    */
    static
    void setNamePlayer1( const QString & v )
    {
      if (!self()->isImmutable( QString::fromLatin1( "NamePlayer1" ) ))
        self()->mNamePlayer1 = v;
    }

    /**
      Get The name of player 1.
    */
    static
    QString namePlayer1()
    {
      return self()->mNamePlayer1;
    }

    /**
      Set The name of player 2.
    */
    static
    void setNamePlayer2( const QString & v )
    {
      if (!self()->isImmutable( QString::fromLatin1( "NamePlayer2" ) ))
        self()->mNamePlayer2 = v;
    }

    /**
      Get The name of player 2.
    */
    static
    QString namePlayer2()
    {
      return self()->mNamePlayer2;
    }

    /**
      Set Type of the game
    */
    static
    void setGameType( int v )
    {
      if (!self()->isImmutable( QString::fromLatin1( "GameType" ) ))
        self()->mGameType = v;
    }

    /**
      Get Type of the game
    */
    static
    int gameType()
    {
      return self()->mGameType;
    }

  protected:
    Settings();
    friend class SettingsHelper;


    // General
    QString mTheme;

    // Game
    bool mAcceleratorBlocked;
    QString mNamePlayer1;
    QString mNamePlayer2;
    int mGameType;

  private:
};

#endif

