• Skip to content
  • Skip to link menu
KDE 4.0 API Reference
  • KDE API Reference
  • API Reference
  • Sitemap
  • Contact Us
 

ksquares

settings.h

Go to the documentation of this file.
00001 // This file is generated by kconfig_compiler from ksquares.kcfg.
00002 // All changes you do to this file will be lost.
00003 #ifndef SETTINGS_H
00004 #define SETTINGS_H
00005 
00006 #include <kconfigskeleton.h>
00007 #include <kdebug.h>
00008 
00009 class Settings : public KConfigSkeleton
00010 {
00011   public:
00012 
00013     static Settings *self();
00014     ~Settings();
00015 
00019     static
00020     void setNumOfPlayers( int v )
00021     {
00022       if (!self()->isImmutable( QString::fromLatin1 ( "NumOfPlayers" ) ))
00023         self()->mNumOfPlayers = v;
00024     }
00025 
00029     static
00030     int numOfPlayers()
00031     {
00032       return self()->mNumOfPlayers;
00033     }
00034 
00038     static
00039     void setPlayerNames( const QStringList & v )
00040     {
00041       if (!self()->isImmutable( QString::fromLatin1 ( "PlayerNames" ) ))
00042         self()->mPlayerNames = v;
00043     }
00044 
00048     static
00049     QStringList playerNames()
00050     {
00051       return self()->mPlayerNames;
00052     }
00053 
00057     static
00058     void setHumanList( const QList<int> & v )
00059     {
00060       if (!self()->isImmutable( QString::fromLatin1 ( "HumanList" ) ))
00061         self()->mHumanList = v;
00062     }
00063 
00067     static
00068     QList<int> humanList()
00069     {
00070       return self()->mHumanList;
00071     }
00072 
00076     static
00077     void setBoardWidth( int v )
00078     {
00079       if (!self()->isImmutable( QString::fromLatin1 ( "BoardWidth" ) ))
00080         self()->mBoardWidth = v;
00081     }
00082 
00086     static
00087     int boardWidth()
00088     {
00089       return self()->mBoardWidth;
00090     }
00091 
00095     static
00096     void setBoardHeight( int v )
00097     {
00098       if (!self()->isImmutable( QString::fromLatin1 ( "BoardHeight" ) ))
00099         self()->mBoardHeight = v;
00100     }
00101 
00105     static
00106     int boardHeight()
00107     {
00108       return self()->mBoardHeight;
00109     }
00110 
00114     static
00115     void setQuickStart( int v )
00116     {
00117       if (!self()->isImmutable( QString::fromLatin1 ( "QuickStart" ) ))
00118         self()->mQuickStart = v;
00119     }
00120 
00124     static
00125     int quickStart()
00126     {
00127       return self()->mQuickStart;
00128     }
00129 
00133     static
00134     void setDifficulty( int v )
00135     {
00136       if (!self()->isImmutable( QString::fromLatin1 ( "Difficulty" ) ))
00137         self()->mDifficulty = v;
00138     }
00139 
00143     static
00144     int difficulty()
00145     {
00146       return self()->mDifficulty;
00147     }
00148 
00152     static
00153     void setLineColor( const QColor & v )
00154     {
00155       if (!self()->isImmutable( QString::fromLatin1 ( "LineColor" ) ))
00156         self()->mLineColor = v;
00157     }
00158 
00162     static
00163     QColor lineColor()
00164     {
00165       return self()->mLineColor;
00166     }
00167 
00171     static
00172     void setIndicatorLineColor( const QColor & v )
00173     {
00174       if (!self()->isImmutable( QString::fromLatin1 ( "IndicatorLineColor" ) ))
00175         self()->mIndicatorLineColor = v;
00176     }
00177 
00181     static
00182     QColor indicatorLineColor()
00183     {
00184       return self()->mIndicatorLineColor;
00185     }
00186 
00187   protected:
00188     Settings();
00189     friend class SettingsHelper;
00190 
00191 
00192     // Game Settings
00193     int mNumOfPlayers;
00194     QStringList mPlayerNames;
00195     QList<int> mHumanList;
00196     int mBoardWidth;
00197     int mBoardHeight;
00198     int mQuickStart;
00199 
00200     // AI
00201     int mDifficulty;
00202 
00203     // Display
00204     QColor mLineColor;
00205     QColor mIndicatorLineColor;
00206 
00207   private:
00208 };
00209 
00210 #endif
00211 

ksquares

Skip menu "ksquares"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

API Reference

Skip menu "API Reference"
  • kblackbox
  • kgoldrunner
  • kmahjongg
  • ksquares
  • libkdegames
  •   highscore
  •   kgame
  •   kggzgames
  •   kggzmod
  •   kggznet
  • libkmahjongg
Generated for API Reference by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal