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

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

class Settings : public KConfigSkeleton
{
  public:

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

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

    /**
      Get The graphical theme to be used.
    */
    static
    QString theme()
    {
      return self()->mTheme;
    }

    /**
      Set Whether sound effects should be played.
    */
    static
    void setSounds( bool v )
    {
      if (!self()->isImmutable( QStringLiteral( "Sounds" ) ))
        self()->mSounds = v;
    }

    /**
      Get Whether sound effects should be played.
    */
    static
    bool sounds()
    {
      return self()->mSounds;
    }

  protected:
    Settings();
    friend class SettingsHelper;


    // General
    QString mTheme;

    // Preferences
    bool mSounds;

  private:
};

#endif

