// This file is generated by kconfig_compiler_kf6 from kjots.kcfg.
// All changes you do to this file will be lost.
#ifndef KJOTSSETTINGS_H
#define KJOTSSETTINGS_H

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

class KJotsSettings : public KConfigSkeleton
{
  public:
    class EnumViewMode
    {
      public:
      enum type { TwoColumn, ThreeColumn, COUNT };
    };

    static KJotsSettings *self();
    ~KJotsSettings() override;

    /**
      Set Whether books should be saved automatically.
    */
    static
    void setAutoSave( bool v )
    {
      if (!self()->isAutoSaveImmutable())
        self()->mAutoSave = v;
    }

    /**
      Get Whether books should be saved automatically.
    */
    static
    bool autoSave()
    {
      return self()->mAutoSave;
    }

    /**
      Is Whether books should be saved automatically. Immutable
    */
    static
    bool isAutoSaveImmutable()
    {
      return self()->isImmutable( QStringLiteral( "AutoSave" ) );
    }

    /**
      Set The interval in minutes at which books should be saved automatically.
    */
    static
    void setAutoSaveInterval( int v )
    {
      if (!self()->isAutoSaveIntervalImmutable())
        self()->mAutoSaveInterval = v;
    }

    /**
      Get The interval in minutes at which books should be saved automatically.
    */
    static
    int autoSaveInterval()
    {
      return self()->mAutoSaveInterval;
    }

    /**
      Is The interval in minutes at which books should be saved automatically. Immutable
    */
    static
    bool isAutoSaveIntervalImmutable()
    {
      return self()->isImmutable( QStringLiteral( "AutoSaveInterval" ) );
    }

    /**
      Set ViewMode
    */
    static
    void setViewMode( int v )
    {
      if (!self()->isViewModeImmutable())
        self()->mViewMode = v;
    }

    /**
      Get ViewMode
    */
    static
    int viewMode()
    {
      return self()->mViewMode;
    }

    /**
      Is ViewMode Immutable
    */
    static
    bool isViewModeImmutable()
    {
      return self()->isImmutable( QStringLiteral( "ViewMode" ) );
    }

  protected:
    KJotsSettings();
    friend class KJotsSettingsHelper;


    // kjots
    bool mAutoSave;
    int mAutoSaveInterval;
    int mViewMode;
};

#endif

