// This file is generated by kconfig_compiler_kf5 from knavalbattle.kcfg.
// All changes you do to this file will be lost.
#ifndef SETTINGSBASE_H
#define SETTINGSBASE_H

#include <kconfigskeleton.h>
#include <QCoreApplication>
#include <QDebug>

class SettingsBase : public KConfigSkeleton
{
  public:

    static SettingsBase *self();
    ~SettingsBase();

    /**
      Set Default hostname for multiplayer games.
    */
    static
    void setHostname( const QString & v )
    {
      if (!self()->isImmutable( QStringLiteral( "Hostname" ) ))
        self()->mHostname = v;
    }

    /**
      Get Default hostname for multiplayer games.
    */
    static
    QString hostname()
    {
      return self()->mHostname;
    }

    /**
      Set Default port for multiplayer games.
    */
    static
    void setPort( int v )
    {
      if (!self()->isImmutable( QStringLiteral( "Port" ) ))
        self()->mPort = v;
    }

    /**
      Get Default port for multiplayer games.
    */
    static
    int port()
    {
      return self()->mPort;
    }

    /**
      Set User nickname.
    */
    static
    void setNickname( const QString & v )
    {
      if (!self()->isImmutable( QStringLiteral( "Nickname" ) ))
        self()->mNickname = v;
    }

    /**
      Get User nickname.
    */
    static
    QString nickname()
    {
      return self()->mNickname;
    }

    /**
      Set Whether sound effects should be played.
    */
    static
    void setEnableSounds( bool v )
    {
      if (!self()->isImmutable( QStringLiteral( "EnableSounds" ) ))
        self()->mEnableSounds = v;
    }

    /**
      Get Whether sound effects should be played.
    */
    static
    bool enableSounds()
    {
      return self()->mEnableSounds;
    }

    /**
      Set Allow the ships to be adjacent without one empty space between them.
    */
    static
    void setAdjacentShips( bool v )
    {
      if (!self()->isImmutable( QStringLiteral( "AdjacentShips" ) ))
        self()->mAdjacentShips = v;
    }

    /**
      Get Allow the ships to be adjacent without one empty space between them.
    */
    static
    bool adjacentShips()
    {
      return self()->mAdjacentShips;
    }

    /**
      Set Allow multiple ships of any size, default: 4 of 1, 3 of 2, 2 of 3, 1 of 4.
    */
    static
    void setSeveralShips( bool v )
    {
      if (!self()->isImmutable( QStringLiteral( "SeveralShips" ) ))
        self()->mSeveralShips = v;
    }

    /**
      Get Allow multiple ships of any size, default: 4 of 1, 3 of 2, 2 of 3, 1 of 4.
    */
    static
    bool severalShips()
    {
      return self()->mSeveralShips;
    }

  protected:
    SettingsBase();
    friend class SettingsBaseHelper;


    // network
    QString mHostname;
    int mPort;

    // general
    QString mNickname;
    bool mEnableSounds;
    bool mAdjacentShips;
    bool mSeveralShips;

  private:
};

#endif

