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

#include <tdeconfigskeleton.h>
#include <kdebug.h>

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

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

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

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

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

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

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

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

    static
    void writeConfig()
    {
      static_cast<TDEConfigSkeleton*>(self())->writeConfig();
    }
  protected:
    Prefs();
    static Prefs *mSelf;


    // Search
    TQString mIndexDirectory;
    int mMethod;
    int mMaxCount;

    // Layout
    int mCurrentTab;

  private:
};

#endif

