// This file is generated by kconfig_compiler_kf5 from katomic.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 Width of saved background
    */
    static
    void setSavedBackgroundWidth( int v )
    {
      if (!self()->isImmutable( QStringLiteral( "SavedBackgroundWidth" ) ))
        self()->mSavedBackgroundWidth = v;
    }

    /**
      Get Width of saved background
    */
    static
    int savedBackgroundWidth()
    {
      return self()->mSavedBackgroundWidth;
    }

    /**
      Set Height of saved background
    */
    static
    void setSavedBackgroundHeight( int v )
    {
      if (!self()->isImmutable( QStringLiteral( "SavedBackgroundHeight" ) ))
        self()->mSavedBackgroundHeight = v;
    }

    /**
      Get Height of saved background
    */
    static
    int savedBackgroundHeight()
    {
      return self()->mSavedBackgroundHeight;
    }

    /**
      Set Last played levelset
    */
    static
    void setLastPlayedLevelSet( const QString & v )
    {
      if (!self()->isImmutable( QStringLiteral( "LastPlayedLevelSet" ) ))
        self()->mLastPlayedLevelSet = v;
    }

    /**
      Get Last played levelset
    */
    static
    QString lastPlayedLevelSet()
    {
      return self()->mLastPlayedLevelSet;
    }

  protected:
    Preferences();
    friend class PreferencesHelper;


    // Game
    int mAnimationSpeed;

    // General
    int mSavedBackgroundWidth;
    int mSavedBackgroundHeight;
    QString mLastPlayedLevelSet;

  private:
};

#endif

