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

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

class KJotsSettings : public TDEConfigSkeleton
{
  public:

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

    /**
      Set How the main window is divided.
    */
    static
    void setSplitterSizes( const TQValueList<int> & v )
    {
      if (!self()->isImmutable( TQString::fromLatin1( "SplitterSizes" ) ))
        self()->mSplitterSizes = v;
    }

    /**
      Get How the main window is divided.
    */
    static
    TQValueList<int> splitterSizes()
    {
      return self()->mSplitterSizes;
    }

    /**
      Set The book or page that is currently active.
    */
    static
    void setCurrentSelection( TQ_UINT64 v )
    {
      if (!self()->isImmutable( TQString::fromLatin1( "CurrentSelection" ) ))
        self()->mCurrentSelection = v;
    }

    /**
      Get The book or page that is currently active.
    */
    static
    TQ_UINT64 currentSelection()
    {
      return self()->mCurrentSelection;
    }


    /**
      Get The font used to display the contents of books.
    */
    static
    TQFont font()
    {
      return self()->mFont;
    }


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


    /**
      Get Whether UTF-8 encoding should be forced for saving and loading.
    */
    static
    bool unicode()
    {
      return self()->mUnicode;
    }


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

    /**
      Set The last ID that was used for a book or page.
    */
    static
    void setLastId( TQ_UINT64 v )
    {
      if (!self()->isImmutable( TQString::fromLatin1( "LastId" ) ))
        self()->mLastId = v;
    }

    /**
      Get The last ID that was used for a book or page.
    */
    static
    TQ_UINT64 lastId()
    {
      return self()->mLastId;
    }

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


    // kjots
    TQValueList<int> mSplitterSizes;
    TQ_UINT64 mCurrentSelection;
    TQFont mFont;
    bool mAutoSave;
    bool mUnicode;
    int mAutoSaveInterval;
    TQ_UINT64 mLastId;

  private:
};

#endif

