Warning, /frameworks/kconfig/autotests/kconfig_compiler/test11.h.ref is written in an unsupported language. File is not indexed.

0001 // This file is generated by kconfig_compiler_kf5 from test11.kcfg.
0002 // All changes you do to this file will be lost.
0003 #ifndef TEST11_H
0004 #define TEST11_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 Test11 : 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     Test11( QObject *parent = nullptr );
0026     ~Test11() 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 Enable automatic saving of calendar default value
0055     */
0056     bool defaultAutoSaveValue() const
0057     {
0058         return defaultAutoSaveValue_helper();
0059     }
0060 
0061     /**
0062       Get Item object corresponding to AutoSave()
0063     */
0064     ItemBool *autoSaveItem()
0065     {
0066       return mAutoSaveItem;
0067     }
0068 
0069     /**
0070       Set Auto Save Interval
0071     */
0072     void setAutoSaveInterval( int v )
0073     {
0074       if (!isAutoSaveIntervalImmutable())
0075         mAutoSaveInterval = v;
0076     }
0077 
0078     /**
0079       Get Auto Save Interval
0080     */
0081     int autoSaveInterval() const
0082     {
0083       return mAutoSaveInterval;
0084     }
0085 
0086     /**
0087       Is Auto Save Interval Immutable
0088     */
0089     bool isAutoSaveIntervalImmutable() const
0090     {
0091       return isImmutable( QStringLiteral( "AutoSaveInterval" ) );
0092     }
0093 
0094     /**
0095       Get Auto Save Interval default value
0096     */
0097     int defaultAutoSaveIntervalValue() const
0098     {
0099         return defaultAutoSaveIntervalValue_helper();
0100     }
0101 
0102     /**
0103       Get Item object corresponding to AutoSaveInterval()
0104     */
0105     ItemInt *autoSaveIntervalItem()
0106     {
0107       return mAutoSaveIntervalItem;
0108     }
0109 
0110     /**
0111       Set Confirm deletes
0112     */
0113     void setConfirm( bool v )
0114     {
0115       if (!isConfirmImmutable())
0116         mConfirm = v;
0117     }
0118 
0119     /**
0120       Get Confirm deletes
0121     */
0122     bool confirm() const
0123     {
0124       return mConfirm;
0125     }
0126 
0127     /**
0128       Is Confirm deletes Immutable
0129     */
0130     bool isConfirmImmutable() const
0131     {
0132       return isImmutable( QStringLiteral( "Confirm" ) );
0133     }
0134 
0135     /**
0136       Get Confirm deletes default value
0137     */
0138     bool defaultConfirmValue() const
0139     {
0140         return defaultConfirmValue_helper();
0141     }
0142 
0143     /**
0144       Get Item object corresponding to Confirm()
0145     */
0146     ItemBool *confirmItem()
0147     {
0148       return mConfirmItem;
0149     }
0150 
0151     /**
0152       Set Archive File
0153     */
0154     void setArchiveFile( const QString & v )
0155     {
0156       if (!isArchiveFileImmutable())
0157         mArchiveFile = v;
0158     }
0159 
0160     /**
0161       Get Archive File
0162     */
0163     QString archiveFile() const
0164     {
0165       return mArchiveFile;
0166     }
0167 
0168     /**
0169       Is Archive File Immutable
0170     */
0171     bool isArchiveFileImmutable() const
0172     {
0173       return isImmutable( QStringLiteral( "ArchiveFile" ) );
0174     }
0175 
0176     /**
0177       Get Item object corresponding to ArchiveFile()
0178     */
0179     ItemString *archiveFileItem()
0180     {
0181       return mArchiveFileItem;
0182     }
0183 
0184     /**
0185       Set New Events/Todos Should
0186     */
0187     void setDestination( EnumDestination::type v )
0188     {
0189       if (!isDestinationImmutable())
0190         mDestination = v;
0191     }
0192 
0193     /**
0194       Get New Events/Todos Should
0195     */
0196     EnumDestination::type destination() const
0197     {
0198       return static_cast<EnumDestination::type>(mDestination);
0199     }
0200 
0201     /**
0202       Is New Events/Todos Should Immutable
0203     */
0204     bool isDestinationImmutable() const
0205     {
0206       return isImmutable( QStringLiteral( "Destination" ) );
0207     }
0208 
0209     /**
0210       Get New Events/Todos Should default value
0211     */
0212     EnumDestination::type defaultDestinationValue() const
0213     {
0214         return static_cast<EnumDestination::type>(defaultDestinationValue_helper());
0215     }
0216 
0217     /**
0218       Get Item object corresponding to Destination()
0219     */
0220     ItemEnum *destinationItem()
0221     {
0222       return mDestinationItem;
0223     }
0224 
0225     /**
0226       Set Hour Size
0227     */
0228     void setHourSize( int v )
0229     {
0230       if (!isHourSizeImmutable())
0231         mHourSize = v;
0232     }
0233 
0234     /**
0235       Get Hour Size
0236     */
0237     int hourSize() const
0238     {
0239       return mHourSize;
0240     }
0241 
0242     /**
0243       Is Hour Size Immutable
0244     */
0245     bool isHourSizeImmutable() const
0246     {
0247       return isImmutable( QStringLiteral( "HourSize" ) );
0248     }
0249 
0250     /**
0251       Get Hour Size default value
0252     */
0253     int defaultHourSizeValue() const
0254     {
0255         return defaultHourSizeValue_helper();
0256     }
0257 
0258     /**
0259       Get Item object corresponding to HourSize()
0260     */
0261     ItemInt *hourSizeItem()
0262     {
0263       return mHourSizeItem;
0264     }
0265 
0266     /**
0267       Set Time range selection in agenda view starts event editor
0268     */
0269     void setSelectionStartsEditor( bool v )
0270     {
0271       if (!isSelectionStartsEditorImmutable())
0272         mSelectionStartsEditor = v;
0273     }
0274 
0275     /**
0276       Get Time range selection in agenda view starts event editor
0277     */
0278     bool selectionStartsEditor() const
0279     {
0280       return mSelectionStartsEditor;
0281     }
0282 
0283     /**
0284       Is Time range selection in agenda view starts event editor Immutable
0285     */
0286     bool isSelectionStartsEditorImmutable() const
0287     {
0288       return isImmutable( QStringLiteral( "SelectionStartsEditor" ) );
0289     }
0290 
0291     /**
0292       Get Time range selection in agenda view starts event editor default value
0293     */
0294     bool defaultSelectionStartsEditorValue() const
0295     {
0296         return defaultSelectionStartsEditorValue_helper();
0297     }
0298 
0299     /**
0300       Get Item object corresponding to SelectionStartsEditor()
0301     */
0302     ItemBool *selectionStartsEditorItem()
0303     {
0304       return mSelectionStartsEditorItem;
0305     }
0306 
0307     /**
0308       Set SelectedPlugins
0309     */
0310     void setSelectedPlugins( const QStringList & v )
0311     {
0312       if (!isSelectedPluginsImmutable())
0313         mSelectedPlugins = v;
0314     }
0315 
0316     /**
0317       Get SelectedPlugins
0318     */
0319     QStringList selectedPlugins() const
0320     {
0321       return mSelectedPlugins;
0322     }
0323 
0324     /**
0325       Is SelectedPlugins Immutable
0326     */
0327     bool isSelectedPluginsImmutable() const
0328     {
0329       return isImmutable( QStringLiteral( "SelectedPlugins" ) );
0330     }
0331 
0332     /**
0333       Get SelectedPlugins default value
0334     */
0335     QStringList defaultSelectedPluginsValue() const
0336     {
0337         return defaultSelectedPluginsValue_helper();
0338     }
0339 
0340     /**
0341       Get Item object corresponding to SelectedPlugins()
0342     */
0343     ItemStringList *selectedPluginsItem()
0344     {
0345       return mSelectedPluginsItem;
0346     }
0347 
0348     /**
0349       Set Highlight color
0350     */
0351     void setHighlightColor( const QColor & v )
0352     {
0353       if (!isHighlightColorImmutable())
0354         mHighlightColor = v;
0355     }
0356 
0357     /**
0358       Get Highlight color
0359     */
0360     QColor highlightColor() const
0361     {
0362       return mHighlightColor;
0363     }
0364 
0365     /**
0366       Is Highlight color Immutable
0367     */
0368     bool isHighlightColorImmutable() const
0369     {
0370       return isImmutable( QStringLiteral( "HighlightColor" ) );
0371     }
0372 
0373     /**
0374       Get Highlight color default value
0375     */
0376     QColor defaultHighlightColorValue() const
0377     {
0378         return defaultHighlightColorValue_helper();
0379     }
0380 
0381     /**
0382       Get Item object corresponding to HighlightColor()
0383     */
0384     ItemColor *highlightColorItem()
0385     {
0386       return mHighlightColorItem;
0387     }
0388 
0389     /**
0390       Set Agenda view background color
0391     */
0392     void setAgendaBgColor( const QColor & v )
0393     {
0394       if (!isAgendaBgColorImmutable())
0395         mAgendaBgColor = v;
0396     }
0397 
0398     /**
0399       Get Agenda view background color
0400     */
0401     QColor agendaBgColor() const
0402     {
0403       return mAgendaBgColor;
0404     }
0405 
0406     /**
0407       Is Agenda view background color Immutable
0408     */
0409     bool isAgendaBgColorImmutable() const
0410     {
0411       return isImmutable( QStringLiteral( "AgendaBgColor" ) );
0412     }
0413 
0414     /**
0415       Get Agenda view background color default value
0416     */
0417     QColor defaultAgendaBgColorValue() const
0418     {
0419         return defaultAgendaBgColorValue_helper();
0420     }
0421 
0422     /**
0423       Get Item object corresponding to AgendaBgColor()
0424     */
0425     ItemColor *agendaBgColorItem()
0426     {
0427       return mAgendaBgColorItem;
0428     }
0429 
0430     /**
0431       Set Time bar
0432     */
0433     void setTimeBarFont( const QFont & v )
0434     {
0435       if (!isTimeBarFontImmutable())
0436         mTimeBarFont = v;
0437     }
0438 
0439     /**
0440       Get Time bar
0441     */
0442     QFont timeBarFont() const
0443     {
0444       return mTimeBarFont;
0445     }
0446 
0447     /**
0448       Is Time bar Immutable
0449     */
0450     bool isTimeBarFontImmutable() const
0451     {
0452       return isImmutable( QStringLiteral( "TimeBarFont" ) );
0453     }
0454 
0455     /**
0456       Get Item object corresponding to TimeBarFont()
0457     */
0458     ItemFont *timeBarFontItem()
0459     {
0460       return mTimeBarFontItem;
0461     }
0462 
0463     /**
0464       Set Email client
0465     */
0466     void setEmailClient( MailClient v )
0467     {
0468       if (!isEmailClientImmutable())
0469         mEmailClient = v;
0470     }
0471 
0472     /**
0473       Get Email client
0474     */
0475     MailClient emailClient() const
0476     {
0477       return static_cast<MailClient>(mEmailClient);
0478     }
0479 
0480     /**
0481       Is Email client Immutable
0482     */
0483     bool isEmailClientImmutable() const
0484     {
0485       return isImmutable( QStringLiteral( "EmailClient" ) );
0486     }
0487 
0488     /**
0489       Get Email client default value
0490     */
0491     MailClient defaultEmailClientValue() const
0492     {
0493         return static_cast<MailClient>(defaultEmailClientValue_helper());
0494     }
0495 
0496     /**
0497       Get Item object corresponding to EmailClient()
0498     */
0499     ItemEnum *emailClientItem()
0500     {
0501       return mEmailClientItem;
0502     }
0503 
0504     /**
0505       Set Reminder units
0506     */
0507     void setDefaultReminderUnits( TimePeriod::Units v )
0508     {
0509       if (!isDefaultReminderUnitsImmutable())
0510         mDefaultReminderUnits = v;
0511     }
0512 
0513     /**
0514       Get Reminder units
0515     */
0516     TimePeriod::Units defaultReminderUnits() const
0517     {
0518       return static_cast<TimePeriod::Units>(mDefaultReminderUnits);
0519     }
0520 
0521     /**
0522       Is Reminder units Immutable
0523     */
0524     bool isDefaultReminderUnitsImmutable() const
0525     {
0526       return isImmutable( QStringLiteral( "DefaultReminderUnits" ) );
0527     }
0528 
0529     /**
0530       Get Reminder units default value
0531     */
0532     TimePeriod::Units defaultDefaultReminderUnitsValue() const
0533     {
0534         return static_cast<TimePeriod::Units>(defaultDefaultReminderUnitsValue_helper());
0535     }
0536 
0537     /**
0538       Get Item object corresponding to DefaultReminderUnits()
0539     */
0540     ItemEnum *defaultReminderUnitsItem()
0541     {
0542       return mDefaultReminderUnitsItem;
0543     }
0544 
0545     /**
0546       Set EmptyingRate $(QueueIndex)
0547     */
0548     void setQueueRate( int i, const QList<int> & v )
0549     {
0550       if (!isQueueRateImmutable( i ))
0551         mQueueRate[i] = v;
0552     }
0553 
0554     /**
0555       Get EmptyingRate $(QueueIndex)
0556     */
0557     QList<int> queueRate( int i ) const
0558     {
0559       return mQueueRate[i];
0560     }
0561 
0562     /**
0563       Is EmptyingRate $(QueueIndex) Immutable
0564     */
0565     bool isQueueRateImmutable( int i ) const
0566     {
0567       return isImmutable( QStringLiteral( "queueRate%1" ).arg( i ) );
0568     }
0569 
0570     /**
0571       Get EmptyingRate $(QueueIndex) default value
0572     */
0573     QList<int> defaultQueueRateValue( int i ) const
0574     {
0575         return defaultQueueRateValue_helper( i );
0576     }
0577 
0578     /**
0579       Get Item object corresponding to queueRate()
0580     */
0581     ItemIntList *queueRateItem( int i )
0582     {
0583       return mQueueRateItem[i];
0584     }
0585 
0586     /**
0587       Set ShowQueueTuner
0588     */
0589     void setShowQueueTuner( bool v )
0590     {
0591       if (!isShowQueueTunerImmutable())
0592         mShowQueueTuner = v;
0593     }
0594 
0595     /**
0596       Get ShowQueueTuner
0597     */
0598     bool showQueueTuner() const
0599     {
0600       return mShowQueueTuner;
0601     }
0602 
0603     /**
0604       Is ShowQueueTuner Immutable
0605     */
0606     bool isShowQueueTunerImmutable() const
0607     {
0608       return isImmutable( QStringLiteral( "ShowQueueTuner" ) );
0609     }
0610 
0611     /**
0612       Get ShowQueueTuner default value
0613     */
0614     bool defaultShowQueueTunerValue() const
0615     {
0616         return defaultShowQueueTunerValue_helper();
0617     }
0618 
0619     /**
0620       Get Item object corresponding to ShowQueueTuner()
0621     */
0622     ItemBool *showQueueTunerItem()
0623     {
0624       return mShowQueueTunerItem;
0625     }
0626 
0627   protected:
0628   public:
0629 
0630     // General
0631     bool mAutoSave;
0632     bool defaultAutoSaveValue_helper() const;
0633     int mAutoSaveInterval;
0634     int defaultAutoSaveIntervalValue_helper() const;
0635     bool mConfirm;
0636     bool defaultConfirmValue_helper() const;
0637     QString mArchiveFile;
0638     QString defaultArchiveFileValue_helper() const;
0639     int mDestination;
0640     int defaultDestinationValue_helper() const;
0641 
0642     // Views
0643     int mHourSize;
0644     int defaultHourSizeValue_helper() const;
0645     bool mSelectionStartsEditor;
0646     bool defaultSelectionStartsEditorValue_helper() const;
0647 
0648     // KOrganizer Plugins
0649     QStringList mSelectedPlugins;
0650     QStringList defaultSelectedPluginsValue_helper() const;
0651 
0652     // Colors
0653     QColor mHighlightColor;
0654     QColor defaultHighlightColorValue_helper() const;
0655     QColor mAgendaBgColor;
0656     QColor defaultAgendaBgColorValue_helper() const;
0657 
0658     // Fonts
0659     QFont mTimeBarFont;
0660     QFont defaultTimeBarFontValue_helper() const;
0661 
0662     // Email
0663     int mEmailClient;
0664     int defaultEmailClientValue_helper() const;
0665     int mDefaultReminderUnits;
0666     int defaultDefaultReminderUnitsValue_helper() const;
0667 
0668     // QueueRates
0669     QList<int> mQueueRate[3];
0670     QList<int> defaultQueueRateValue_helper( int i ) const;
0671     bool mShowQueueTuner;
0672     bool defaultShowQueueTunerValue_helper() const;
0673 
0674   private:
0675     ItemBool *mAutoSaveItem;
0676     ItemInt *mAutoSaveIntervalItem;
0677     ItemBool *mConfirmItem;
0678     ItemString *mArchiveFileItem;
0679     ItemEnum *mDestinationItem;
0680     ItemInt *mHourSizeItem;
0681     ItemBool *mSelectionStartsEditorItem;
0682     ItemStringList *mSelectedPluginsItem;
0683     ItemColor *mHighlightColorItem;
0684     ItemColor *mAgendaBgColorItem;
0685     ItemFont *mTimeBarFontItem;
0686     ItemEnum *mEmailClientItem;
0687     ItemEnum *mDefaultReminderUnitsItem;
0688     ItemIntList *mQueueRateItem[3];
0689     ItemBool *mShowQueueTunerItem;
0690 };
0691 
0692 #endif
0693