Warning, /frameworks/kconfig/autotests/kconfig_compiler/test11a.h.ref is written in an unsupported language. File is not indexed.
0001 // This file is generated by kconfig_compiler_kf5 from test11a.kcfg. 0002 // All changes you do to this file will be lost. 0003 #ifndef TEST11A_H 0004 #define TEST11A_H 0005 0006 #include <myprefs.h> 0007 0008 #include <qglobal.h> 0009 #include <kconfigskeleton.h> 0010 #include <QCoreApplication> 0011 #include <QDebug> 0012 0013 #include "test11_types.h" 0014 0015 class Test11a : public MyPrefs 0016 { 0017 public: 0018 class EnumDestination 0019 { 0020 public: 0021 enum type { standardDestination, askDestination, argl1, argl2, argl3, COUNT }; 0022 }; 0023 enum MailClient { sendmail, kmail }; 0024 0025 Test11a( ); 0026 ~Test11a() override; 0027 0028 /** 0029 Set Enable automatic saving of calendar 0030 */ 0031 void setAutoSave( bool v ) 0032 { 0033 if (!isAutoSaveImmutable()) 0034 mAutoSave = v; 0035 } 0036 0037 /** 0038 Get Enable automatic saving of calendar 0039 */ 0040 bool autoSave() const 0041 { 0042 return mAutoSave; 0043 } 0044 0045 /** 0046 Is Enable automatic saving of calendar Immutable 0047 */ 0048 bool isAutoSaveImmutable() const 0049 { 0050 return isImmutable( QStringLiteral( "AutoSave" ) ); 0051 } 0052 0053 /** 0054 Get Item object corresponding to AutoSave() 0055 */ 0056 ItemBool *autoSaveItem() 0057 { 0058 return mAutoSaveItem; 0059 } 0060 0061 /** 0062 Set Auto Save Interval 0063 */ 0064 void setAutoSaveInterval( int v ) 0065 { 0066 if (!isAutoSaveIntervalImmutable()) 0067 mAutoSaveInterval = v; 0068 } 0069 0070 /** 0071 Get Auto Save Interval 0072 */ 0073 int autoSaveInterval() const 0074 { 0075 return mAutoSaveInterval; 0076 } 0077 0078 /** 0079 Is Auto Save Interval Immutable 0080 */ 0081 bool isAutoSaveIntervalImmutable() const 0082 { 0083 return isImmutable( QStringLiteral( "AutoSaveInterval" ) ); 0084 } 0085 0086 /** 0087 Get Item object corresponding to AutoSaveInterval() 0088 */ 0089 ItemInt *autoSaveIntervalItem() 0090 { 0091 return mAutoSaveIntervalItem; 0092 } 0093 0094 /** 0095 Set Confirm deletes 0096 */ 0097 void setConfirm( bool v ) 0098 { 0099 if (!isConfirmImmutable()) 0100 mConfirm = v; 0101 } 0102 0103 /** 0104 Get Confirm deletes 0105 */ 0106 bool confirm() const 0107 { 0108 return mConfirm; 0109 } 0110 0111 /** 0112 Is Confirm deletes Immutable 0113 */ 0114 bool isConfirmImmutable() const 0115 { 0116 return isImmutable( QStringLiteral( "Confirm" ) ); 0117 } 0118 0119 /** 0120 Get Item object corresponding to Confirm() 0121 */ 0122 ItemBool *confirmItem() 0123 { 0124 return mConfirmItem; 0125 } 0126 0127 /** 0128 Set Archive File 0129 */ 0130 void setArchiveFile( const QString & v ) 0131 { 0132 if (!isArchiveFileImmutable()) 0133 mArchiveFile = v; 0134 } 0135 0136 /** 0137 Get Archive File 0138 */ 0139 QString archiveFile() const 0140 { 0141 return mArchiveFile; 0142 } 0143 0144 /** 0145 Is Archive File Immutable 0146 */ 0147 bool isArchiveFileImmutable() const 0148 { 0149 return isImmutable( QStringLiteral( "ArchiveFile" ) ); 0150 } 0151 0152 /** 0153 Get Item object corresponding to ArchiveFile() 0154 */ 0155 ItemString *archiveFileItem() 0156 { 0157 return mArchiveFileItem; 0158 } 0159 0160 /** 0161 Set New Events/Todos Should 0162 */ 0163 void setDestination( EnumDestination::type v ) 0164 { 0165 if (!isDestinationImmutable()) 0166 mDestination = v; 0167 } 0168 0169 /** 0170 Get New Events/Todos Should 0171 */ 0172 EnumDestination::type destination() const 0173 { 0174 return static_cast<EnumDestination::type>(mDestination); 0175 } 0176 0177 /** 0178 Is New Events/Todos Should Immutable 0179 */ 0180 bool isDestinationImmutable() const 0181 { 0182 return isImmutable( QStringLiteral( "Destination" ) ); 0183 } 0184 0185 /** 0186 Get New Events/Todos Should default value 0187 */ 0188 EnumDestination::type defaultDestinationValue() const 0189 { 0190 return static_cast<EnumDestination::type>(defaultDestinationValue_helper()); 0191 } 0192 0193 /** 0194 Get Item object corresponding to Destination() 0195 */ 0196 ItemEnum *destinationItem() 0197 { 0198 return mDestinationItem; 0199 } 0200 0201 /** 0202 Set Hour Size 0203 */ 0204 void setHourSize( int v ) 0205 { 0206 if (!isHourSizeImmutable()) 0207 mHourSize = v; 0208 } 0209 0210 /** 0211 Get Hour Size 0212 */ 0213 int hourSize() const 0214 { 0215 return mHourSize; 0216 } 0217 0218 /** 0219 Is Hour Size Immutable 0220 */ 0221 bool isHourSizeImmutable() const 0222 { 0223 return isImmutable( QStringLiteral( "HourSize" ) ); 0224 } 0225 0226 /** 0227 Get Item object corresponding to HourSize() 0228 */ 0229 ItemInt *hourSizeItem() 0230 { 0231 return mHourSizeItem; 0232 } 0233 0234 /** 0235 Set Time range selection in agenda view starts event editor 0236 */ 0237 void setSelectionStartsEditor( bool v ) 0238 { 0239 if (!isSelectionStartsEditorImmutable()) 0240 mSelectionStartsEditor = v; 0241 } 0242 0243 /** 0244 Get Time range selection in agenda view starts event editor 0245 */ 0246 bool selectionStartsEditor() const 0247 { 0248 return mSelectionStartsEditor; 0249 } 0250 0251 /** 0252 Is Time range selection in agenda view starts event editor Immutable 0253 */ 0254 bool isSelectionStartsEditorImmutable() const 0255 { 0256 return isImmutable( QStringLiteral( "SelectionStartsEditor" ) ); 0257 } 0258 0259 /** 0260 Get Time range selection in agenda view starts event editor default value 0261 */ 0262 bool defaultSelectionStartsEditorValue() const 0263 { 0264 return defaultSelectionStartsEditorValue_helper(); 0265 } 0266 0267 /** 0268 Get Item object corresponding to SelectionStartsEditor() 0269 */ 0270 ItemBool *selectionStartsEditorItem() 0271 { 0272 return mSelectionStartsEditorItem; 0273 } 0274 0275 /** 0276 Set SelectedPlugins 0277 */ 0278 void setSelectedPlugins( const QStringList & v ) 0279 { 0280 if (!isSelectedPluginsImmutable()) 0281 mSelectedPlugins = v; 0282 } 0283 0284 /** 0285 Get SelectedPlugins 0286 */ 0287 QStringList selectedPlugins() const 0288 { 0289 return mSelectedPlugins; 0290 } 0291 0292 /** 0293 Is SelectedPlugins Immutable 0294 */ 0295 bool isSelectedPluginsImmutable() const 0296 { 0297 return isImmutable( QStringLiteral( "SelectedPlugins" ) ); 0298 } 0299 0300 /** 0301 Get Item object corresponding to SelectedPlugins() 0302 */ 0303 ItemStringList *selectedPluginsItem() 0304 { 0305 return mSelectedPluginsItem; 0306 } 0307 0308 /** 0309 Set Highlight color 0310 */ 0311 void setHighlightColor( const QColor & v ) 0312 { 0313 if (!isHighlightColorImmutable()) 0314 mHighlightColor = v; 0315 } 0316 0317 /** 0318 Get Highlight color 0319 */ 0320 QColor highlightColor() const 0321 { 0322 return mHighlightColor; 0323 } 0324 0325 /** 0326 Is Highlight color Immutable 0327 */ 0328 bool isHighlightColorImmutable() const 0329 { 0330 return isImmutable( QStringLiteral( "HighlightColor" ) ); 0331 } 0332 0333 /** 0334 Get Item object corresponding to HighlightColor() 0335 */ 0336 ItemColor *highlightColorItem() 0337 { 0338 return mHighlightColorItem; 0339 } 0340 0341 /** 0342 Set Agenda view background color 0343 */ 0344 void setAgendaBgColor( const QColor & v ) 0345 { 0346 if (!isAgendaBgColorImmutable()) 0347 mAgendaBgColor = v; 0348 } 0349 0350 /** 0351 Get Agenda view background color 0352 */ 0353 QColor agendaBgColor() const 0354 { 0355 return mAgendaBgColor; 0356 } 0357 0358 /** 0359 Is Agenda view background color Immutable 0360 */ 0361 bool isAgendaBgColorImmutable() const 0362 { 0363 return isImmutable( QStringLiteral( "AgendaBgColor" ) ); 0364 } 0365 0366 /** 0367 Get Item object corresponding to AgendaBgColor() 0368 */ 0369 ItemColor *agendaBgColorItem() 0370 { 0371 return mAgendaBgColorItem; 0372 } 0373 0374 /** 0375 Set Time bar 0376 */ 0377 void setTimeBarFont( const QFont & v ) 0378 { 0379 if (!isTimeBarFontImmutable()) 0380 mTimeBarFont = v; 0381 } 0382 0383 /** 0384 Get Time bar 0385 */ 0386 QFont timeBarFont() const 0387 { 0388 return mTimeBarFont; 0389 } 0390 0391 /** 0392 Is Time bar Immutable 0393 */ 0394 bool isTimeBarFontImmutable() const 0395 { 0396 return isImmutable( QStringLiteral( "TimeBarFont" ) ); 0397 } 0398 0399 /** 0400 Get Item object corresponding to TimeBarFont() 0401 */ 0402 ItemFont *timeBarFontItem() 0403 { 0404 return mTimeBarFontItem; 0405 } 0406 0407 /** 0408 Set Email client 0409 */ 0410 void setEmailClient( MailClient v ) 0411 { 0412 if (!isEmailClientImmutable()) 0413 mEmailClient = v; 0414 } 0415 0416 /** 0417 Get Email client 0418 */ 0419 MailClient emailClient() const 0420 { 0421 return static_cast<MailClient>(mEmailClient); 0422 } 0423 0424 /** 0425 Is Email client Immutable 0426 */ 0427 bool isEmailClientImmutable() const 0428 { 0429 return isImmutable( QStringLiteral( "EmailClient" ) ); 0430 } 0431 0432 /** 0433 Get Item object corresponding to EmailClient() 0434 */ 0435 ItemEnum *emailClientItem() 0436 { 0437 return mEmailClientItem; 0438 } 0439 0440 /** 0441 Set Reminder units 0442 */ 0443 void setDefaultReminderUnits( TimePeriod::Units v ) 0444 { 0445 if (!isDefaultReminderUnitsImmutable()) 0446 mDefaultReminderUnits = v; 0447 } 0448 0449 /** 0450 Get Reminder units 0451 */ 0452 TimePeriod::Units defaultReminderUnits() const 0453 { 0454 return static_cast<TimePeriod::Units>(mDefaultReminderUnits); 0455 } 0456 0457 /** 0458 Is Reminder units Immutable 0459 */ 0460 bool isDefaultReminderUnitsImmutable() const 0461 { 0462 return isImmutable( QStringLiteral( "DefaultReminderUnits" ) ); 0463 } 0464 0465 /** 0466 Get Reminder units default value 0467 */ 0468 TimePeriod::Units defaultDefaultReminderUnitsValue() const 0469 { 0470 return static_cast<TimePeriod::Units>(defaultDefaultReminderUnitsValue_helper()); 0471 } 0472 0473 /** 0474 Get Item object corresponding to DefaultReminderUnits() 0475 */ 0476 ItemEnum *defaultReminderUnitsItem() 0477 { 0478 return mDefaultReminderUnitsItem; 0479 } 0480 0481 /** 0482 Set EmptyingRate $(QueueIndex) 0483 */ 0484 void setQueueRate( int i, const QList<int> & v ) 0485 { 0486 if (!isQueueRateImmutable( i )) 0487 mQueueRate[i] = v; 0488 } 0489 0490 /** 0491 Get EmptyingRate $(QueueIndex) 0492 */ 0493 QList<int> queueRate( int i ) const 0494 { 0495 return mQueueRate[i]; 0496 } 0497 0498 /** 0499 Is EmptyingRate $(QueueIndex) Immutable 0500 */ 0501 bool isQueueRateImmutable( int i ) const 0502 { 0503 return isImmutable( QStringLiteral( "queueRate%1" ).arg( i ) ); 0504 } 0505 0506 /** 0507 Get Item object corresponding to queueRate() 0508 */ 0509 ItemIntList *queueRateItem( int i ) 0510 { 0511 return mQueueRateItem[i]; 0512 } 0513 0514 /** 0515 Set ShowQueueTuner 0516 */ 0517 void setShowQueueTuner( bool v ) 0518 { 0519 if (!isShowQueueTunerImmutable()) 0520 mShowQueueTuner = v; 0521 } 0522 0523 /** 0524 Get ShowQueueTuner 0525 */ 0526 bool showQueueTuner() const 0527 { 0528 return mShowQueueTuner; 0529 } 0530 0531 /** 0532 Is ShowQueueTuner Immutable 0533 */ 0534 bool isShowQueueTunerImmutable() const 0535 { 0536 return isImmutable( QStringLiteral( "ShowQueueTuner" ) ); 0537 } 0538 0539 /** 0540 Get Item object corresponding to ShowQueueTuner() 0541 */ 0542 ItemBool *showQueueTunerItem() 0543 { 0544 return mShowQueueTunerItem; 0545 } 0546 0547 protected: 0548 public: 0549 0550 // General 0551 bool mAutoSave; 0552 int mAutoSaveInterval; 0553 bool mConfirm; 0554 QString mArchiveFile; 0555 int mDestination; 0556 int defaultDestinationValue_helper() const; 0557 0558 // Views 0559 int mHourSize; 0560 bool mSelectionStartsEditor; 0561 bool defaultSelectionStartsEditorValue_helper() const; 0562 0563 // KOrganizer Plugins 0564 QStringList mSelectedPlugins; 0565 0566 // Colors 0567 QColor mHighlightColor; 0568 QColor mAgendaBgColor; 0569 0570 // Fonts 0571 QFont mTimeBarFont; 0572 0573 // Email 0574 int mEmailClient; 0575 int mDefaultReminderUnits; 0576 int defaultDefaultReminderUnitsValue_helper() const; 0577 0578 // QueueRates 0579 QList<int> mQueueRate[3]; 0580 bool mShowQueueTuner; 0581 0582 private: 0583 ItemBool *mAutoSaveItem; 0584 ItemInt *mAutoSaveIntervalItem; 0585 ItemBool *mConfirmItem; 0586 ItemString *mArchiveFileItem; 0587 ItemEnum *mDestinationItem; 0588 ItemInt *mHourSizeItem; 0589 ItemBool *mSelectionStartsEditorItem; 0590 ItemStringList *mSelectedPluginsItem; 0591 ItemColor *mHighlightColorItem; 0592 ItemColor *mAgendaBgColorItem; 0593 ItemFont *mTimeBarFontItem; 0594 ItemEnum *mEmailClientItem; 0595 ItemEnum *mDefaultReminderUnitsItem; 0596 ItemIntList *mQueueRateItem[3]; 0597 ItemBool *mShowQueueTunerItem; 0598 }; 0599 0600 #endif 0601