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

#include <kconfigskeleton.h>
#include <kdebug.h>

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

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

    /**
      Set Path to index directory.
    */
    static
    void setIndexDirectory( const QString & v )
    {
      if (!self()->isImmutable( QString::fromLatin1( "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( QString::fromLatin1( "Method" ) ))
        self()->mMethod = v;
    }

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

    /**
      Set MaxCount
    */
    static
    void setMaxCount( int v )
    {
      if (!self()->isImmutable( QString::fromLatin1( "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( QString::fromLatin1( "CurrentTab" ) ))
        self()->mCurrentTab = v;
    }

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

  protected:
    Prefs();
    friend class PrefsHelper;


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

    // Layout
    int mCurrentTab;

  private:
};

#endif

