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

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

namespace gui {

class Settings : public KConfigSkeleton
{
  public:
    class EnumAi
    {
      public:
      enum type { Gabor, Aron, COUNT };
    };

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

    /**
      Set Theme
    */
    static
    void setTheme( const QString & v )
    {
      if (!self()->isImmutable( QStringLiteral( "theme" ) ))
        self()->mTheme = v;
    }

    /**
      Get Theme
    */
    static
    QString theme()
    {
      return self()->mTheme;
    }

    /**
      Set Speed of demo and replay playback.
    */
    static
    void setPlaybackSpeed( int v )
    {
      if (v < 150)
      {
        qDebug() << "setPlaybackSpeed: value " << v << " is less than the minimum value of 150";
        v = 150;
      }

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

      if (!self()->isImmutable( QStringLiteral( "playbackSpeed" ) ))
        self()->mPlaybackSpeed = v;
    }

    /**
      Get Speed of demo and replay playback.
    */
    static
    int playbackSpeed()
    {
      return self()->mPlaybackSpeed;
    }

    /**
      Set Whether moves should be animated or not.
    */
    static
    void setAnimation( bool v )
    {
      if (!self()->isImmutable( QStringLiteral( "animation" ) ))
        self()->mAnimation = v;
    }

    /**
      Get Whether moves should be animated or not.
    */
    static
    bool animation()
    {
      return self()->mAnimation;
    }

    /**
      Set AI engine to use.
    */
    static
    void setAi( int v )
    {
      if (!self()->isImmutable( QStringLiteral( "ai" ) ))
        self()->mAi = v;
    }

    /**
      Get AI engine to use.
    */
    static
    int ai()
    {
      return self()->mAi;
    }

  protected:
    Settings();
    friend class SettingsHelper;


    // bovo
    QString mTheme;
    int mPlaybackSpeed;
    bool mAnimation;
    int mAi;

  private:
};

}

#endif

