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

#include <base/baseprefs.h>

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

class CommonPrefs : public BasePrefs
{
  public:

    static CommonPrefs *self();
    ~CommonPrefs();


    /**
      Get Show next piece.
    */
    static
    bool showNextPiece()
    {
      return self()->mShowNextPiece;
    }


    /**
      Get Show the shadow of a piece.
    */
    static
    bool showPieceShadow()
    {
      return self()->mShowPieceShadow;
    }


    /**
      Get Show detailed 'removed lines'.
    */
    static
    bool showDetailedRemoved()
    {
      return self()->mShowDetailedRemoved;
    }


    /**
      Get The initial level of new games.
    */
    static
    int initialGameLevel()
    {
      return self()->mInitialGameLevel;
    }


    /**
      Get Enable direct dropping of pieces.
    */
    static
    bool directDropDownEnabled()
    {
      return self()->mDirectDropDownEnabled;
    }


    /**
      Get The thinking depth
    */
    static
    int thinkingDepth()
    {
      return self()->mThinkingDepth;
    }

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


    // Options
    bool mShowNextPiece;
    bool mShowPieceShadow;
    bool mShowDetailedRemoved;
    int mInitialGameLevel;
    bool mDirectDropDownEnabled;

    // AI
    int mThinkingDepth;

  private:
};

#endif

