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

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

#include <QStandardPaths>
class Prefs : public KConfigSkeleton
{
  public:
    enum EnumCurrentTab { Content, Search, Glossary };

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

    /**
      Set ShowMissingDocs
    */
    static
    void setShowMissingDocs( bool v )
    {
      if (!self()->isImmutable( QStringLiteral( "ShowMissingDocs" ) ))
        self()->mShowMissingDocs = v;
    }

    /**
      Get ShowMissingDocs
    */
    static
    bool showMissingDocs()
    {
      return self()->mShowMissingDocs;
    }

    /**
      Set AppsRoot
    */
    static
    void setAppsRoot( const QString & v )
    {
      if (!self()->isImmutable( QStringLiteral( "AppsRoot" ) ))
        self()->mAppsRoot = v;
    }

    /**
      Get AppsRoot
    */
    static
    QString appsRoot()
    {
      return self()->mAppsRoot;
    }

    /**
      Set UseKonqSettings
    */
    static
    void setUseKonqSettings( bool v )
    {
      if (!self()->isImmutable( QStringLiteral( "UseKonqSettings" ) ))
        self()->mUseKonqSettings = v;
    }

    /**
      Get UseKonqSettings
    */
    static
    bool useKonqSettings()
    {
      return self()->mUseKonqSettings;
    }

    /**
      Set Font zoom factor
    */
    static
    void setFontzoomfactor( int v )
    {
      if (!self()->isImmutable( QStringLiteral( "Fontzoomfactor" ) ))
        self()->mFontzoomfactor = v;
    }

    /**
      Get Font zoom factor
    */
    static
    int fontzoomfactor()
    {
      return self()->mFontzoomfactor;
    }

    /**
      Set MetaInfoDirs
    */
    static
    void setMetaInfoDirs( const QStringList & v )
    {
      if (!self()->isImmutable( QStringLiteral( "MetaInfoDirs" ) ))
        self()->mMetaInfoDirs = v;
    }

    /**
      Get MetaInfoDirs
    */
    static
    QStringList metaInfoDirs()
    {
      return self()->mMetaInfoDirs;
    }

    /**
      Set Path to index directory.
    */
    static
    void setIndexDirectory( const QString & v )
    {
      if (!self()->isImmutable( QStringLiteral( "IndexDirectory" ) ))
        self()->mIndexDirectory = v;
    }

    /**
      Get Path to index directory.
    */
    static
    QString indexDirectory()
    {
      return self()->mIndexDirectory;
    }

    /**
      Set Method
    */
    static
    void setMethod( int v )
    {
      if (!self()->isImmutable( QStringLiteral( "Method" ) ))
        self()->mMethod = v;
    }

    /**
      Get Method
    */
    static
    int method()
    {
      return self()->mMethod;
    }

    /**
      Set MaxCount
    */
    static
    void setMaxCount( int v )
    {
      if (!self()->isImmutable( QStringLiteral( "MaxCount" ) ))
        self()->mMaxCount = v;
    }

    /**
      Get MaxCount
    */
    static
    int maxCount()
    {
      return self()->mMaxCount;
    }

    /**
      Set Currently visible navigator tab
    */
    static
    void setCurrentTab( int v )
    {
      if (!self()->isImmutable( QStringLiteral( "CurrentTab" ) ))
        self()->mCurrentTab = v;
    }

    /**
      Get Currently visible navigator tab
    */
    static
    int currentTab()
    {
      return self()->mCurrentTab;
    }

    /**
      Set CachedGlossary
    */
    static
    void setCachedGlossary( const QString & v )
    {
      if (!self()->isImmutable( QStringLiteral( "CachedGlossary" ) ))
        self()->mCachedGlossary = v;
    }

    /**
      Get CachedGlossary
    */
    static
    QString cachedGlossary()
    {
      return self()->mCachedGlossary;
    }

    /**
      Set CachedGlossaryTimestamp
    */
    static
    void setCachedGlossaryTimestamp( int v )
    {
      if (!self()->isImmutable( QStringLiteral( "CachedGlossaryTimestamp" ) ))
        self()->mCachedGlossaryTimestamp = v;
    }

    /**
      Get CachedGlossaryTimestamp
    */
    static
    int cachedGlossaryTimestamp()
    {
      return self()->mCachedGlossaryTimestamp;
    }

    /**
      Set ShowEmptyDirs
    */
    static
    void setShowEmptyDirs( bool v )
    {
      if (!self()->isImmutable( QStringLiteral( "ShowEmptyDirs" ) ))
        self()->mShowEmptyDirs = v;
    }

    /**
      Get ShowEmptyDirs
    */
    static
    bool showEmptyDirs()
    {
      return self()->mShowEmptyDirs;
    }

    /**
      Set Search paths
    */
    static
    void setSearchpaths( const QStringList & v )
    {
      if (!self()->isImmutable( QStringLiteral( "Searchpaths" ) ))
        self()->mSearchpaths = v;
    }

    /**
      Get Search paths
    */
    static
    QStringList searchpaths()
    {
      return self()->mSearchpaths;
    }

    /**
      Set Splitter
    */
    static
    void setSplitter( const QList<int> & v )
    {
      if (!self()->isImmutable( QStringLiteral( "Splitter" ) ))
        self()->mSplitter = v;
    }

    /**
      Get Splitter
    */
    static
    QList<int> splitter()
    {
      return self()->mSplitter;
    }

  protected:
    Prefs();
    friend class PrefsHelper;


    // General
    bool mShowMissingDocs;
    QString mAppsRoot;
    bool mUseKonqSettings;
    int mFontzoomfactor;
    QStringList mMetaInfoDirs;

    // Search
    QString mIndexDirectory;
    int mMethod;
    int mMaxCount;

    // Layout
    int mCurrentTab;

    // Glossary
    QString mCachedGlossary;
    int mCachedGlossaryTimestamp;

    // ScrollKeeper
    bool mShowEmptyDirs;

    // Info pages
    QStringList mSearchpaths;

    // MainWindowState
    QList<int> mSplitter;

  private:
};

#endif

