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

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

class Preferences : public KConfigSkeleton
{
  public:
    class EnumAnimationSpeed
    {
      public:
      enum type { Slow, Normal, Fast, COUNT };
    };

    static Preferences *self();
    ~Preferences();

    /**
      Set The speed of the animations.
    */
    static
    void setAnimationSpeed( int v )
    {
      if (!self()->isImmutable( QStringLiteral( "AnimationSpeed" ) ))
        self()->mAnimationSpeed = v;
    }

    /**
      Get The speed of the animations.
    */
    static
    int animationSpeed()
    {
      return self()->mAnimationSpeed;
    }

    /**
      Set Whether to play competitively in contrast to casually.
    */
    static
    void setCompetitiveGameChoice( bool v )
    {
      if (!self()->isImmutable( QStringLiteral( "CompetitiveGameChoice" ) ))
        self()->mCompetitiveGameChoice = v;
    }

    /**
      Get Whether to play competitively in contrast to casually.
    */
    static
    bool competitiveGameChoice()
    {
      return self()->mCompetitiveGameChoice;
    }

    /**
      Set Whether to use colored chips instead of black and white ones.
    */
    static
    void setUseColoredChips( bool v )
    {
      if (!self()->isImmutable( QStringLiteral( "UseColoredChips" ) ))
        self()->mUseColoredChips = v;
    }

    /**
      Get Whether to use colored chips instead of black and white ones.
    */
    static
    bool useColoredChips()
    {
      return self()->mUseColoredChips;
    }

  protected:
    Preferences();
    friend class PreferencesHelper;


    // Game
    int mAnimationSpeed;
    bool mCompetitiveGameChoice;
    bool mUseColoredChips;

  private:
};

#endif

