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 00191 static 00192 QColor highlightColor() 00193 { 00194 return self()->mHighlightColor; 00195 } 00196 00197 protected: 00198 Settings(); 00199 friend class SettingsHelper; 00200 00201 00202 // Game Settings 00203 int mNumOfPlayers; 00204 QStringList mPlayerNames; 00205 QList<int> mHumanList; 00206 int mBoardWidth; 00207 int mBoardHeight; 00208 int mQuickStart; 00209 00210 // AI 00211 int mDifficulty; 00212 00213 // Display 00214 QColor mLineColor; 00215 QColor mIndicatorLineColor; 00216 QColor mHighlightColor; 00217 00218 private: 00219 }; 00220 00221 #endif 00222
KDE 4.2 API Reference