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

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

#include <KLocalizedString>
#include <QFont>
class kirikiSettings : public KConfigSkeleton
{
  public:

    static kirikiSettings *self();
    ~kirikiSettings();

    /**
      Set waitTime
    */
    static
    void setWaitTime( int v )
    {
      if (v < 0)
      {
        qDebug() << "setWaitTime: value " << v << " is less than the minimum value of 0";
        v = 0;
      }

      if (v > 2000)
      {
        qDebug() << "setWaitTime: value " << v << " is greater than the maximum value of 2000";
        v = 2000;
      }

      if (!self()->isImmutable( QStringLiteral( "waitTime" ) ))
        self()->mWaitTime = v;
    }

    /**
      Get waitTime
    */
    static
    int waitTime()
    {
      return self()->mWaitTime;
    }

    /**
      Set numberOfPlayers
    */
    static
    void setNumberOfPlayers( int v )
    {
      if (v < 2)
      {
        qDebug() << "setNumberOfPlayers: value " << v << " is less than the minimum value of 2";
        v = 2;
      }

      if (v > 6)
      {
        qDebug() << "setNumberOfPlayers: value " << v << " is greater than the maximum value of 6";
        v = 6;
      }

      if (!self()->isImmutable( QStringLiteral( "numberOfPlayers" ) ))
        self()->mNumberOfPlayers = v;
    }

    /**
      Get numberOfPlayers
    */
    static
    int numberOfPlayers()
    {
      return self()->mNumberOfPlayers;
    }

    /**
      Set startupDemoEnabled
    */
    static
    void setStartupDemoEnabled( bool v )
    {
      if (!self()->isImmutable( QStringLiteral( "startupDemoEnabled" ) ))
        self()->mStartupDemoEnabled = v;
    }

    /**
      Get startupDemoEnabled
    */
    static
    bool startupDemoEnabled()
    {
      return self()->mStartupDemoEnabled;
    }

    /**
      Set fontSize
    */
    static
    void setFontSize( int v )
    {
      if (v < 5)
      {
        qDebug() << "setFontSize: value " << v << " is less than the minimum value of 5";
        v = 5;
      }

      if (v > 20)
      {
        qDebug() << "setFontSize: value " << v << " is greater than the maximum value of 20";
        v = 20;
      }

      if (!self()->isImmutable( QStringLiteral( "fontSize" ) ))
        self()->mFontSize = v;
    }

    /**
      Get fontSize
    */
    static
    int fontSize()
    {
      return self()->mFontSize;
    }

    /**
      Set rowHeight
    */
    static
    void setRowHeight( int v )
    {

      if (v > 20)
      {
        qDebug() << "setRowHeight: value " << v << " is greater than the maximum value of 20";
        v = 20;
      }

      if (!self()->isImmutable( QStringLiteral( "rowHeight" ) ))
        self()->mRowHeight = v;
    }

    /**
      Get rowHeight
    */
    static
    int rowHeight()
    {
      return self()->mRowHeight;
    }

    /**
      Set player1Name
    */
    static
    void setPlayer1Name( const QString & v )
    {
      if (!self()->isImmutable( QStringLiteral( "player1Name" ) ))
        self()->mPlayer1Name = v;
    }

    /**
      Get player1Name
    */
    static
    QString player1Name()
    {
      return self()->mPlayer1Name;
    }

    /**
      Set player2Name
    */
    static
    void setPlayer2Name( const QString & v )
    {
      if (!self()->isImmutable( QStringLiteral( "player2Name" ) ))
        self()->mPlayer2Name = v;
    }

    /**
      Get player2Name
    */
    static
    QString player2Name()
    {
      return self()->mPlayer2Name;
    }

    /**
      Set player3Name
    */
    static
    void setPlayer3Name( const QString & v )
    {
      if (!self()->isImmutable( QStringLiteral( "player3Name" ) ))
        self()->mPlayer3Name = v;
    }

    /**
      Get player3Name
    */
    static
    QString player3Name()
    {
      return self()->mPlayer3Name;
    }

    /**
      Set player4Name
    */
    static
    void setPlayer4Name( const QString & v )
    {
      if (!self()->isImmutable( QStringLiteral( "player4Name" ) ))
        self()->mPlayer4Name = v;
    }

    /**
      Get player4Name
    */
    static
    QString player4Name()
    {
      return self()->mPlayer4Name;
    }

    /**
      Set player5Name
    */
    static
    void setPlayer5Name( const QString & v )
    {
      if (!self()->isImmutable( QStringLiteral( "player5Name" ) ))
        self()->mPlayer5Name = v;
    }

    /**
      Get player5Name
    */
    static
    QString player5Name()
    {
      return self()->mPlayer5Name;
    }

    /**
      Set player6Name
    */
    static
    void setPlayer6Name( const QString & v )
    {
      if (!self()->isImmutable( QStringLiteral( "player6Name" ) ))
        self()->mPlayer6Name = v;
    }

    /**
      Get player6Name
    */
    static
    QString player6Name()
    {
      return self()->mPlayer6Name;
    }

    /**
      Set player1IsHuman
    */
    static
    void setPlayer1IsHuman( bool v )
    {
      if (!self()->isImmutable( QStringLiteral( "player1IsHuman" ) ))
        self()->mPlayer1IsHuman = v;
    }

    /**
      Get player1IsHuman
    */
    static
    bool player1IsHuman()
    {
      return self()->mPlayer1IsHuman;
    }

    /**
      Set player2IsHuman
    */
    static
    void setPlayer2IsHuman( bool v )
    {
      if (!self()->isImmutable( QStringLiteral( "player2IsHuman" ) ))
        self()->mPlayer2IsHuman = v;
    }

    /**
      Get player2IsHuman
    */
    static
    bool player2IsHuman()
    {
      return self()->mPlayer2IsHuman;
    }

    /**
      Set player3IsHuman
    */
    static
    void setPlayer3IsHuman( bool v )
    {
      if (!self()->isImmutable( QStringLiteral( "player3IsHuman" ) ))
        self()->mPlayer3IsHuman = v;
    }

    /**
      Get player3IsHuman
    */
    static
    bool player3IsHuman()
    {
      return self()->mPlayer3IsHuman;
    }

    /**
      Set player4IsHuman
    */
    static
    void setPlayer4IsHuman( bool v )
    {
      if (!self()->isImmutable( QStringLiteral( "player4IsHuman" ) ))
        self()->mPlayer4IsHuman = v;
    }

    /**
      Get player4IsHuman
    */
    static
    bool player4IsHuman()
    {
      return self()->mPlayer4IsHuman;
    }

    /**
      Set player5IsHuman
    */
    static
    void setPlayer5IsHuman( bool v )
    {
      if (!self()->isImmutable( QStringLiteral( "player5IsHuman" ) ))
        self()->mPlayer5IsHuman = v;
    }

    /**
      Get player5IsHuman
    */
    static
    bool player5IsHuman()
    {
      return self()->mPlayer5IsHuman;
    }

    /**
      Set player6IsHuman
    */
    static
    void setPlayer6IsHuman( bool v )
    {
      if (!self()->isImmutable( QStringLiteral( "player6IsHuman" ) ))
        self()->mPlayer6IsHuman = v;
    }

    /**
      Get player6IsHuman
    */
    static
    bool player6IsHuman()
    {
      return self()->mPlayer6IsHuman;
    }

  protected:
    kirikiSettings();
    friend class kirikiSettingsHelper;


    // general
    int mWaitTime;
    int mNumberOfPlayers;
    bool mStartupDemoEnabled;
    int mFontSize;
    int mRowHeight;
    QString mPlayer1Name;
    QString mPlayer2Name;
    QString mPlayer3Name;
    QString mPlayer4Name;
    QString mPlayer5Name;
    QString mPlayer6Name;
    bool mPlayer1IsHuman;
    bool mPlayer2IsHuman;
    bool mPlayer3IsHuman;
    bool mPlayer4IsHuman;
    bool mPlayer5IsHuman;
    bool mPlayer6IsHuman;

  private:
};

#endif

