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

#include <kstandarddirs.h>
#include <tqdir.h>
#include <tdelocale.h>
#include <kdebug.h>

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

class Settings : public TDEConfigSkeleton
{
  public:

    static Settings *self();
    ~Settings();

    /**
      Set The language selected by the user
    */
    static
    void setUserLanguage( const TQString & v )
    {
      if (!self()->isImmutable( TQString::fromLatin1( "UserLanguage" ) ))
        self()->mUserLanguage = v;
    }

    /**
      Get The language selected by the user
    */
    static
    TQString userLanguage()
    {
      return self()->mUserLanguage;
    }

    /**
      Set how many questions are asked in one session.
    */
    static
    void setNumOfQuestions( int v )
    {
      if (!self()->isImmutable( TQString::fromLatin1( "NumOfQuestions" ) ))
        self()->mNumOfQuestions = v;
    }

    /**
      Get how many questions are asked in one session.
    */
    static
    int numOfQuestions()
    {
      return self()->mNumOfQuestions;
    }

    /**
      Set whether KLatin should ask unlimited questions.
    */
    static
    void setUnlimitedQuestions( int v )
    {
      if (!self()->isImmutable( TQString::fromLatin1( "UnlimitedQuestions" ) ))
        self()->mUnlimitedQuestions = v;
    }

    /**
      Get whether KLatin should ask unlimited questions.
    */
    static
    int unlimitedQuestions()
    {
      return self()->mUnlimitedQuestions;
    }

    /**
      Set the default vocabulary file.
    */
    static
    void setDefaultFile( const TQString & v )
    {
      if (!self()->isImmutable( TQString::fromLatin1( "DefaultFile" ) ))
        self()->mDefaultFile = v;
    }

    /**
      Get the default vocabulary file.
    */
    static
    TQString defaultFile()
    {
      return self()->mDefaultFile;
    }

    /**
      Set whether the questions should be Latin to the user's language.
    */
    static
    void setLatinToLang( bool v )
    {
      if (!self()->isImmutable( TQString::fromLatin1( "LatinToLang" ) ))
        self()->mLatinToLang = v;
    }

    /**
      Get whether the questions should be Latin to the user's language.
    */
    static
    bool latinToLang()
    {
      return self()->mLatinToLang;
    }

    /**
      Set whether the questions should be the user's language to Latin.
    */
    static
    void setLangToLatin( bool v )
    {
      if (!self()->isImmutable( TQString::fromLatin1( "LangToLatin" ) ))
        self()->mLangToLatin = v;
    }

    /**
      Get whether the questions should be the user's language to Latin.
    */
    static
    bool langToLatin()
    {
      return self()->mLangToLatin;
    }

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


    // Language
    TQString mUserLanguage;

    // Vocabulary
    int mNumOfQuestions;
    int mUnlimitedQuestions;
    TQString mDefaultFile;
    bool mLatinToLang;
    bool mLangToLatin;

  private:
};

#endif

