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

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

class Prefs : public KConfigSkeleton
{
  public:

    static Prefs *self();
    ~Prefs();

    /**
      Set The tile-set to use.
    */
    static
    void setTileSet( const QString & v )
    {
      if (!self()->isImmutable( QStringLiteral( "TileSet" ) ))
        self()->mTileSet = v;
    }

    /**
      Get The tile-set to use.
    */
    static
    QString tileSet()
    {
      return self()->mTileSet;
    }

    /**
      Set The background to use.
    */
    static
    void setBackground( const QString & v )
    {
      if (!self()->isImmutable( QStringLiteral( "Background" ) ))
        self()->mBackground = v;
    }

    /**
      Get The background to use.
    */
    static
    QString background()
    {
      return self()->mBackground;
    }

    /**
      Set The layout of the tiles.
    */
    static
    void setLayout( const QString & v )
    {
      if (!self()->isImmutable( QStringLiteral( "Layout" ) ))
        self()->mLayout = v;
    }

    /**
      Get The layout of the tiles.
    */
    static
    QString layout()
    {
      return self()->mLayout;
    }

    /**
      Set Angle
    */
    static
    void setAngle( int v )
    {
      if (!self()->isImmutable( QStringLiteral( "Angle" ) ))
        self()->mAngle = v;
    }

    /**
      Get Angle
    */
    static
    int angle()
    {
      return self()->mAngle;
    }

    /**
      Set Whether a random layout is chosen on startup.
    */
    static
    void setRandomLayout( bool v )
    {
      if (!self()->isImmutable( QStringLiteral( "RandomLayout" ) ))
        self()->mRandomLayout = v;
    }

    /**
      Get Whether a random layout is chosen on startup.
    */
    static
    bool randomLayout()
    {
      return self()->mRandomLayout;
    }

    /**
      Set Whether all games should be solvable.
    */
    static
    void setSolvableGames( bool v )
    {
      if (!self()->isImmutable( QStringLiteral( "SolvableGames" ) ))
        self()->mSolvableGames = v;
    }

    /**
      Get Whether all games should be solvable.
    */
    static
    bool solvableGames()
    {
      return self()->mSolvableGames;
    }

    /**
      Set Whether matching tiles are shown.
    */
    static
    void setShowMatchingTiles( bool v )
    {
      if (!self()->isImmutable( QStringLiteral( "ShowMatchingTiles" ) ))
        self()->mShowMatchingTiles = v;
    }

    /**
      Get Whether matching tiles are shown.
    */
    static
    bool showMatchingTiles()
    {
      return self()->mShowMatchingTiles;
    }

    /**
      Set EditorGeometry
    */
    static
    void setEditorGeometry( const QRect & v )
    {
      if (!self()->isImmutable( QStringLiteral( "EditorGeometry" ) ))
        self()->mEditorGeometry = v;
    }

    /**
      Get EditorGeometry
    */
    static
    QRect editorGeometry()
    {
      return self()->mEditorGeometry;
    }

  protected:
    Prefs();
    friend class PrefsHelper;


    // General
    QString mTileSet;
    QString mBackground;
    QString mLayout;
    int mAngle;
    bool mRandomLayout;
    bool mSolvableGames;
    bool mShowMatchingTiles;
    QRect mEditorGeometry;

  private:
};

#endif

