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

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

class Prefs : public TDEConfigSkeleton
{
  public:

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

    /**
      Set Difficulty level
    */
    static
    void setLevel( int v )
    {
      if (v < -2)
      {
        kdDebug() << "setLevel: value " << v << " is less than the minimum value of -2" << endl;
        v = -2;
      }

      if (v > 2)
      {
        kdDebug() << "setLevel: value " << v << " is greater than the maximum value of 2" << endl;
        v = 2;
      }

      if (!self()->isImmutable( TQString::fromLatin1( "Level" ) ))
        self()->mLevel = v;
    }

    /**
      Get Difficulty level
    */
    static
    int level()
    {
      return self()->mLevel;
    }

    /**
      Set Whether to show the next set of balls.
    */
    static
    void setShowNext( bool v )
    {
      if (!self()->isImmutable( TQString::fromLatin1( "ShowNext" ) ))
        self()->mShowNext = v;
    }

    /**
      Get Whether to show the next set of balls.
    */
    static
    bool showNext()
    {
      return self()->mShowNext;
    }

    /**
      Set Whether to use numbered balls.
    */
    static
    void setNumberedBalls( bool v )
    {
      if (!self()->isImmutable( TQString::fromLatin1( "NumberedBalls" ) ))
        self()->mNumberedBalls = v;
    }

    /**
      Get Whether to use numbered balls.
    */
    static
    bool numberedBalls()
    {
      return self()->mNumberedBalls;
    }

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


    // Game
    int mLevel;
    bool mShowNext;
    bool mNumberedBalls;

  private:
};

#endif

