Warning, /frameworks/kconfig/autotests/kconfig_compiler/test2.h.ref is written in an unsupported language. File is not indexed.
0001 // This file is generated by kconfig_compiler_kf6 from test2.kcfg. 0002 // All changes you do to this file will be lost. 0003 #ifndef TEST2_H 0004 #define TEST2_H 0005 0006 #include <myprefs.h> 0007 0008 #include <qglobal.h> 0009 #include <kconfigskeleton.h> 0010 #include <QCoreApplication> 0011 #include <QDebug> 0012 0013 class Test2 : public MyPrefs 0014 { 0015 public: 0016 enum EnumDestination { standardDestination, askDestination, argl1, argl2, argl3 }; 0017 0018 Test2( ); 0019 ~Test2() override; 0020 0021 /** 0022 Set Enable automatic saving of calendar 0023 */ 0024 void setAutoSave( bool v ) 0025 { 0026 if (!isAutoSaveImmutable()) 0027 mAutoSave = v; 0028 } 0029 0030 /** 0031 Get Enable automatic saving of calendar 0032 */ 0033 bool autoSave() const 0034 { 0035 return mAutoSave; 0036 } 0037 0038 /** 0039 Is Enable automatic saving of calendar Immutable 0040 */ 0041 bool isAutoSaveImmutable() const 0042 { 0043 return isImmutable( QStringLiteral( "AutoSave" ) ); 0044 } 0045 0046 /** 0047 Get Item object corresponding to AutoSave() 0048 */ 0049 ItemBool *autoSaveItem() 0050 { 0051 return mAutoSaveItem; 0052 } 0053 0054 /** 0055 Set Auto Save Interval 0056 */ 0057 void setAutoSaveInterval( int v ) 0058 { 0059 if (!isAutoSaveIntervalImmutable()) 0060 mAutoSaveInterval = v; 0061 } 0062 0063 /** 0064 Get Auto Save Interval 0065 */ 0066 int autoSaveInterval() const 0067 { 0068 return mAutoSaveInterval; 0069 } 0070 0071 /** 0072 Is Auto Save Interval Immutable 0073 */ 0074 bool isAutoSaveIntervalImmutable() const 0075 { 0076 return isImmutable( QStringLiteral( "AutoSaveInterval" ) ); 0077 } 0078 0079 /** 0080 Get Item object corresponding to AutoSaveInterval() 0081 */ 0082 ItemInt *autoSaveIntervalItem() 0083 { 0084 return mAutoSaveIntervalItem; 0085 } 0086 0087 /** 0088 Set Confirm deletes 0089 */ 0090 void setConfirm( bool v ) 0091 { 0092 if (!isConfirmImmutable()) 0093 mConfirm = v; 0094 } 0095 0096 /** 0097 Get Confirm deletes 0098 */ 0099 bool confirm() const 0100 { 0101 return mConfirm; 0102 } 0103 0104 /** 0105 Is Confirm deletes Immutable 0106 */ 0107 bool isConfirmImmutable() const 0108 { 0109 return isImmutable( QStringLiteral( "Confirm" ) ); 0110 } 0111 0112 /** 0113 Get Item object corresponding to Confirm() 0114 */ 0115 ItemBool *confirmItem() 0116 { 0117 return mConfirmItem; 0118 } 0119 0120 /** 0121 Set Archive File 0122 */ 0123 void setArchiveFile( const QString & v ) 0124 { 0125 if (!isArchiveFileImmutable()) 0126 mArchiveFile = v; 0127 } 0128 0129 /** 0130 Get Archive File 0131 */ 0132 QString archiveFile() const 0133 { 0134 return mArchiveFile; 0135 } 0136 0137 /** 0138 Is Archive File Immutable 0139 */ 0140 bool isArchiveFileImmutable() const 0141 { 0142 return isImmutable( QStringLiteral( "ArchiveFile" ) ); 0143 } 0144 0145 /** 0146 Get Item object corresponding to ArchiveFile() 0147 */ 0148 ItemString *archiveFileItem() 0149 { 0150 return mArchiveFileItem; 0151 } 0152 0153 /** 0154 Set New Events/Todos Should 0155 */ 0156 void setDestination( int v ) 0157 { 0158 if (!isDestinationImmutable()) 0159 mDestination = v; 0160 } 0161 0162 /** 0163 Get New Events/Todos Should 0164 */ 0165 int destination() const 0166 { 0167 return mDestination; 0168 } 0169 0170 /** 0171 Is New Events/Todos Should Immutable 0172 */ 0173 bool isDestinationImmutable() const 0174 { 0175 return isImmutable( QStringLiteral( "Destination" ) ); 0176 } 0177 0178 /** 0179 Get Item object corresponding to Destination() 0180 */ 0181 ItemEnum *destinationItem() 0182 { 0183 return mDestinationItem; 0184 } 0185 0186 /** 0187 Set Hour Size 0188 */ 0189 void setHourSize( int v ) 0190 { 0191 if (!isHourSizeImmutable()) 0192 mHourSize = v; 0193 } 0194 0195 /** 0196 Get Hour Size 0197 */ 0198 int hourSize() const 0199 { 0200 return mHourSize; 0201 } 0202 0203 /** 0204 Is Hour Size Immutable 0205 */ 0206 bool isHourSizeImmutable() const 0207 { 0208 return isImmutable( QStringLiteral( "HourSize" ) ); 0209 } 0210 0211 /** 0212 Get Item object corresponding to HourSize() 0213 */ 0214 ItemInt *hourSizeItem() 0215 { 0216 return mHourSizeItem; 0217 } 0218 0219 /** 0220 Set Time range selection in agenda view starts event editor 0221 */ 0222 void setSelectionStartsEditor( bool v ) 0223 { 0224 if (!isSelectionStartsEditorImmutable()) 0225 mSelectionStartsEditor = v; 0226 } 0227 0228 /** 0229 Get Time range selection in agenda view starts event editor 0230 */ 0231 bool selectionStartsEditor() const 0232 { 0233 return mSelectionStartsEditor; 0234 } 0235 0236 /** 0237 Is Time range selection in agenda view starts event editor Immutable 0238 */ 0239 bool isSelectionStartsEditorImmutable() const 0240 { 0241 return isImmutable( QStringLiteral( "SelectionStartsEditor" ) ); 0242 } 0243 0244 /** 0245 Get Item object corresponding to SelectionStartsEditor() 0246 */ 0247 ItemBool *selectionStartsEditorItem() 0248 { 0249 return mSelectionStartsEditorItem; 0250 } 0251 0252 /** 0253 Set SelectedPlugins 0254 */ 0255 void setSelectedPlugins( const QStringList & v ) 0256 { 0257 if (!isSelectedPluginsImmutable()) 0258 mSelectedPlugins = v; 0259 } 0260 0261 /** 0262 Get SelectedPlugins 0263 */ 0264 QStringList selectedPlugins() const 0265 { 0266 return mSelectedPlugins; 0267 } 0268 0269 /** 0270 Is SelectedPlugins Immutable 0271 */ 0272 bool isSelectedPluginsImmutable() const 0273 { 0274 return isImmutable( QStringLiteral( "SelectedPlugins" ) ); 0275 } 0276 0277 /** 0278 Get Item object corresponding to SelectedPlugins() 0279 */ 0280 ItemStringList *selectedPluginsItem() 0281 { 0282 return mSelectedPluginsItem; 0283 } 0284 0285 /** 0286 Set Highlight color 0287 */ 0288 void setHighlightColor( const QColor & v ) 0289 { 0290 if (!isHighlightColorImmutable()) 0291 mHighlightColor = v; 0292 } 0293 0294 /** 0295 Get Highlight color 0296 */ 0297 QColor highlightColor() const 0298 { 0299 return mHighlightColor; 0300 } 0301 0302 /** 0303 Is Highlight color Immutable 0304 */ 0305 bool isHighlightColorImmutable() const 0306 { 0307 return isImmutable( QStringLiteral( "HighlightColor" ) ); 0308 } 0309 0310 /** 0311 Get Item object corresponding to HighlightColor() 0312 */ 0313 ItemColor *highlightColorItem() 0314 { 0315 return mHighlightColorItem; 0316 } 0317 0318 /** 0319 Set Agenda view background color 0320 */ 0321 void setAgendaBgColor( const QColor & v ) 0322 { 0323 if (!isAgendaBgColorImmutable()) 0324 mAgendaBgColor = v; 0325 } 0326 0327 /** 0328 Get Agenda view background color 0329 */ 0330 QColor agendaBgColor() const 0331 { 0332 return mAgendaBgColor; 0333 } 0334 0335 /** 0336 Is Agenda view background color Immutable 0337 */ 0338 bool isAgendaBgColorImmutable() const 0339 { 0340 return isImmutable( QStringLiteral( "AgendaBgColor" ) ); 0341 } 0342 0343 /** 0344 Get Item object corresponding to AgendaBgColor() 0345 */ 0346 ItemColor *agendaBgColorItem() 0347 { 0348 return mAgendaBgColorItem; 0349 } 0350 0351 /** 0352 Set Time bar 0353 */ 0354 void setTimeBarFont( const QFont & v ) 0355 { 0356 if (!isTimeBarFontImmutable()) 0357 mTimeBarFont = v; 0358 } 0359 0360 /** 0361 Get Time bar 0362 */ 0363 QFont timeBarFont() const 0364 { 0365 return mTimeBarFont; 0366 } 0367 0368 /** 0369 Is Time bar Immutable 0370 */ 0371 bool isTimeBarFontImmutable() const 0372 { 0373 return isImmutable( QStringLiteral( "TimeBarFont" ) ); 0374 } 0375 0376 /** 0377 Get Item object corresponding to TimeBarFont() 0378 */ 0379 ItemFont *timeBarFontItem() 0380 { 0381 return mTimeBarFontItem; 0382 } 0383 0384 protected: 0385 public: 0386 0387 // General 0388 bool mAutoSave; 0389 int mAutoSaveInterval; 0390 bool mConfirm; 0391 QString mArchiveFile; 0392 int mDestination; 0393 0394 // Views 0395 int mHourSize; 0396 bool mSelectionStartsEditor; 0397 0398 // KOrganizer Plugins 0399 QStringList mSelectedPlugins; 0400 0401 // Colors 0402 QColor mHighlightColor; 0403 QColor mAgendaBgColor; 0404 0405 // Fonts 0406 QFont mTimeBarFont; 0407 0408 private: 0409 ItemBool *mAutoSaveItem; 0410 ItemInt *mAutoSaveIntervalItem; 0411 ItemBool *mConfirmItem; 0412 ItemString *mArchiveFileItem; 0413 ItemEnum *mDestinationItem; 0414 ItemInt *mHourSizeItem; 0415 ItemBool *mSelectionStartsEditorItem; 0416 ItemStringList *mSelectedPluginsItem; 0417 ItemColor *mHighlightColorItem; 0418 ItemColor *mAgendaBgColorItem; 0419 ItemFont *mTimeBarFontItem; 0420 }; 0421 0422 #endif 0423