korganizer
koprefs_base.h00001
00002
00003 #ifndef KOPREFSBASE_H
00004 #define KOPREFSBASE_H
00005
00006 #include <libkdepim/kpimprefs.h>
00007
00008 #include <kconfigskeleton.h>
00009 #include <kdebug.h>
00010
00011 #include <klocale.h>
00012 class KOPrefsBase : public KPimPrefs
00013 {
00014 public:
00015 enum { actionDelete, actionArchive };
00016 enum { UnitDays, UnitWeeks, UnitMonths };
00017 enum { standardDestination, askDestination };
00018 enum { MailClientKMail, MailClientSendmail };
00019 enum { CategoryInsideResourceOutside, ResourceInsideCategoryOutside, CategoryOnly, ResourceOnly };
00020 enum { CalendarsMerged, CalendarsSideBySide, AllCalendarViews };
00021 enum { IMIPDummy, IMIPKMail };
00022 enum { Ask, Link, InlineFull, InlineBody };
00023 enum { TodoAttachAsk, TodoAttachLink, TodoAttachInlineFull };
00024
00025 KOPrefsBase( );
00026 ~KOPrefsBase();
00027
00031 void setAutoSave( bool v )
00032 {
00033 if (!isImmutable( QString::fromLatin1( "AutoSave" ) ))
00034 mAutoSave = v;
00035 }
00036
00040 bool autoSave() const
00041 {
00042 return mAutoSave;
00043 }
00044
00048 ItemBool *autoSaveItem()
00049 {
00050 return mAutoSaveItem;
00051 }
00052
00056 void setAutoSaveInterval( int v )
00057 {
00058 if (v < 1)
00059 {
00060 kdDebug() << "setAutoSaveInterval: value " << v << " is less than the minimum value of 1" << endl;
00061 v = 1;
00062 }
00063 if (!isImmutable( QString::fromLatin1( "AutoSaveInterval" ) ))
00064 mAutoSaveInterval = v;
00065 }
00066
00070 int autoSaveInterval() const
00071 {
00072 return mAutoSaveInterval;
00073 }
00074
00078 ItemInt *autoSaveIntervalItem()
00079 {
00080 return mAutoSaveIntervalItem;
00081 }
00082
00086 void setConfirm( bool v )
00087 {
00088 if (!isImmutable( QString::fromLatin1( "Confirm" ) ))
00089 mConfirm = v;
00090 }
00091
00095 bool confirm() const
00096 {
00097 return mConfirm;
00098 }
00099
00103 ItemBool *confirmItem()
00104 {
00105 return mConfirmItem;
00106 }
00107
00111 void setArchiveEvents( bool v )
00112 {
00113 if (!isImmutable( QString::fromLatin1( "ArchiveEvents" ) ))
00114 mArchiveEvents = v;
00115 }
00116
00120 bool archiveEvents() const
00121 {
00122 return mArchiveEvents;
00123 }
00124
00128 ItemBool *archiveEventsItem()
00129 {
00130 return mArchiveEventsItem;
00131 }
00132
00136 void setArchiveTodos( bool v )
00137 {
00138 if (!isImmutable( QString::fromLatin1( "ArchiveTodos" ) ))
00139 mArchiveTodos = v;
00140 }
00141
00145 bool archiveTodos() const
00146 {
00147 return mArchiveTodos;
00148 }
00149
00153 ItemBool *archiveTodosItem()
00154 {
00155 return mArchiveTodosItem;
00156 }
00157
00161 void setAutoArchive( bool v )
00162 {
00163 if (!isImmutable( QString::fromLatin1( "AutoArchive" ) ))
00164 mAutoArchive = v;
00165 }
00166
00170 bool autoArchive() const
00171 {
00172 return mAutoArchive;
00173 }
00174
00178 ItemBool *autoArchiveItem()
00179 {
00180 return mAutoArchiveItem;
00181 }
00182
00186 void setArchiveAction( int v )
00187 {
00188 if (!isImmutable( QString::fromLatin1( "ArchiveAction" ) ))
00189 mArchiveAction = v;
00190 }
00191
00195 int archiveAction() const
00196 {
00197 return mArchiveAction;
00198 }
00199
00203 ItemEnum *archiveActionItem()
00204 {
00205 return mArchiveActionItem;
00206 }
00207
00211 void setExpiryTime( int v )
00212 {
00213 if (!isImmutable( QString::fromLatin1( "ExpiryTime" ) ))
00214 mExpiryTime = v;
00215 }
00216
00220 int expiryTime() const
00221 {
00222 return mExpiryTime;
00223 }
00224
00228 ItemInt *expiryTimeItem()
00229 {
00230 return mExpiryTimeItem;
00231 }
00232
00236 void setExpiryUnit( int v )
00237 {
00238 if (!isImmutable( QString::fromLatin1( "ExpiryUnit" ) ))
00239 mExpiryUnit = v;
00240 }
00241
00245 int expiryUnit() const
00246 {
00247 return mExpiryUnit;
00248 }
00249
00253 ItemEnum *expiryUnitItem()
00254 {
00255 return mExpiryUnitItem;
00256 }
00257
00261 void setArchiveFile( const QString & v )
00262 {
00263 if (!isImmutable( QString::fromLatin1( "ArchiveFile" ) ))
00264 mArchiveFile = v;
00265 }
00266
00270 QString archiveFile() const
00271 {
00272 return mArchiveFile;
00273 }
00274
00278 ItemString *archiveFileItem()
00279 {
00280 return mArchiveFileItem;
00281 }
00282
00286 void setHtmlWithSave( bool v )
00287 {
00288 if (!isImmutable( QString::fromLatin1( "HtmlWithSave" ) ))
00289 mHtmlWithSave = v;
00290 }
00291
00295 bool htmlWithSave() const
00296 {
00297 return mHtmlWithSave;
00298 }
00299
00303 ItemBool *htmlWithSaveItem()
00304 {
00305 return mHtmlWithSaveItem;
00306 }
00307
00311 void setDestination( int v )
00312 {
00313 if (!isImmutable( QString::fromLatin1( "Destination" ) ))
00314 mDestination = v;
00315 }
00316
00320 int destination() const
00321 {
00322 return mDestination;
00323 }
00324
00328 ItemEnum *destinationItem()
00329 {
00330 return mDestinationItem;
00331 }
00332
00336 void setBcc( bool v )
00337 {
00338 if (!isImmutable( QString::fromLatin1( "Bcc" ) ))
00339 mBcc = v;
00340 }
00341
00345 bool bcc() const
00346 {
00347 return mBcc;
00348 }
00349
00353 ItemBool *bccItem()
00354 {
00355 return mBccItem;
00356 }
00357
00361 void setEmailControlCenter( bool v )
00362 {
00363 if (!isImmutable( QString::fromLatin1( "EmailControlCenter" ) ))
00364 mEmailControlCenter = v;
00365 }
00366
00370 bool emailControlCenter() const
00371 {
00372 return mEmailControlCenter;
00373 }
00374
00378 ItemBool *emailControlCenterItem()
00379 {
00380 return mEmailControlCenterItem;
00381 }
00382
00386 void setUserName( const QString & v )
00387 {
00388 if (!isImmutable( QString::fromLatin1( "UserName" ) ))
00389 mUserName = v;
00390 }
00391
00395 QString userName() const
00396 {
00397 return mUserName;
00398 }
00399
00403 ItemString *userNameItem()
00404 {
00405 return mUserNameItem;
00406 }
00407
00411 void setUserEmail( const QString & v )
00412 {
00413 if (!isImmutable( QString::fromLatin1( "UserEmail" ) ))
00414 mUserEmail = v;
00415 }
00416
00420 QString userEmail() const
00421 {
00422 return mUserEmail;
00423 }
00424
00428 ItemString *userEmailItem()
00429 {
00430 return mUserEmailItem;
00431 }
00432
00436 void setMailClient( int v )
00437 {
00438 if (!isImmutable( QString::fromLatin1( "MailClient" ) ))
00439 mMailClient = v;
00440 }
00441
00445 int mailClient() const
00446 {
00447 return mMailClient;
00448 }
00449
00453 ItemEnum *mailClientItem()
00454 {
00455 return mMailClientItem;
00456 }
00457
00461 void setTimeZoneId( const QString & v )
00462 {
00463 if (!isImmutable( QString::fromLatin1( "TimeZoneId" ) ))
00464 mTimeZoneId = v;
00465 }
00466
00470 QString timeZoneId() const
00471 {
00472 return mTimeZoneId;
00473 }
00474
00478 ItemString *timeZoneIdItem()
00479 {
00480 return mTimeZoneIdItem;
00481 }
00482
00486 void setHolidays( const QString & v )
00487 {
00488 if (!isImmutable( QString::fromLatin1( "Holidays" ) ))
00489 mHolidays = v;
00490 }
00491
00495 QString holidays() const
00496 {
00497 return mHolidays;
00498 }
00499
00503 ItemString *holidaysItem()
00504 {
00505 return mHolidaysItem;
00506 }
00507
00511 void setStartTime( const QDateTime & v )
00512 {
00513 if (!isImmutable( QString::fromLatin1( "StartTime" ) ))
00514 mStartTime = v;
00515 }
00516
00520 QDateTime startTime() const
00521 {
00522 return mStartTime;
00523 }
00524
00528 ItemDateTime *startTimeItem()
00529 {
00530 return mStartTimeItem;
00531 }
00532
00536 void setDefaultDuration( const QDateTime & v )
00537 {
00538 if (!isImmutable( QString::fromLatin1( "DefaultDuration" ) ))
00539 mDefaultDuration = v;
00540 }
00541
00545 QDateTime defaultDuration() const
00546 {
00547 return mDefaultDuration;
00548 }
00549
00553 ItemDateTime *defaultDurationItem()
00554 {
00555 return mDefaultDurationItem;
00556 }
00557
00561 void setAlarmTime( int v )
00562 {
00563 if (!isImmutable( QString::fromLatin1( "AlarmTime" ) ))
00564 mAlarmTime = v;
00565 }
00566
00570 int alarmTime() const
00571 {
00572 return mAlarmTime;
00573 }
00574
00578 ItemInt *alarmTimeItem()
00579 {
00580 return mAlarmTimeItem;
00581 }
00582
00586 void setHourSize( int v )
00587 {
00588 if (v < 4)
00589 {
00590 kdDebug() << "setHourSize: value " << v << " is less than the minimum value of 4" << endl;
00591 v = 4;
00592 }
00593
00594 if (v > 30)
00595 {
00596 kdDebug() << "setHourSize: value " << v << " is greater than the maximum value of 30" << endl;
00597 v = 30;
00598 }
00599
00600 if (!isImmutable( QString::fromLatin1( "HourSize" ) ))
00601 mHourSize = v;
00602 }
00603
00607 int hourSize() const
00608 {
00609 return mHourSize;
00610 }
00611
00615 ItemInt *hourSizeItem()
00616 {
00617 return mHourSizeItem;
00618 }
00619
00623 void setDailyRecur( bool v )
00624 {
00625 if (!isImmutable( QString::fromLatin1( "DailyRecur" ) ))
00626 mDailyRecur = v;
00627 }
00628
00632 bool dailyRecur() const
00633 {
00634 return mDailyRecur;
00635 }
00636
00640 ItemBool *dailyRecurItem()
00641 {
00642 return mDailyRecurItem;
00643 }
00644
00648 void setWeeklyRecur( bool v )
00649 {
00650 if (!isImmutable( QString::fromLatin1( "WeeklyRecur" ) ))
00651 mWeeklyRecur = v;
00652 }
00653
00657 bool weeklyRecur() const
00658 {
00659 return mWeeklyRecur;
00660 }
00661
00665 ItemBool *weeklyRecurItem()
00666 {
00667 return mWeeklyRecurItem;
00668 }
00669
00673 void setEnableToolTips( bool v )
00674 {
00675 if (!isImmutable( QString::fromLatin1( "EnableToolTips" ) ))
00676 mEnableToolTips = v;
00677 }
00678
00682 bool enableToolTips() const
00683 {
00684 return mEnableToolTips;
00685 }
00686
00690 ItemBool *enableToolTipsItem()
00691 {
00692 return mEnableToolTipsItem;
00693 }
00694
00698 void setShowAllDayTodo( bool v )
00699 {
00700 if (!isImmutable( QString::fromLatin1( "ShowAllDayTodo" ) ))
00701 mShowAllDayTodo = v;
00702 }
00703
00707 bool showAllDayTodo() const
00708 {
00709 return mShowAllDayTodo;
00710 }
00711
00715 ItemBool *showAllDayTodoItem()
00716 {
00717 return mShowAllDayTodoItem;
00718 }
00719
00723 void setEnableMonthScroll( bool v )
00724 {
00725 if (!isImmutable( QString::fromLatin1( "EnableMonthScroll" ) ))
00726 mEnableMonthScroll = v;
00727 }
00728
00732 bool enableMonthScroll() const
00733 {
00734 return mEnableMonthScroll;
00735 }
00736
00740 ItemBool *enableMonthScrollItem()
00741 {
00742 return mEnableMonthScrollItem;
00743 }
00744
00748 void setSelectionStartsEditor( bool v )
00749 {
00750 if (!isImmutable( QString::fromLatin1( "SelectionStartsEditor" ) ))
00751 mSelectionStartsEditor = v;
00752 }
00753
00757 bool selectionStartsEditor() const
00758 {
00759 return mSelectionStartsEditor;
00760 }
00761
00765 ItemBool *selectionStartsEditorItem()
00766 {
00767 return mSelectionStartsEditorItem;
00768 }
00769
00773 void setMarcusBainsEnabled( bool v )
00774 {
00775 if (!isImmutable( QString::fromLatin1( "MarcusBainsEnabled" ) ))
00776 mMarcusBainsEnabled = v;
00777 }
00778
00782 bool marcusBainsEnabled() const
00783 {
00784 return mMarcusBainsEnabled;
00785 }
00786
00790 ItemBool *marcusBainsEnabledItem()
00791 {
00792 return mMarcusBainsEnabledItem;
00793 }
00794
00798 void setMarcusBainsShowSeconds( bool v )
00799 {
00800 if (!isImmutable( QString::fromLatin1( "MarcusBainsShowSeconds" ) ))
00801 mMarcusBainsShowSeconds = v;
00802 }
00803
00807 bool marcusBainsShowSeconds() const
00808 {
00809 return mMarcusBainsShowSeconds;
00810 }
00811
00815 ItemBool *marcusBainsShowSecondsItem()
00816 {
00817 return mMarcusBainsShowSecondsItem;
00818 }
00819
00823 void setAgendaViewColors( int v )
00824 {
00825 if (!isImmutable( QString::fromLatin1( "AgendaViewColors" ) ))
00826 mAgendaViewColors = v;
00827 }
00828
00832 int agendaViewColors() const
00833 {
00834 return mAgendaViewColors;
00835 }
00836
00840 ItemEnum *agendaViewColorsItem()
00841 {
00842 return mAgendaViewColorsItem;
00843 }
00844
00848 void setAgendaViewCalendarDisplay( int v )
00849 {
00850 if (!isImmutable( QString::fromLatin1( "AgendaViewCalendarDisplay" ) ))
00851 mAgendaViewCalendarDisplay = v;
00852 }
00853
00857 int agendaViewCalendarDisplay() const
00858 {
00859 return mAgendaViewCalendarDisplay;
00860 }
00861
00865 ItemEnum *agendaViewCalendarDisplayItem()
00866 {
00867 return mAgendaViewCalendarDisplayItem;
00868 }
00869
00873 void setDayBegins( const QDateTime & v )
00874 {
00875 if (!isImmutable( QString::fromLatin1( "DayBegins" ) ))
00876 mDayBegins = v;
00877 }
00878
00882 QDateTime dayBegins() const
00883 {
00884 return mDayBegins;
00885 }
00886
00890 ItemDateTime *dayBeginsItem()
00891 {
00892 return mDayBeginsItem;
00893 }
00894
00898 void setWorkingHoursStart( const QDateTime & v )
00899 {
00900 if (!isImmutable( QString::fromLatin1( "WorkingHoursStart" ) ))
00901 mWorkingHoursStart = v;
00902 }
00903
00907 QDateTime workingHoursStart() const
00908 {
00909 return mWorkingHoursStart;
00910 }
00911
00915 ItemDateTime *workingHoursStartItem()
00916 {
00917 return mWorkingHoursStartItem;
00918 }
00919
00923 void setWorkingHoursEnd( const QDateTime & v )
00924 {
00925 if (!isImmutable( QString::fromLatin1( "WorkingHoursEnd" ) ))
00926 mWorkingHoursEnd = v;
00927 }
00928
00932 QDateTime workingHoursEnd() const
00933 {
00934 return mWorkingHoursEnd;
00935 }
00936
00940 ItemDateTime *workingHoursEndItem()
00941 {
00942 return mWorkingHoursEndItem;
00943 }
00944
00948 void setWorkWeekMask( int v )
00949 {
00950 if (!isImmutable( QString::fromLatin1( "WorkWeekMask" ) ))
00951 mWorkWeekMask = v;
00952 }
00953
00957 int workWeekMask() const
00958 {
00959 return mWorkWeekMask;
00960 }
00961
00965 ItemInt *workWeekMaskItem()
00966 {
00967 return mWorkWeekMaskItem;
00968 }
00969
00973 void setExcludeHolidays( bool v )
00974 {
00975 if (!isImmutable( QString::fromLatin1( "ExcludeHolidays" ) ))
00976 mExcludeHolidays = v;
00977 }
00978
00982 bool excludeHolidays() const
00983 {
00984 return mExcludeHolidays;
00985 }
00986
00990 ItemBool *excludeHolidaysItem()
00991 {
00992 return mExcludeHolidaysItem;
00993 }
00994
00998 void setMonthViewUsesCategoryColor( bool v )
00999 {
01000 if (!isImmutable( QString::fromLatin1( "MonthViewUsesCategoryColor" ) ))
01001 mMonthViewUsesCategoryColor = v;
01002 }
01003
01007 bool monthViewUsesCategoryColor() const
01008 {
01009 return mMonthViewUsesCategoryColor;
01010 }
01011
01015 ItemBool *monthViewUsesCategoryColorItem()
01016 {
01017 return mMonthViewUsesCategoryColorItem;
01018 }
01019
01023 void setMonthViewUsesResourceColor( bool v )
01024 {
01025 if (!isImmutable( QString::fromLatin1( "MonthViewUsesResourceColor" ) ))
01026 mMonthViewUsesResourceColor = v;
01027 }
01028
01032 bool monthViewUsesResourceColor() const
01033 {
01034 return mMonthViewUsesResourceColor;
01035 }
01036
01040 ItemBool *monthViewUsesResourceColorItem()
01041 {
01042 return mMonthViewUsesResourceColorItem;
01043 }
01044
01048 void setFullViewMonth( bool v )
01049 {
01050 if (!isImmutable( QString::fromLatin1( "FullViewMonth" ) ))
01051 mFullViewMonth = v;
01052 }
01053
01057 bool fullViewMonth() const
01058 {
01059 return mFullViewMonth;
01060 }
01061
01065 ItemBool *fullViewMonthItem()
01066 {
01067 return mFullViewMonthItem;
01068 }
01069
01073 void setFullViewTodo( bool v )
01074 {
01075 if (!isImmutable( QString::fromLatin1( "FullViewTodo" ) ))
01076 mFullViewTodo = v;
01077 }
01078
01082 bool fullViewTodo() const
01083 {
01084 return mFullViewTodo;
01085 }
01086
01090 ItemBool *fullViewTodoItem()
01091 {
01092 return mFullViewTodoItem;
01093 }
01094
01098 void setRecordTodosInJournals( bool v )
01099 {
01100 if (!isImmutable( QString::fromLatin1( "RecordTodosInJournals" ) ))
01101 mRecordTodosInJournals = v;
01102 }
01103
01107 bool recordTodosInJournals() const
01108 {
01109 return mRecordTodosInJournals;
01110 }
01111
01115 ItemBool *recordTodosInJournalsItem()
01116 {
01117 return mRecordTodosInJournalsItem;
01118 }
01119
01123 void setEnableQuickTodo( bool v )
01124 {
01125 if (!isImmutable( QString::fromLatin1( "EnableQuickTodo" ) ))
01126 mEnableQuickTodo = v;
01127 }
01128
01132 bool enableQuickTodo() const
01133 {
01134 return mEnableQuickTodo;
01135 }
01136
01140 ItemBool *enableQuickTodoItem()
01141 {
01142 return mEnableQuickTodoItem;
01143 }
01144
01148 void setNextXDays( int v )
01149 {
01150 if (!isImmutable( QString::fromLatin1( "NextXDays" ) ))
01151 mNextXDays = v;
01152 }
01153
01157 int nextXDays() const
01158 {
01159 return mNextXDays;
01160 }
01161
01165 ItemInt *nextXDaysItem()
01166 {
01167 return mNextXDaysItem;
01168 }
01169
01173 void setCompactDialogs( bool v )
01174 {
01175 if (!isImmutable( QString::fromLatin1( "CompactDialogs" ) ))
01176 mCompactDialogs = v;
01177 }
01178
01182 bool compactDialogs() const
01183 {
01184 return mCompactDialogs;
01185 }
01186
01190 ItemBool *compactDialogsItem()
01191 {
01192 return mCompactDialogsItem;
01193 }
01194
01198 void setVerticalScreen( bool v )
01199 {
01200 if (!isImmutable( QString::fromLatin1( "VerticalScreen" ) ))
01201 mVerticalScreen = v;
01202 }
01203
01207 bool verticalScreen() const
01208 {
01209 return mVerticalScreen;
01210 }
01211
01215 ItemBool *verticalScreenItem()
01216 {
01217 return mVerticalScreenItem;
01218 }
01219
01223 void setSelectedPlugins( const QStringList & v )
01224 {
01225 if (!isImmutable( QString::fromLatin1( "SelectedPlugins" ) ))
01226 mSelectedPlugins = v;
01227 }
01228
01232 QStringList selectedPlugins() const
01233 {
01234 return mSelectedPlugins;
01235 }
01236
01240 ItemStringList *selectedPluginsItem()
01241 {
01242 return mSelectedPluginsItem;
01243 }
01244
01248 void setEventTemplates( const QStringList & v )
01249 {
01250 if (!isImmutable( QString::fromLatin1( "EventTemplates" ) ))
01251 mEventTemplates = v;
01252 }
01253
01257 QStringList eventTemplates() const
01258 {
01259 return mEventTemplates;
01260 }
01261
01265 ItemStringList *eventTemplatesItem()
01266 {
01267 return mEventTemplatesItem;
01268 }
01269
01273 void setTodoTemplates( const QStringList & v )
01274 {
01275 if (!isImmutable( QString::fromLatin1( "TodoTemplates" ) ))
01276 mTodoTemplates = v;
01277 }
01278
01282 QStringList todoTemplates() const
01283 {
01284 return mTodoTemplates;
01285 }
01286
01290 ItemStringList *todoTemplatesItem()
01291 {
01292 return mTodoTemplatesItem;
01293 }
01294
01298 void setJournalTemplates( const QStringList & v )
01299 {
01300 if (!isImmutable( QString::fromLatin1( "JournalTemplates" ) ))
01301 mJournalTemplates = v;
01302 }
01303
01307 QStringList journalTemplates() const
01308 {
01309 return mJournalTemplates;
01310 }
01311
01315 ItemStringList *journalTemplatesItem()
01316 {
01317 return mJournalTemplatesItem;
01318 }
01319
01323 void setActiveDesignerFields( const QStringList & v )
01324 {
01325 if (!isImmutable( QString::fromLatin1( "ActiveDesignerFields" ) ))
01326 mActiveDesignerFields = v;
01327 }
01328
01332 QStringList activeDesignerFields() const
01333 {
01334 return mActiveDesignerFields;
01335 }
01336
01340 ItemStringList *activeDesignerFieldsItem()
01341 {
01342 return mActiveDesignerFieldsItem;
01343 }
01344
01348 void setIMIPScheduler( int v )
01349 {
01350 if (!isImmutable( QString::fromLatin1( "IMIPScheduler" ) ))
01351 mIMIPScheduler = v;
01352 }
01353
01357 int iMIPScheduler() const
01358 {
01359 return mIMIPScheduler;
01360 }
01361
01365 ItemEnum *iMIPSchedulerItem()
01366 {
01367 return mIMIPSchedulerItem;
01368 }
01369
01373 void setUseGroupwareCommunication( bool v )
01374 {
01375 if (!isImmutable( QString::fromLatin1( "UseGroupwareCommunication" ) ))
01376 mUseGroupwareCommunication = v;
01377 }
01378
01382 bool useGroupwareCommunication() const
01383 {
01384 return mUseGroupwareCommunication;
01385 }
01386
01390 ItemBool *useGroupwareCommunicationItem()
01391 {
01392 return mUseGroupwareCommunicationItem;
01393 }
01394
01398 void setAdditionalMails( const QStringList & v )
01399 {
01400 if (!isImmutable( QString::fromLatin1( "AdditionalMails" ) ))
01401 mAdditionalMails = v;
01402 }
01403
01407 QStringList additionalMails() const
01408 {
01409 return mAdditionalMails;
01410 }
01411
01415 ItemStringList *additionalMailsItem()
01416 {
01417 return mAdditionalMailsItem;
01418 }
01419
01423 void setHolidayColor( const QColor & v )
01424 {
01425 if (!isImmutable( QString::fromLatin1( "HolidayColor" ) ))
01426 mHolidayColor = v;
01427 }
01428
01432 QColor holidayColor() const
01433 {
01434 return mHolidayColor;
01435 }
01436
01440 ItemColor *holidayColorItem()
01441 {
01442 return mHolidayColorItem;
01443 }
01444
01448 void setHighlightColor( const QColor & v )
01449 {
01450 if (!isImmutable( QString::fromLatin1( "HighlightColor" ) ))
01451 mHighlightColor = v;
01452 }
01453
01457 QColor highlightColor() const
01458 {
01459 return mHighlightColor;
01460 }
01461
01465 ItemColor *highlightColorItem()
01466 {
01467 return mHighlightColorItem;
01468 }
01469
01473 void setAgendaBgColor( const QColor & v )
01474 {
01475 if (!isImmutable( QString::fromLatin1( "AgendaBgColor" ) ))
01476 mAgendaBgColor = v;
01477 }
01478
01482 QColor agendaBgColor() const
01483 {
01484 return mAgendaBgColor;
01485 }
01486
01490 ItemColor *agendaBgColorItem()
01491 {
01492 return mAgendaBgColorItem;
01493 }
01494
01498 void setWorkingHoursColor( const QColor & v )
01499 {
01500 if (!isImmutable( QString::fromLatin1( "WorkingHoursColor" ) ))
01501 mWorkingHoursColor = v;
01502 }
01503
01507 QColor workingHoursColor() const
01508 {
01509 return mWorkingHoursColor;
01510 }
01511
01515 ItemColor *workingHoursColorItem()
01516 {
01517 return mWorkingHoursColorItem;
01518 }
01519
01523 void setTodoDueTodayColor( const QColor & v )
01524 {
01525 if (!isImmutable( QString::fromLatin1( "TodoDueTodayColor" ) ))
01526 mTodoDueTodayColor = v;
01527 }
01528
01532 QColor todoDueTodayColor() const
01533 {
01534 return mTodoDueTodayColor;
01535 }
01536
01540 ItemColor *todoDueTodayColorItem()
01541 {
01542 return mTodoDueTodayColorItem;
01543 }
01544
01548 void setTodoOverdueColor( const QColor & v )
01549 {
01550 if (!isImmutable( QString::fromLatin1( "TodoOverdueColor" ) ))
01551 mTodoOverdueColor = v;
01552 }
01553
01557 QColor todoOverdueColor() const
01558 {
01559 return mTodoOverdueColor;
01560 }
01561
01565 ItemColor *todoOverdueColorItem()
01566 {
01567 return mTodoOverdueColorItem;
01568 }
01569
01573 void setEventColor( const QColor & v )
01574 {
01575 if (!isImmutable( QString::fromLatin1( "EventColor" ) ))
01576 mEventColor = v;
01577 }
01578
01582 QColor eventColor() const
01583 {
01584 return mEventColor;
01585 }
01586
01590 ItemColor *eventColorItem()
01591 {
01592 return mEventColorItem;
01593 }
01594
01598 void setAssignDefaultResourceColors( bool v )
01599 {
01600 if (!isImmutable( QString::fromLatin1( "AssignDefaultResourceColors" ) ))
01601 mAssignDefaultResourceColors = v;
01602 }
01603
01607 bool assignDefaultResourceColors() const
01608 {
01609 return mAssignDefaultResourceColors;
01610 }
01611
01615 ItemBool *assignDefaultResourceColorsItem()
01616 {
01617 return mAssignDefaultResourceColorsItem;
01618 }
01619
01623 void setDefaultResourceColorSeed( int v )
01624 {
01625 if (!isImmutable( QString::fromLatin1( "DefaultResourceColorSeed" ) ))
01626 mDefaultResourceColorSeed = v;
01627 }
01628
01632 int defaultResourceColorSeed() const
01633 {
01634 return mDefaultResourceColorSeed;
01635 }
01636
01640 ItemInt *defaultResourceColorSeedItem()
01641 {
01642 return mDefaultResourceColorSeedItem;
01643 }
01644
01648 void setDefaultResourceColors( const QStringList & v )
01649 {
01650 if (!isImmutable( QString::fromLatin1( "DefaultResourceColors" ) ))
01651 mDefaultResourceColors = v;
01652 }
01653
01657 QStringList defaultResourceColors() const
01658 {
01659 return mDefaultResourceColors;
01660 }
01661
01665 ItemStringList *defaultResourceColorsItem()
01666 {
01667 return mDefaultResourceColorsItem;
01668 }
01669
01673 void setTimeBarFont( const QFont & v )
01674 {
01675 if (!isImmutable( QString::fromLatin1( "TimeBarFont" ) ))
01676 mTimeBarFont = v;
01677 }
01678
01682 QFont timeBarFont() const
01683 {
01684 return mTimeBarFont;
01685 }
01686
01690 ItemFont *timeBarFontItem()
01691 {
01692 return mTimeBarFontItem;
01693 }
01694
01698 void setAgendaViewFont( const QFont & v )
01699 {
01700 if (!isImmutable( QString::fromLatin1( "AgendaViewFont" ) ))
01701 mAgendaViewFont = v;
01702 }
01703
01707 QFont agendaViewFont() const
01708 {
01709 return mAgendaViewFont;
01710 }
01711
01715 ItemFont *agendaViewFontItem()
01716 {
01717 return mAgendaViewFontItem;
01718 }
01719
01723 void setMarcusBainsFont( const QFont & v )
01724 {
01725 if (!isImmutable( QString::fromLatin1( "MarcusBainsFont" ) ))
01726 mMarcusBainsFont = v;
01727 }
01728
01732 QFont marcusBainsFont() const
01733 {
01734 return mMarcusBainsFont;
01735 }
01736
01740 ItemFont *marcusBainsFontItem()
01741 {
01742 return mMarcusBainsFontItem;
01743 }
01744
01748 void setMonthViewFont( const QFont & v )
01749 {
01750 if (!isImmutable( QString::fromLatin1( "MonthViewFont" ) ))
01751 mMonthViewFont = v;
01752 }
01753
01757 QFont monthViewFont() const
01758 {
01759 return mMonthViewFont;
01760 }
01761
01765 ItemFont *monthViewFontItem()
01766 {
01767 return mMonthViewFontItem;
01768 }
01769
01773 void setFreeBusyPublishAuto( bool v )
01774 {
01775 if (!isImmutable( QString::fromLatin1( "FreeBusyPublishAuto" ) ))
01776 mFreeBusyPublishAuto = v;
01777 }
01778
01782 bool freeBusyPublishAuto() const
01783 {
01784 return mFreeBusyPublishAuto;
01785 }
01786
01790 ItemBool *freeBusyPublishAutoItem()
01791 {
01792 return mFreeBusyPublishAutoItem;
01793 }
01794
01798 void setFreeBusyPublishDelay( int v )
01799 {
01800 if (!isImmutable( QString::fromLatin1( "FreeBusyPublishDelay" ) ))
01801 mFreeBusyPublishDelay = v;
01802 }
01803
01807 int freeBusyPublishDelay() const
01808 {
01809 return mFreeBusyPublishDelay;
01810 }
01811
01815 ItemInt *freeBusyPublishDelayItem()
01816 {
01817 return mFreeBusyPublishDelayItem;
01818 }
01819
01823 void setFreeBusyPublishDays( int v )
01824 {
01825 if (!isImmutable( QString::fromLatin1( "FreeBusyPublishDays" ) ))
01826 mFreeBusyPublishDays = v;
01827 }
01828
01832 int freeBusyPublishDays() const
01833 {
01834 return mFreeBusyPublishDays;
01835 }
01836
01840 ItemInt *freeBusyPublishDaysItem()
01841 {
01842 return mFreeBusyPublishDaysItem;
01843 }
01844
01848 void setFreeBusyPublishUrl( const QString & v )
01849 {
01850 if (!isImmutable( QString::fromLatin1( "FreeBusyPublishUrl" ) ))
01851 mFreeBusyPublishUrl = v;
01852 }
01853
01857 QString freeBusyPublishUrl() const
01858 {
01859 return mFreeBusyPublishUrl;
01860 }
01861
01865 ItemString *freeBusyPublishUrlItem()
01866 {
01867 return mFreeBusyPublishUrlItem;
01868 }
01869
01873 void setFreeBusyPublishUser( const QString & v )
01874 {
01875 if (!isImmutable( QString::fromLatin1( "FreeBusyPublishUser" ) ))
01876 mFreeBusyPublishUser = v;
01877 }
01878
01882 QString freeBusyPublishUser() const
01883 {
01884 return mFreeBusyPublishUser;
01885 }
01886
01890 ItemString *freeBusyPublishUserItem()
01891 {
01892 return mFreeBusyPublishUserItem;
01893 }
01894
01898 void setFreeBusyPublishPassword( const QString & v )
01899 {
01900 if (!isImmutable( QString::fromLatin1( "FreeBusyPublishPassword" ) ))
01901 mFreeBusyPublishPassword = v;
01902 }
01903
01907 QString freeBusyPublishPassword() const
01908 {
01909 return mFreeBusyPublishPassword;
01910 }
01911
01915 ItemPassword *freeBusyPublishPasswordItem()
01916 {
01917 return mFreeBusyPublishPasswordItem;
01918 }
01919
01923 void setFreeBusyPublishSavePassword( bool v )
01924 {
01925 if (!isImmutable( QString::fromLatin1( "FreeBusyPublishSavePassword" ) ))
01926 mFreeBusyPublishSavePassword = v;
01927 }
01928
01932 bool freeBusyPublishSavePassword() const
01933 {
01934 return mFreeBusyPublishSavePassword;
01935 }
01936
01940 ItemBool *freeBusyPublishSavePasswordItem()
01941 {
01942 return mFreeBusyPublishSavePasswordItem;
01943 }
01944
01948 void setFreeBusyRetrieveAuto( bool v )
01949 {
01950 if (!isImmutable( QString::fromLatin1( "FreeBusyRetrieveAuto" ) ))
01951 mFreeBusyRetrieveAuto = v;
01952 }
01953
01957 bool freeBusyRetrieveAuto() const
01958 {
01959 return mFreeBusyRetrieveAuto;
01960 }
01961
01965 ItemBool *freeBusyRetrieveAutoItem()
01966 {
01967 return mFreeBusyRetrieveAutoItem;
01968 }
01969
01973 void setFreeBusyCheckHostname( bool v )
01974 {
01975 if (!isImmutable( QString::fromLatin1( "FreeBusyCheckHostname" ) ))
01976 mFreeBusyCheckHostname = v;
01977 }
01978
01982 bool freeBusyCheckHostname() const
01983 {
01984 return mFreeBusyCheckHostname;
01985 }
01986
01990 ItemBool *freeBusyCheckHostnameItem()
01991 {
01992 return mFreeBusyCheckHostnameItem;
01993 }
01994
01998 void setFreeBusyFullDomainRetrieval( bool v )
01999 {
02000 if (!isImmutable( QString::fromLatin1( "FreeBusyFullDomainRetrieval" ) ))
02001 mFreeBusyFullDomainRetrieval = v;
02002 }
02003
02007 bool freeBusyFullDomainRetrieval() const
02008 {
02009 return mFreeBusyFullDomainRetrieval;
02010 }
02011
02015 ItemBool *freeBusyFullDomainRetrievalItem()
02016 {
02017 return mFreeBusyFullDomainRetrievalItem;
02018 }
02019
02023 void setFreeBusyRetrieveUrl( const QString & v )
02024 {
02025 if (!isImmutable( QString::fromLatin1( "FreeBusyRetrieveUrl" ) ))
02026 mFreeBusyRetrieveUrl = v;
02027 }
02028
02032 QString freeBusyRetrieveUrl() const
02033 {
02034 return mFreeBusyRetrieveUrl;
02035 }
02036
02040 ItemString *freeBusyRetrieveUrlItem()
02041 {
02042 return mFreeBusyRetrieveUrlItem;
02043 }
02044
02048 void setFreeBusyRetrieveUser( const QString & v )
02049 {
02050 if (!isImmutable( QString::fromLatin1( "FreeBusyRetrieveUser" ) ))
02051 mFreeBusyRetrieveUser = v;
02052 }
02053
02057 QString freeBusyRetrieveUser() const
02058 {
02059 return mFreeBusyRetrieveUser;
02060 }
02061
02065 ItemString *freeBusyRetrieveUserItem()
02066 {
02067 return mFreeBusyRetrieveUserItem;
02068 }
02069
02073 void setFreeBusyRetrievePassword( const QString & v )
02074 {
02075 if (!isImmutable( QString::fromLatin1( "FreeBusyRetrievePassword" ) ))
02076 mFreeBusyRetrievePassword = v;
02077 }
02078
02082 QString freeBusyRetrievePassword() const
02083 {
02084 return mFreeBusyRetrievePassword;
02085 }
02086
02090 ItemPassword *freeBusyRetrievePasswordItem()
02091 {
02092 return mFreeBusyRetrievePasswordItem;
02093 }
02094
02098 void setFreeBusyRetrieveSavePassword( bool v )
02099 {
02100 if (!isImmutable( QString::fromLatin1( "FreeBusyRetrieveSavePassword" ) ))
02101 mFreeBusyRetrieveSavePassword = v;
02102 }
02103
02107 bool freeBusyRetrieveSavePassword() const
02108 {
02109 return mFreeBusyRetrieveSavePassword;
02110 }
02111
02115 ItemBool *freeBusyRetrieveSavePasswordItem()
02116 {
02117 return mFreeBusyRetrieveSavePasswordItem;
02118 }
02119
02123 void setDefaultEmailAttachMethod( int v )
02124 {
02125 if (!isImmutable( QString::fromLatin1( "DefaultEmailAttachMethod" ) ))
02126 mDefaultEmailAttachMethod = v;
02127 }
02128
02132 int defaultEmailAttachMethod() const
02133 {
02134 return mDefaultEmailAttachMethod;
02135 }
02136
02140 ItemEnum *defaultEmailAttachMethodItem()
02141 {
02142 return mDefaultEmailAttachMethodItem;
02143 }
02144
02148 void setDefaultTodoAttachMethod( int v )
02149 {
02150 if (!isImmutable( QString::fromLatin1( "DefaultTodoAttachMethod" ) ))
02151 mDefaultTodoAttachMethod = v;
02152 }
02153
02157 int defaultTodoAttachMethod() const
02158 {
02159 return mDefaultTodoAttachMethod;
02160 }
02161
02165 ItemEnum *defaultTodoAttachMethodItem()
02166 {
02167 return mDefaultTodoAttachMethodItem;
02168 }
02169
02170 protected:
02171 public:
02172
02173
02174 bool mAutoSave;
02175 int mAutoSaveInterval;
02176 bool mConfirm;
02177 bool mArchiveEvents;
02178 bool mArchiveTodos;
02179 bool mAutoArchive;
02180 int mArchiveAction;
02181 int mExpiryTime;
02182 int mExpiryUnit;
02183 QString mArchiveFile;
02184 bool mHtmlWithSave;
02185 int mDestination;
02186
02187
02188 bool mBcc;
02189 bool mEmailControlCenter;
02190 QString mUserName;
02191 QString mUserEmail;
02192 int mMailClient;
02193
02194
02195 QString mTimeZoneId;
02196 QString mHolidays;
02197 QDateTime mStartTime;
02198 QDateTime mDefaultDuration;
02199 int mAlarmTime;
02200
02201
02202 int mHourSize;
02203 bool mDailyRecur;
02204 bool mWeeklyRecur;
02205 bool mEnableToolTips;
02206 bool mShowAllDayTodo;
02207 bool mEnableMonthScroll;
02208 bool mSelectionStartsEditor;
02209 bool mMarcusBainsEnabled;
02210 bool mMarcusBainsShowSeconds;
02211 int mAgendaViewColors;
02212 int mAgendaViewCalendarDisplay;
02213 QDateTime mDayBegins;
02214 QDateTime mWorkingHoursStart;
02215 QDateTime mWorkingHoursEnd;
02216 int mWorkWeekMask;
02217 bool mExcludeHolidays;
02218 bool mMonthViewUsesCategoryColor;
02219 bool mMonthViewUsesResourceColor;
02220 bool mFullViewMonth;
02221 bool mFullViewTodo;
02222 bool mRecordTodosInJournals;
02223 bool mEnableQuickTodo;
02224 int mNextXDays;
02225
02226
02227 bool mCompactDialogs;
02228 bool mVerticalScreen;
02229
02230
02231 QStringList mSelectedPlugins;
02232
02233
02234 QStringList mEventTemplates;
02235 QStringList mTodoTemplates;
02236 QStringList mJournalTemplates;
02237 QStringList mActiveDesignerFields;
02238
02239
02240 int mIMIPScheduler;
02241 bool mUseGroupwareCommunication;
02242 QStringList mAdditionalMails;
02243
02244
02245 QColor mHolidayColor;
02246 QColor mHighlightColor;
02247 QColor mAgendaBgColor;
02248 QColor mWorkingHoursColor;
02249 QColor mTodoDueTodayColor;
02250 QColor mTodoOverdueColor;
02251 QColor mEventColor;
02252 bool mAssignDefaultResourceColors;
02253 int mDefaultResourceColorSeed;
02254 QStringList mDefaultResourceColors;
02255
02256
02257 QFont mTimeBarFont;
02258 QFont mAgendaViewFont;
02259 QFont mMarcusBainsFont;
02260 QFont mMonthViewFont;
02261
02262
02263 bool mFreeBusyPublishAuto;
02264 int mFreeBusyPublishDelay;
02265 int mFreeBusyPublishDays;
02266 QString mFreeBusyPublishUrl;
02267 QString mFreeBusyPublishUser;
02268 QString mFreeBusyPublishPassword;
02269 bool mFreeBusyPublishSavePassword;
02270 bool mFreeBusyRetrieveAuto;
02271 bool mFreeBusyCheckHostname;
02272 bool mFreeBusyFullDomainRetrieval;
02273 QString mFreeBusyRetrieveUrl;
02274 QString mFreeBusyRetrieveUser;
02275 QString mFreeBusyRetrievePassword;
02276 bool mFreeBusyRetrieveSavePassword;
02277
02278
02279 int mDefaultEmailAttachMethod;
02280 int mDefaultTodoAttachMethod;
02281
02282 private:
02283 ItemBool *mAutoSaveItem;
02284 ItemInt *mAutoSaveIntervalItem;
02285 ItemBool *mConfirmItem;
02286 ItemBool *mArchiveEventsItem;
02287 ItemBool *mArchiveTodosItem;
02288 ItemBool *mAutoArchiveItem;
02289 ItemEnum *mArchiveActionItem;
02290 ItemInt *mExpiryTimeItem;
02291 ItemEnum *mExpiryUnitItem;
02292 ItemString *mArchiveFileItem;
02293 ItemBool *mHtmlWithSaveItem;
02294 ItemEnum *mDestinationItem;
02295 ItemBool *mBccItem;
02296 ItemBool *mEmailControlCenterItem;
02297 ItemString *mUserNameItem;
02298 ItemString *mUserEmailItem;
02299 ItemEnum *mMailClientItem;
02300 ItemString *mTimeZoneIdItem;
02301 ItemString *mHolidaysItem;
02302 ItemDateTime *mStartTimeItem;
02303 ItemDateTime *mDefaultDurationItem;
02304 ItemInt *mAlarmTimeItem;
02305 ItemInt *mHourSizeItem;
02306 ItemBool *mDailyRecurItem;
02307 ItemBool *mWeeklyRecurItem;
02308 ItemBool *mEnableToolTipsItem;
02309 ItemBool *mShowAllDayTodoItem;
02310 ItemBool *mEnableMonthScrollItem;
02311 ItemBool *mSelectionStartsEditorItem;
02312 ItemBool *mMarcusBainsEnabledItem;
02313 ItemBool *mMarcusBainsShowSecondsItem;
02314 ItemEnum *mAgendaViewColorsItem;
02315 ItemEnum *mAgendaViewCalendarDisplayItem;
02316 ItemDateTime *mDayBeginsItem;
02317 ItemDateTime *mWorkingHoursStartItem;
02318 ItemDateTime *mWorkingHoursEndItem;
02319 ItemInt *mWorkWeekMaskItem;
02320 ItemBool *mExcludeHolidaysItem;
02321 ItemBool *mMonthViewUsesCategoryColorItem;
02322 ItemBool *mMonthViewUsesResourceColorItem;
02323 ItemBool *mFullViewMonthItem;
02324 ItemBool *mFullViewTodoItem;
02325 ItemBool *mRecordTodosInJournalsItem;
02326 ItemBool *mEnableQuickTodoItem;
02327 ItemInt *mNextXDaysItem;
02328 ItemBool *mCompactDialogsItem;
02329 ItemBool *mVerticalScreenItem;
02330 ItemStringList *mSelectedPluginsItem;
02331 ItemStringList *mEventTemplatesItem;
02332 ItemStringList *mTodoTemplatesItem;
02333 ItemStringList *mJournalTemplatesItem;
02334 ItemStringList *mActiveDesignerFieldsItem;
02335 ItemEnum *mIMIPSchedulerItem;
02336 ItemBool *mUseGroupwareCommunicationItem;
02337 ItemStringList *mAdditionalMailsItem;
02338 ItemColor *mHolidayColorItem;
02339 ItemColor *mHighlightColorItem;
02340 ItemColor *mAgendaBgColorItem;
02341 ItemColor *mWorkingHoursColorItem;
02342 ItemColor *mTodoDueTodayColorItem;
02343 ItemColor *mTodoOverdueColorItem;
02344 ItemColor *mEventColorItem;
02345 ItemBool *mAssignDefaultResourceColorsItem;
02346 ItemInt *mDefaultResourceColorSeedItem;
02347 ItemStringList *mDefaultResourceColorsItem;
02348 ItemFont *mTimeBarFontItem;
02349 ItemFont *mAgendaViewFontItem;
02350 ItemFont *mMarcusBainsFontItem;
02351 ItemFont *mMonthViewFontItem;
02352 ItemBool *mFreeBusyPublishAutoItem;
02353 ItemInt *mFreeBusyPublishDelayItem;
02354 ItemInt *mFreeBusyPublishDaysItem;
02355 ItemString *mFreeBusyPublishUrlItem;
02356 ItemString *mFreeBusyPublishUserItem;
02357 ItemPassword *mFreeBusyPublishPasswordItem;
02358 ItemBool *mFreeBusyPublishSavePasswordItem;
02359 ItemBool *mFreeBusyRetrieveAutoItem;
02360 ItemBool *mFreeBusyCheckHostnameItem;
02361 ItemBool *mFreeBusyFullDomainRetrievalItem;
02362 ItemString *mFreeBusyRetrieveUrlItem;
02363 ItemString *mFreeBusyRetrieveUserItem;
02364 ItemPassword *mFreeBusyRetrievePasswordItem;
02365 ItemBool *mFreeBusyRetrieveSavePasswordItem;
02366 ItemEnum *mDefaultEmailAttachMethodItem;
02367 ItemEnum *mDefaultTodoAttachMethodItem;
02368 };
02369
02370 #endif
02371
|