Warning, /frameworks/kconfig/autotests/kconfig_compiler/test11a.cpp.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 
0004 #include "test11a.h"
0005 
0006 Test11a::Test11a( )
0007   : MyPrefs( QStringLiteral( "korganizerrc" ) )
0008 {
0009   setCurrentGroup( QStringLiteral( "General" ) );
0010 
0011   mAutoSaveItem = new MyPrefs::ItemBool( currentGroup(), QStringLiteral( "Auto Save" ), mAutoSave, false );
0012   mAutoSaveItem->setLabel( QCoreApplication::translate("Test11a", "Enable automatic saving of calendar") );
0013   mAutoSaveItem->setWhatsThis( QCoreApplication::translate("Test11a", "WhatsThis text for AutoSave option") );
0014   addItem( mAutoSaveItem, QStringLiteral( "AutoSave" ) );
0015   mAutoSaveIntervalItem = new MyPrefs::ItemInt( currentGroup(), QStringLiteral( "Auto Save Interval" ), mAutoSaveInterval, 10 );
0016   mAutoSaveIntervalItem->setLabel( QCoreApplication::translate("Test11a", "Auto Save Interval") );
0017   addItem( mAutoSaveIntervalItem, QStringLiteral( "AutoSaveInterval" ) );
0018   mConfirmItem = new MyPrefs::ItemBool( currentGroup(), QStringLiteral( "Confirm Deletes" ), mConfirm, true );
0019   mConfirmItem->setLabel( QCoreApplication::translate("Test11a", "Confirm deletes") );
0020   addItem( mConfirmItem, QStringLiteral( "Confirm" ) );
0021   mArchiveFileItem = new MyPrefs::ItemString( currentGroup(), QStringLiteral( "Archive File" ), mArchiveFile );
0022   mArchiveFileItem->setLabel( QCoreApplication::translate("Test11a", "Archive File") );
0023   addItem( mArchiveFileItem, QStringLiteral( "ArchiveFile" ) );
0024   QList<MyPrefs::ItemEnum::Choice> valuesDestination;
0025   {
0026     MyPrefs::ItemEnum::Choice choice;
0027     choice.name = QStringLiteral("standardDestination");
0028     valuesDestination.append( choice );
0029   }
0030   {
0031     MyPrefs::ItemEnum::Choice choice;
0032     choice.name = QStringLiteral("askDestination");
0033     valuesDestination.append( choice );
0034   }
0035   {
0036     MyPrefs::ItemEnum::Choice choice;
0037     choice.name = QStringLiteral("argl1");
0038     choice.label = QCoreApplication::translate("Test11a", "Argl1 Label");
0039     valuesDestination.append( choice );
0040   }
0041   {
0042     MyPrefs::ItemEnum::Choice choice;
0043     choice.name = QStringLiteral("argl2");
0044     choice.whatsThis = QCoreApplication::translate("Test11a", "Argl2 Whatsthis");
0045     valuesDestination.append( choice );
0046   }
0047   {
0048     MyPrefs::ItemEnum::Choice choice;
0049     choice.name = QStringLiteral("argl3");
0050     choice.label = QCoreApplication::translate("Test11a", "Argl3 Label");
0051     choice.whatsThis = QCoreApplication::translate("Test11a", "Argl3 Whatsthis");
0052     valuesDestination.append( choice );
0053   }
0054   mDestinationItem = new MyPrefs::ItemEnum( currentGroup(), QStringLiteral( "Destination" ), mDestination, valuesDestination, EnumDestination::standardDestination );
0055   mDestinationItem->setLabel( QCoreApplication::translate("Test11a", "New Events/Todos Should") );
0056   addItem( mDestinationItem, QStringLiteral( "Destination" ) );
0057 
0058   setCurrentGroup( QStringLiteral( "Views" ) );
0059 
0060   mHourSizeItem = new MyPrefs::ItemInt( currentGroup(), QStringLiteral( "Hour Size" ), mHourSize, 10 );
0061   mHourSizeItem->setLabel( QCoreApplication::translate("Test11a", "Hour Size") );
0062   addItem( mHourSizeItem, QStringLiteral( "HourSize" ) );
0063   mSelectionStartsEditorItem = new MyPrefs::ItemBool( currentGroup(), QStringLiteral( "SelectionStartsEditor" ), mSelectionStartsEditor, false );
0064   mSelectionStartsEditorItem->setLabel( QCoreApplication::translate("Test11a", "Time range selection in agenda view starts event editor") );
0065   addItem( mSelectionStartsEditorItem, QStringLiteral( "SelectionStartsEditor" ) );
0066 
0067   setCurrentGroup( QStringLiteral( "KOrganizer Plugins" ) );
0068 
0069   QStringList defaultSelectedPlugins;
0070   defaultSelectedPlugins.append( QString::fromUtf8( "holidays" ) );
0071   defaultSelectedPlugins.append( QString::fromUtf8( "webexport" ) );
0072 
0073   mSelectedPluginsItem = new MyPrefs::ItemStringList( currentGroup(), QStringLiteral( "SelectedPlugins" ), mSelectedPlugins, defaultSelectedPlugins );
0074   mSelectedPluginsItem->setLabel( QCoreApplication::translate("Test11a", "SelectedPlugins") );
0075   addItem( mSelectedPluginsItem, QStringLiteral( "SelectedPlugins" ) );
0076 
0077   setCurrentGroup( QStringLiteral( "Colors" ) );
0078 
0079   mHighlightColorItem = new MyPrefs::ItemColor( currentGroup(), QStringLiteral( "Highlight Color" ), mHighlightColor, QColor( 100, 100, 255 ) );
0080   mHighlightColorItem->setLabel( QCoreApplication::translate("Test11a", "Highlight color") );
0081   addItem( mHighlightColorItem, QStringLiteral( "HighlightColor" ) );
0082   mAgendaBgColorItem = new MyPrefs::ItemColor( currentGroup(), QStringLiteral( "Agenda Background Color" ), mAgendaBgColor, QColor( 255, 255, 255 ) );
0083   mAgendaBgColorItem->setLabel( QCoreApplication::translate("Test11a", "Agenda view background color") );
0084   addItem( mAgendaBgColorItem, QStringLiteral( "AgendaBgColor" ) );
0085 
0086   setCurrentGroup( QStringLiteral( "Fonts" ) );
0087 
0088   mTimeBarFontItem = new MyPrefs::ItemFont( currentGroup(), QStringLiteral( "TimeBar Font" ), mTimeBarFont );
0089   mTimeBarFontItem->setLabel( QCoreApplication::translate("Test11a", "Time bar") );
0090   addItem( mTimeBarFontItem, QStringLiteral( "TimeBarFont" ) );
0091 
0092   setCurrentGroup( QStringLiteral( "Email" ) );
0093 
0094   QList<MyPrefs::ItemEnum::Choice> valuesEmailClient;
0095   {
0096     MyPrefs::ItemEnum::Choice choice;
0097     choice.name = QStringLiteral("sendmail");
0098     choice.label = /*: @option */ QCoreApplication::translate("Test11a", "Sendmail");
0099     valuesEmailClient.append( choice );
0100   }
0101   {
0102     MyPrefs::ItemEnum::Choice choice;
0103     choice.name = QStringLiteral("kmail");
0104     choice.label = /*: @option */ QCoreApplication::translate("Test11a", "KMail");
0105     valuesEmailClient.append( choice );
0106   }
0107   mEmailClientItem = new MyPrefs::ItemEnum( currentGroup(), QStringLiteral( "EmailClient" ), mEmailClient, valuesEmailClient, kmail );
0108   mEmailClientItem->setLabel( /*: @label */ QCoreApplication::translate("Test11a", "Email client") );
0109   mEmailClientItem->setWhatsThis( /*: @info:whatsthis */ QCoreApplication::translate("Test11a", "<para>How to send email when an email alarm is triggered.<list><item>KMail: The email is sent automatically via <application>KMail</application>. <application>KMail</application> is started first if necessary.</item><item>Sendmail: The email is sent automatically. This option will only work if your system is configured to use <application>sendmail</application> or a sendmail compatible mail transport agent.</item></list></para>") );
0110   addItem( mEmailClientItem, QStringLiteral( "EmailClient" ) );
0111   QList<MyPrefs::ItemEnum::Choice> valuesDefaultReminderUnits;
0112   {
0113     MyPrefs::ItemEnum::Choice choice;
0114     choice.name = QStringLiteral("Minutes");
0115     valuesDefaultReminderUnits.append( choice );
0116   }
0117   {
0118     MyPrefs::ItemEnum::Choice choice;
0119     choice.name = QStringLiteral("HoursMinutes");
0120     choice.label = /*: @option */ QCoreApplication::translate("Test11a", "Hours/Minutes");
0121     valuesDefaultReminderUnits.append( choice );
0122   }
0123   mDefaultReminderUnitsItem = new MyPrefs::ItemEnum( currentGroup(), QStringLiteral( "RemindUnits" ), mDefaultReminderUnits, valuesDefaultReminderUnits, TimePeriod::HoursMinutes );
0124   mDefaultReminderUnitsItem->setLabel( /*: @label */ QCoreApplication::translate("Test11a", "Reminder units") );
0125   mDefaultReminderUnitsItem->setWhatsThis( /*: @info:whatsthis */ QCoreApplication::translate("Test11a", "Default reminder time units in the alarm edit dialog.") );
0126   addItem( mDefaultReminderUnitsItem, QStringLiteral( "DefaultReminderUnits" ) );
0127 
0128   setCurrentGroup( QStringLiteral( "QueueRates" ) );
0129 
0130   QList< QList<int> > defaultRate;
0131   QList< int > defaultRateInit;
0132 
0133   defaultRateInit.append( 15 );
0134   defaultRateInit.append( 60 );
0135   defaultRateInit.append( 0 );
0136   defaultRate.append( defaultRateInit );
0137 
0138   defaultRateInit.clear();
0139   defaultRateInit.append( 40 );
0140   defaultRateInit.append( 60 );
0141   defaultRateInit.append( 0 );
0142   defaultRate.append( defaultRateInit );
0143 
0144   defaultRateInit.clear();
0145   defaultRateInit.append( 1 );
0146   defaultRateInit.append( 1 );
0147   defaultRateInit.append( 0 );
0148   defaultRate.append( defaultRateInit );
0149         
0150   QList<int> defaultqueueRate;
0151 
0152   mQueueRateItem[0] = new MyPrefs::ItemIntList( currentGroup(), QStringLiteral( "EmptyingRate 0" ), mQueueRate[0], defaultRate[0] );
0153   mQueueRateItem[0]->setLabel( QCoreApplication::translate("Test11a", "EmptyingRate queueRate$(QueueIndex)") );
0154   addItem( mQueueRateItem[0], QStringLiteral( "queueRate0" ) );
0155   mQueueRateItem[1] = new MyPrefs::ItemIntList( currentGroup(), QStringLiteral( "EmptyingRate 1" ), mQueueRate[1], defaultqueueRate );
0156   mQueueRateItem[1]->setLabel( QCoreApplication::translate("Test11a", "EmptyingRate queueRate$(QueueIndex)") );
0157   addItem( mQueueRateItem[1], QStringLiteral( "queueRate1" ) );
0158   mQueueRateItem[2] = new MyPrefs::ItemIntList( currentGroup(), QStringLiteral( "EmptyingRate 2" ), mQueueRate[2], defaultRate[2] );
0159   mQueueRateItem[2]->setLabel( QCoreApplication::translate("Test11a", "EmptyingRate queueRate$(QueueIndex)") );
0160   addItem( mQueueRateItem[2], QStringLiteral( "queueRate2" ) );
0161   mShowQueueTunerItem = new MyPrefs::ItemBool( currentGroup(), QStringLiteral( "ShowQueueTuner" ), mShowQueueTuner, false );
0162   mShowQueueTunerItem->setLabel( QCoreApplication::translate("Test11a", "ShowQueueTuner") );
0163   addItem( mShowQueueTunerItem, QStringLiteral( "ShowQueueTuner" ) );
0164 }
0165 
0166 int Test11a::defaultDestinationValue_helper() const
0167 {
0168 
0169   return EnumDestination::standardDestination;
0170 }
0171 
0172 bool Test11a::defaultSelectionStartsEditorValue_helper() const
0173 {
0174 
0175   return false;
0176 }
0177 
0178 int Test11a::defaultDefaultReminderUnitsValue_helper() const
0179 {
0180 
0181   return TimePeriod::HoursMinutes;
0182 }
0183 
0184 Test11a::~Test11a()
0185 {
0186 }
0187