Warning, /frameworks/kconfig/autotests/kconfig_compiler/test11.cpp.ref is written in an unsupported language. File is not indexed.
0001 // This file is generated by kconfig_compiler_kf6 from test11.kcfg. 0002 // All changes you do to this file will be lost. 0003 0004 #include "test11.h" 0005 0006 Test11::Test11( QObject *parent ) 0007 : MyPrefs( QStringLiteral( "korganizerrc" ) ) 0008 { 0009 setParent(parent); 0010 setCurrentGroup( QStringLiteral( "General" ) ); 0011 0012 mAutoSaveItem = new MyPrefs::ItemBool( currentGroup(), QStringLiteral( "Auto Save" ), mAutoSave, false ); 0013 mAutoSaveItem->setLabel( QCoreApplication::translate("Test11", "Enable automatic saving of calendar") ); 0014 mAutoSaveItem->setWhatsThis( QCoreApplication::translate("Test11", "WhatsThis text for AutoSave option") ); 0015 addItem( mAutoSaveItem, QStringLiteral( "AutoSave" ) ); 0016 mAutoSaveIntervalItem = new MyPrefs::ItemInt( currentGroup(), QStringLiteral( "Auto Save Interval" ), mAutoSaveInterval, 10 ); 0017 mAutoSaveIntervalItem->setLabel( QCoreApplication::translate("Test11", "Auto Save Interval") ); 0018 addItem( mAutoSaveIntervalItem, QStringLiteral( "AutoSaveInterval" ) ); 0019 mConfirmItem = new MyPrefs::ItemBool( currentGroup(), QStringLiteral( "Confirm Deletes" ), mConfirm, true ); 0020 mConfirmItem->setLabel( QCoreApplication::translate("Test11", "Confirm deletes") ); 0021 addItem( mConfirmItem, QStringLiteral( "Confirm" ) ); 0022 mArchiveFileItem = new MyPrefs::ItemString( currentGroup(), QStringLiteral( "Archive File" ), mArchiveFile ); 0023 mArchiveFileItem->setLabel( QCoreApplication::translate("Test11", "Archive File") ); 0024 addItem( mArchiveFileItem, QStringLiteral( "ArchiveFile" ) ); 0025 QList<MyPrefs::ItemEnum::Choice> valuesDestination; 0026 { 0027 MyPrefs::ItemEnum::Choice choice; 0028 choice.name = QStringLiteral("standardDestination"); 0029 valuesDestination.append( choice ); 0030 } 0031 { 0032 MyPrefs::ItemEnum::Choice choice; 0033 choice.name = QStringLiteral("askDestination"); 0034 valuesDestination.append( choice ); 0035 } 0036 { 0037 MyPrefs::ItemEnum::Choice choice; 0038 choice.name = QStringLiteral("argl1"); 0039 choice.label = QCoreApplication::translate("Test11", "Argl1 Label"); 0040 valuesDestination.append( choice ); 0041 } 0042 { 0043 MyPrefs::ItemEnum::Choice choice; 0044 choice.name = QStringLiteral("argl2"); 0045 choice.whatsThis = QCoreApplication::translate("Test11", "Argl2 Whatsthis"); 0046 valuesDestination.append( choice ); 0047 } 0048 { 0049 MyPrefs::ItemEnum::Choice choice; 0050 choice.name = QStringLiteral("argl3"); 0051 choice.label = QCoreApplication::translate("Test11", "Argl3 Label"); 0052 choice.whatsThis = QCoreApplication::translate("Test11", "Argl3 Whatsthis"); 0053 valuesDestination.append( choice ); 0054 } 0055 mDestinationItem = new MyPrefs::ItemEnum( currentGroup(), QStringLiteral( "Destination" ), mDestination, valuesDestination, EnumDestination::standardDestination ); 0056 mDestinationItem->setLabel( QCoreApplication::translate("Test11", "New Events/Todos Should") ); 0057 addItem( mDestinationItem, QStringLiteral( "Destination" ) ); 0058 0059 setCurrentGroup( QStringLiteral( "Views" ) ); 0060 0061 mHourSizeItem = new MyPrefs::ItemInt( currentGroup(), QStringLiteral( "Hour Size" ), mHourSize, 10 ); 0062 mHourSizeItem->setLabel( QCoreApplication::translate("Test11", "Hour Size") ); 0063 addItem( mHourSizeItem, QStringLiteral( "HourSize" ) ); 0064 mSelectionStartsEditorItem = new MyPrefs::ItemBool( currentGroup(), QStringLiteral( "SelectionStartsEditor" ), mSelectionStartsEditor, false ); 0065 mSelectionStartsEditorItem->setLabel( QCoreApplication::translate("Test11", "Time range selection in agenda view starts event editor") ); 0066 addItem( mSelectionStartsEditorItem, QStringLiteral( "SelectionStartsEditor" ) ); 0067 0068 setCurrentGroup( QStringLiteral( "KOrganizer Plugins" ) ); 0069 0070 QStringList defaultSelectedPlugins; 0071 defaultSelectedPlugins.append( QString::fromUtf8( "holidays" ) ); 0072 defaultSelectedPlugins.append( QString::fromUtf8( "webexport" ) ); 0073 0074 mSelectedPluginsItem = new MyPrefs::ItemStringList( currentGroup(), QStringLiteral( "SelectedPlugins" ), mSelectedPlugins, defaultSelectedPlugins ); 0075 mSelectedPluginsItem->setLabel( QCoreApplication::translate("Test11", "SelectedPlugins") ); 0076 addItem( mSelectedPluginsItem, QStringLiteral( "SelectedPlugins" ) ); 0077 0078 setCurrentGroup( QStringLiteral( "Colors" ) ); 0079 0080 mHighlightColorItem = new MyPrefs::ItemColor( currentGroup(), QStringLiteral( "Highlight Color" ), mHighlightColor, QColor( 100, 100, 255 ) ); 0081 mHighlightColorItem->setLabel( QCoreApplication::translate("Test11", "Highlight color") ); 0082 addItem( mHighlightColorItem, QStringLiteral( "HighlightColor" ) ); 0083 mAgendaBgColorItem = new MyPrefs::ItemColor( currentGroup(), QStringLiteral( "Agenda Background Color" ), mAgendaBgColor, QColor( 255, 255, 255 ) ); 0084 mAgendaBgColorItem->setLabel( QCoreApplication::translate("Test11", "Agenda view background color") ); 0085 addItem( mAgendaBgColorItem, QStringLiteral( "AgendaBgColor" ) ); 0086 0087 setCurrentGroup( QStringLiteral( "Fonts" ) ); 0088 0089 mTimeBarFontItem = new MyPrefs::ItemFont( currentGroup(), QStringLiteral( "TimeBar Font" ), mTimeBarFont ); 0090 mTimeBarFontItem->setLabel( QCoreApplication::translate("Test11", "Time bar") ); 0091 addItem( mTimeBarFontItem, QStringLiteral( "TimeBarFont" ) ); 0092 0093 setCurrentGroup( QStringLiteral( "Email" ) ); 0094 0095 QList<MyPrefs::ItemEnum::Choice> valuesEmailClient; 0096 { 0097 MyPrefs::ItemEnum::Choice choice; 0098 choice.name = QStringLiteral("sendmail"); 0099 choice.label = /*: @option */ QCoreApplication::translate("Test11", "Sendmail"); 0100 valuesEmailClient.append( choice ); 0101 } 0102 { 0103 MyPrefs::ItemEnum::Choice choice; 0104 choice.name = QStringLiteral("kmail"); 0105 choice.label = /*: @option */ QCoreApplication::translate("Test11", "KMail"); 0106 valuesEmailClient.append( choice ); 0107 } 0108 mEmailClientItem = new MyPrefs::ItemEnum( currentGroup(), QStringLiteral( "EmailClient" ), mEmailClient, valuesEmailClient, kmail ); 0109 mEmailClientItem->setLabel( /*: @label */ QCoreApplication::translate("Test11", "Email client") ); 0110 mEmailClientItem->setWhatsThis( /*: @info:whatsthis */ QCoreApplication::translate("Test11", "<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>") ); 0111 addItem( mEmailClientItem, QStringLiteral( "EmailClient" ) ); 0112 QList<MyPrefs::ItemEnum::Choice> valuesDefaultReminderUnits; 0113 { 0114 MyPrefs::ItemEnum::Choice choice; 0115 choice.name = QStringLiteral("Minutes"); 0116 valuesDefaultReminderUnits.append( choice ); 0117 } 0118 { 0119 MyPrefs::ItemEnum::Choice choice; 0120 choice.name = QStringLiteral("HoursMinutes"); 0121 choice.label = /*: @option */ QCoreApplication::translate("Test11", "Hours/Minutes"); 0122 valuesDefaultReminderUnits.append( choice ); 0123 } 0124 mDefaultReminderUnitsItem = new MyPrefs::ItemEnum( currentGroup(), QStringLiteral( "RemindUnits" ), mDefaultReminderUnits, valuesDefaultReminderUnits, TimePeriod::HoursMinutes ); 0125 mDefaultReminderUnitsItem->setLabel( /*: @label */ QCoreApplication::translate("Test11", "Reminder units") ); 0126 mDefaultReminderUnitsItem->setToolTip( /*: @info:tooltip */ QCoreApplication::translate("Test11", "Default reminder time units in the alarm edit dialog.") ); 0127 mDefaultReminderUnitsItem->setWhatsThis( /*: @info:whatsthis */ QCoreApplication::translate("Test11", "Default reminder time units in the alarm edit dialog.") ); 0128 addItem( mDefaultReminderUnitsItem, QStringLiteral( "DefaultReminderUnits" ) ); 0129 0130 setCurrentGroup( QStringLiteral( "QueueRates" ) ); 0131 0132 QList< QList<int> > defaultRate; 0133 QList< int > defaultRateInit; 0134 0135 defaultRateInit.append( 15 ); 0136 defaultRateInit.append( 60 ); 0137 defaultRateInit.append( 0 ); 0138 defaultRate.append( defaultRateInit ); 0139 0140 defaultRateInit.clear(); 0141 defaultRateInit.append( 40 ); 0142 defaultRateInit.append( 60 ); 0143 defaultRateInit.append( 0 ); 0144 defaultRate.append( defaultRateInit ); 0145 0146 defaultRateInit.clear(); 0147 defaultRateInit.append( 1 ); 0148 defaultRateInit.append( 1 ); 0149 defaultRateInit.append( 0 ); 0150 defaultRate.append( defaultRateInit ); 0151 0152 QList<int> defaultqueueRate; 0153 0154 mQueueRateItem[0] = new MyPrefs::ItemIntList( currentGroup(), QStringLiteral( "EmptyingRate 0" ), mQueueRate[0], defaultRate[0] ); 0155 mQueueRateItem[0]->setLabel( QCoreApplication::translate("Test11", "EmptyingRate queueRate$(QueueIndex)") ); 0156 addItem( mQueueRateItem[0], QStringLiteral( "queueRate0" ) ); 0157 mQueueRateItem[1] = new MyPrefs::ItemIntList( currentGroup(), QStringLiteral( "EmptyingRate 1" ), mQueueRate[1], defaultqueueRate ); 0158 mQueueRateItem[1]->setLabel( QCoreApplication::translate("Test11", "EmptyingRate queueRate$(QueueIndex)") ); 0159 addItem( mQueueRateItem[1], QStringLiteral( "queueRate1" ) ); 0160 mQueueRateItem[2] = new MyPrefs::ItemIntList( currentGroup(), QStringLiteral( "EmptyingRate 2" ), mQueueRate[2], defaultRate[2] ); 0161 mQueueRateItem[2]->setLabel( QCoreApplication::translate("Test11", "EmptyingRate queueRate$(QueueIndex)") ); 0162 addItem( mQueueRateItem[2], QStringLiteral( "queueRate2" ) ); 0163 mShowQueueTunerItem = new MyPrefs::ItemBool( currentGroup(), QStringLiteral( "ShowQueueTuner" ), mShowQueueTuner, false ); 0164 mShowQueueTunerItem->setLabel( QCoreApplication::translate("Test11", "ShowQueueTuner") ); 0165 addItem( mShowQueueTunerItem, QStringLiteral( "ShowQueueTuner" ) ); 0166 } 0167 0168 bool Test11::defaultAutoSaveValue_helper() const 0169 { 0170 0171 return false; 0172 } 0173 0174 int Test11::defaultAutoSaveIntervalValue_helper() const 0175 { 0176 0177 return 10; 0178 } 0179 0180 bool Test11::defaultConfirmValue_helper() const 0181 { 0182 0183 return true; 0184 } 0185 0186 int Test11::defaultDestinationValue_helper() const 0187 { 0188 0189 return EnumDestination::standardDestination; 0190 } 0191 0192 int Test11::defaultHourSizeValue_helper() const 0193 { 0194 0195 return 10; 0196 } 0197 0198 bool Test11::defaultSelectionStartsEditorValue_helper() const 0199 { 0200 0201 return false; 0202 } 0203 0204 QStringList Test11::defaultSelectedPluginsValue_helper() const 0205 { 0206 QStringList defaultSelectedPlugins; 0207 defaultSelectedPlugins.append( QString::fromUtf8( "holidays" ) ); 0208 defaultSelectedPlugins.append( QString::fromUtf8( "webexport" ) ); 0209 0210 return defaultSelectedPlugins; 0211 } 0212 0213 QColor Test11::defaultHighlightColorValue_helper() const 0214 { 0215 0216 return QColor( 100, 100, 255 ); 0217 } 0218 0219 QColor Test11::defaultAgendaBgColorValue_helper() const 0220 { 0221 0222 return QColor( 255, 255, 255 ); 0223 } 0224 0225 int Test11::defaultEmailClientValue_helper() const 0226 { 0227 0228 return kmail; 0229 } 0230 0231 int Test11::defaultDefaultReminderUnitsValue_helper() const 0232 { 0233 0234 return TimePeriod::HoursMinutes; 0235 } 0236 0237 QList<int> Test11::defaultQueueRateValue_helper( int i ) const 0238 { 0239 QList< QList<int> > defaultRate; 0240 QList< int > defaultRateInit; 0241 0242 defaultRateInit.append( 15 ); 0243 defaultRateInit.append( 60 ); 0244 defaultRateInit.append( 0 ); 0245 defaultRate.append( defaultRateInit ); 0246 0247 defaultRateInit.clear(); 0248 defaultRateInit.append( 40 ); 0249 defaultRateInit.append( 60 ); 0250 defaultRateInit.append( 0 ); 0251 defaultRate.append( defaultRateInit ); 0252 0253 defaultRateInit.clear(); 0254 defaultRateInit.append( 1 ); 0255 defaultRateInit.append( 1 ); 0256 defaultRateInit.append( 0 ); 0257 defaultRate.append( defaultRateInit ); 0258 0259 QList<int> defaultqueueRate; 0260 0261 switch (i) { 0262 case 0: return defaultRate[0]; 0263 case 2: return defaultRate[2]; 0264 default: 0265 return defaultqueueRate; 0266 } 0267 0268 } 0269 0270 bool Test11::defaultShowQueueTunerValue_helper() const 0271 { 0272 0273 return false; 0274 } 0275 0276 Test11::~Test11() 0277 { 0278 } 0279