kmail
globalsettings_base.h00001
00002
00003 #ifndef GLOBALSETTINGSBASE_H
00004 #define GLOBALSETTINGSBASE_H
00005
00006 #include <templatesconfiguration.h>
00007 #include <kmglobal.h>
00008 #include <templatesconfiguration_base.h>
00009 #include <objecttreeparser.h>
00010
00011 #include <kconfigskeleton.h>
00012 #include <kdebug.h>
00013
00014 #include <qtextcodec.h>
00015 #include <kapplication.h>
00016 class GlobalSettingsBase : public KConfigSkeleton
00017 {
00018 public:
00019 class EnumActionEnterFolder
00020 {
00021 public:
00022 enum type { SelectFirstNew, SelectFirstUnreadNew, SelectLastSelected, SelectNewest, SelectOldest, COUNT };
00023 };
00024 class EnumNetworkState
00025 {
00026 public:
00027 enum type { Online, Offline, COUNT };
00028 };
00029 class EnumLoopOnGotoUnread
00030 {
00031 public:
00032 enum type { DontLoop, LoopInCurrentFolder, LoopInAllFolders, COUNT };
00033 };
00034 class EnumSendOnCheck
00035 {
00036 public:
00037 enum type { DontSendOnCheck, SendOnManualChecks, SendOnAllChecks, COUNT };
00038 };
00039 class EnumSystemTrayPolicy
00040 {
00041 public:
00042 enum type { ShowAlways, ShowOnUnread, COUNT };
00043 };
00044 class EnumQuotaUnit
00045 {
00046 public:
00047 enum type { KB, MB, GB, COUNT };
00048 };
00049 class EnumAskForCommentWhenReactingToInvitation
00050 {
00051 public:
00052 enum type { NeverAsk, AskForAllButAcceptance, AlwaysAsk, COUNT };
00053 };
00054 class EnumTheIMAPResourceStorageFormat
00055 {
00056 public:
00057 enum type { IcalVcard, XML, COUNT };
00058 };
00059 class EnumAddresseeSelectorType
00060 {
00061 public:
00062 enum type { New, Old, COUNT };
00063 };
00064 class EnumRecipientsEditorType
00065 {
00066 public:
00067 enum type { Classic, MultiLine, COUNT };
00068 };
00069 class EnumSecondRecipientTypeDefault
00070 {
00071 public:
00072 enum type { To, Cc, COUNT };
00073 };
00074
00075 static GlobalSettingsBase *self();
00076 ~GlobalSettingsBase();
00077
00081 static
00082 void setDelayedMarkAsRead( bool v )
00083 {
00084 if (!self()->isImmutable( QString::fromLatin1( "DelayedMarkAsRead" ) ))
00085 self()->mDelayedMarkAsRead = v;
00086 }
00087
00091 static
00092 bool delayedMarkAsRead()
00093 {
00094 return self()->mDelayedMarkAsRead;
00095 }
00096
00100 ItemBool *delayedMarkAsReadItem()
00101 {
00102 return mDelayedMarkAsReadItem;
00103 }
00104
00108 static
00109 void setDelayedMarkTime( uint v )
00110 {
00111 if (!self()->isImmutable( QString::fromLatin1( "DelayedMarkTime" ) ))
00112 self()->mDelayedMarkTime = v;
00113 }
00114
00118 static
00119 uint delayedMarkTime()
00120 {
00121 return self()->mDelayedMarkTime;
00122 }
00123
00127 ItemUInt *delayedMarkTimeItem()
00128 {
00129 return mDelayedMarkTimeItem;
00130 }
00131
00135 static
00136 void setActionEnterFolder( int v )
00137 {
00138 if (!self()->isImmutable( QString::fromLatin1( "ActionEnterFolder" ) ))
00139 self()->mActionEnterFolder = v;
00140 }
00141
00145 static
00146 int actionEnterFolder()
00147 {
00148 return self()->mActionEnterFolder;
00149 }
00150
00154 ItemEnum *actionEnterFolderItem()
00155 {
00156 return mActionEnterFolderItem;
00157 }
00158
00162 static
00163 void setNetworkState( int v )
00164 {
00165 if (!self()->isImmutable( QString::fromLatin1( "NetworkState" ) ))
00166 self()->mNetworkState = v;
00167 }
00168
00172 static
00173 int networkState()
00174 {
00175 return self()->mNetworkState;
00176 }
00177
00181 ItemEnum *networkStateItem()
00182 {
00183 return mNetworkStateItem;
00184 }
00185
00189 static
00190 void setLoopOnGotoUnread( int v )
00191 {
00192 if (!self()->isImmutable( QString::fromLatin1( "LoopOnGotoUnread" ) ))
00193 self()->mLoopOnGotoUnread = v;
00194 }
00195
00199 static
00200 int loopOnGotoUnread()
00201 {
00202 return self()->mLoopOnGotoUnread;
00203 }
00204
00208 ItemEnum *loopOnGotoUnreadItem()
00209 {
00210 return mLoopOnGotoUnreadItem;
00211 }
00212
00216 static
00217 void setShowPopupAfterDnD( bool v )
00218 {
00219 if (!self()->isImmutable( QString::fromLatin1( "ShowPopupAfterDnD" ) ))
00220 self()->mShowPopupAfterDnD = v;
00221 }
00222
00226 static
00227 bool showPopupAfterDnD()
00228 {
00229 return self()->mShowPopupAfterDnD;
00230 }
00231
00235 ItemBool *showPopupAfterDnDItem()
00236 {
00237 return mShowPopupAfterDnDItem;
00238 }
00239
00243 static
00244 void setExcludeImportantMailFromExpiry( bool v )
00245 {
00246 if (!self()->isImmutable( QString::fromLatin1( "ExcludeImportantMailFromExpiry" ) ))
00247 self()->mExcludeImportantMailFromExpiry = v;
00248 }
00249
00253 static
00254 bool excludeImportantMailFromExpiry()
00255 {
00256 return self()->mExcludeImportantMailFromExpiry;
00257 }
00258
00262 ItemBool *excludeImportantMailFromExpiryItem()
00263 {
00264 return mExcludeImportantMailFromExpiryItem;
00265 }
00266
00270 static
00271 void setSendOnCheck( int v )
00272 {
00273 if (!self()->isImmutable( QString::fromLatin1( "SendOnCheck" ) ))
00274 self()->mSendOnCheck = v;
00275 }
00276
00280 static
00281 int sendOnCheck()
00282 {
00283 return self()->mSendOnCheck;
00284 }
00285
00289 ItemEnum *sendOnCheckItem()
00290 {
00291 return mSendOnCheckItem;
00292 }
00293
00297 static
00298 void setAutoLostFoundMove( bool v )
00299 {
00300 if (!self()->isImmutable( QString::fromLatin1( "AutoLostFoundMove" ) ))
00301 self()->mAutoLostFoundMove = v;
00302 }
00303
00307 static
00308 bool autoLostFoundMove()
00309 {
00310 return self()->mAutoLostFoundMove;
00311 }
00312
00316 ItemBool *autoLostFoundMoveItem()
00317 {
00318 return mAutoLostFoundMoveItem;
00319 }
00320
00324 static
00325 void setAllowLocalFlags( bool v )
00326 {
00327 if (!self()->isImmutable( QString::fromLatin1( "AllowLocalFlags" ) ))
00328 self()->mAllowLocalFlags = v;
00329 }
00330
00334 static
00335 bool allowLocalFlags()
00336 {
00337 return self()->mAllowLocalFlags;
00338 }
00339
00343 ItemBool *allowLocalFlagsItem()
00344 {
00345 return mAllowLocalFlagsItem;
00346 }
00347
00351 static
00352 void setMinimumCheckInterval( int v )
00353 {
00354 if (!self()->isImmutable( QString::fromLatin1( "MinimumCheckInterval" ) ))
00355 self()->mMinimumCheckInterval = v;
00356 }
00357
00361 static
00362 int minimumCheckInterval()
00363 {
00364 return self()->mMinimumCheckInterval;
00365 }
00366
00370 ItemInt *minimumCheckIntervalItem()
00371 {
00372 return mMinimumCheckIntervalItem;
00373 }
00374
00378 static
00379 void setLastSelectedFolder( const QString & v )
00380 {
00381 if (!self()->isImmutable( QString::fromLatin1( "LastSelectedFolder" ) ))
00382 self()->mLastSelectedFolder = v;
00383 }
00384
00388 static
00389 QString lastSelectedFolder()
00390 {
00391 return self()->mLastSelectedFolder;
00392 }
00393
00397 ItemString *lastSelectedFolderItem()
00398 {
00399 return mLastSelectedFolderItem;
00400 }
00401
00405 static
00406 void setDisregardUmask( bool v )
00407 {
00408 if (!self()->isImmutable( QString::fromLatin1( "disregardUmask" ) ))
00409 self()->mDisregardUmask = v;
00410 }
00411
00415 static
00416 bool disregardUmask()
00417 {
00418 return self()->mDisregardUmask;
00419 }
00420
00424 ItemBool *disregardUmaskItem()
00425 {
00426 return mDisregardUmaskItem;
00427 }
00428
00432 static
00433 void setSystemTrayEnabled( bool v )
00434 {
00435 if (!self()->isImmutable( QString::fromLatin1( "SystemTrayEnabled" ) ))
00436 self()->mSystemTrayEnabled = v;
00437 }
00438
00442 static
00443 bool systemTrayEnabled()
00444 {
00445 return self()->mSystemTrayEnabled;
00446 }
00447
00451 ItemBool *systemTrayEnabledItem()
00452 {
00453 return mSystemTrayEnabledItem;
00454 }
00455
00459 static
00460 void setSystemTrayPolicy( int v )
00461 {
00462 if (!self()->isImmutable( QString::fromLatin1( "SystemTrayPolicy" ) ))
00463 self()->mSystemTrayPolicy = v;
00464 }
00465
00469 static
00470 int systemTrayPolicy()
00471 {
00472 return self()->mSystemTrayPolicy;
00473 }
00474
00478 ItemEnum *systemTrayPolicyItem()
00479 {
00480 return mSystemTrayPolicyItem;
00481 }
00482
00486 static
00487 void setCloseDespiteSystemTray( bool v )
00488 {
00489 if (!self()->isImmutable( QString::fromLatin1( "CloseDespiteSystemTray" ) ))
00490 self()->mCloseDespiteSystemTray = v;
00491 }
00492
00496 static
00497 bool closeDespiteSystemTray()
00498 {
00499 return self()->mCloseDespiteSystemTray;
00500 }
00501
00505 ItemBool *closeDespiteSystemTrayItem()
00506 {
00507 return mCloseDespiteSystemTrayItem;
00508 }
00509
00513 static
00514 void setVerboseNewMailNotification( bool v )
00515 {
00516 if (!self()->isImmutable( QString::fromLatin1( "VerboseNewMailNotification" ) ))
00517 self()->mVerboseNewMailNotification = v;
00518 }
00519
00523 static
00524 bool verboseNewMailNotification()
00525 {
00526 return self()->mVerboseNewMailNotification;
00527 }
00528
00532 ItemBool *verboseNewMailNotificationItem()
00533 {
00534 return mVerboseNewMailNotificationItem;
00535 }
00536
00540 static
00541 void setExternalEditor( const QString & v )
00542 {
00543 if (!self()->isImmutable( QString::fromLatin1( "ExternalEditor" ) ))
00544 self()->mExternalEditor = v;
00545 }
00546
00550 static
00551 QString externalEditor()
00552 {
00553 return self()->mExternalEditor;
00554 }
00555
00559 ItemString *externalEditorItem()
00560 {
00561 return mExternalEditorItem;
00562 }
00563
00567 static
00568 void setUseExternalEditor( bool v )
00569 {
00570 if (!self()->isImmutable( QString::fromLatin1( "UseExternalEditor" ) ))
00571 self()->mUseExternalEditor = v;
00572 }
00573
00577 static
00578 bool useExternalEditor()
00579 {
00580 return self()->mUseExternalEditor;
00581 }
00582
00586 ItemBool *useExternalEditorItem()
00587 {
00588 return mUseExternalEditorItem;
00589 }
00590
00594 static
00595 void setCustHeaderCount( int v )
00596 {
00597 if (!self()->isImmutable( QString::fromLatin1( "CustHeaderCount" ) ))
00598 self()->mCustHeaderCount = v;
00599 }
00600
00604 static
00605 int custHeaderCount()
00606 {
00607 return self()->mCustHeaderCount;
00608 }
00609
00613 ItemInt *custHeaderCountItem()
00614 {
00615 return mCustHeaderCountItem;
00616 }
00617
00621 static
00622 void setReplyCurrentLanguage( int v )
00623 {
00624 if (!self()->isImmutable( QString::fromLatin1( "ReplyCurrentLanguage" ) ))
00625 self()->mReplyCurrentLanguage = v;
00626 }
00627
00631 static
00632 int replyCurrentLanguage()
00633 {
00634 return self()->mReplyCurrentLanguage;
00635 }
00636
00640 ItemInt *replyCurrentLanguageItem()
00641 {
00642 return mReplyCurrentLanguageItem;
00643 }
00644
00648 static
00649 void setReplyLanguagesCount( int v )
00650 {
00651 if (v < 0)
00652 {
00653 kdDebug() << "setReplyLanguagesCount: value " << v << " is less than the minimum value of 0" << endl;
00654 v = 0;
00655 }
00656 if (!self()->isImmutable( QString::fromLatin1( "ReplyLanguagesCount" ) ))
00657 self()->mReplyLanguagesCount = v;
00658 }
00659
00663 static
00664 int replyLanguagesCount()
00665 {
00666 return self()->mReplyLanguagesCount;
00667 }
00668
00672 ItemInt *replyLanguagesCountItem()
00673 {
00674 return mReplyLanguagesCountItem;
00675 }
00676
00680 static
00681 void setFolderLoadingTimeout( int v )
00682 {
00683 if (!self()->isImmutable( QString::fromLatin1( "FolderLoadingTimeout" ) ))
00684 self()->mFolderLoadingTimeout = v;
00685 }
00686
00690 static
00691 int folderLoadingTimeout()
00692 {
00693 return self()->mFolderLoadingTimeout;
00694 }
00695
00699 ItemInt *folderLoadingTimeoutItem()
00700 {
00701 return mFolderLoadingTimeoutItem;
00702 }
00703
00707 static
00708 void setQuotaUnit( int v )
00709 {
00710 if (!self()->isImmutable( QString::fromLatin1( "QuotaUnit" ) ))
00711 self()->mQuotaUnit = v;
00712 }
00713
00717 static
00718 int quotaUnit()
00719 {
00720 return self()->mQuotaUnit;
00721 }
00722
00726 ItemEnum *quotaUnitItem()
00727 {
00728 return mQuotaUnitItem;
00729 }
00730
00734 static
00735 void setCloseToQuotaThreshold( int v )
00736 {
00737 if (!self()->isImmutable( QString::fromLatin1( "CloseToQuotaThreshold" ) ))
00738 self()->mCloseToQuotaThreshold = v;
00739 }
00740
00744 static
00745 int closeToQuotaThreshold()
00746 {
00747 return self()->mCloseToQuotaThreshold;
00748 }
00749
00753 ItemInt *closeToQuotaThresholdItem()
00754 {
00755 return mCloseToQuotaThresholdItem;
00756 }
00757
00761 static
00762 void setGroupwareEnabled( bool v )
00763 {
00764 if (!self()->isImmutable( QString::fromLatin1( "GroupwareEnabled" ) ))
00765 self()->mGroupwareEnabled = v;
00766 }
00767
00771 static
00772 bool groupwareEnabled()
00773 {
00774 return self()->mGroupwareEnabled;
00775 }
00776
00780 ItemBool *groupwareEnabledItem()
00781 {
00782 return mGroupwareEnabledItem;
00783 }
00784
00788 static
00789 void setLegacyMangleFromToHeaders( bool v )
00790 {
00791 if (!self()->isImmutable( QString::fromLatin1( "LegacyMangleFromToHeaders" ) ))
00792 self()->mLegacyMangleFromToHeaders = v;
00793 }
00794
00798 static
00799 bool legacyMangleFromToHeaders()
00800 {
00801 return self()->mLegacyMangleFromToHeaders;
00802 }
00803
00807 ItemBool *legacyMangleFromToHeadersItem()
00808 {
00809 return mLegacyMangleFromToHeadersItem;
00810 }
00811
00815 static
00816 void setLegacyBodyInvites( bool v )
00817 {
00818 if (!self()->isImmutable( QString::fromLatin1( "LegacyBodyInvites" ) ))
00819 self()->mLegacyBodyInvites = v;
00820 }
00821
00825 static
00826 bool legacyBodyInvites()
00827 {
00828 return self()->mLegacyBodyInvites;
00829 }
00830
00834 ItemBool *legacyBodyInvitesItem()
00835 {
00836 return mLegacyBodyInvitesItem;
00837 }
00838
00842 static
00843 void setExchangeCompatibleInvitations( bool v )
00844 {
00845 if (!self()->isImmutable( QString::fromLatin1( "ExchangeCompatibleInvitations" ) ))
00846 self()->mExchangeCompatibleInvitations = v;
00847 }
00848
00852 static
00853 bool exchangeCompatibleInvitations()
00854 {
00855 return self()->mExchangeCompatibleInvitations;
00856 }
00857
00861 ItemBool *exchangeCompatibleInvitationsItem()
00862 {
00863 return mExchangeCompatibleInvitationsItem;
00864 }
00865
00869 static
00870 void setOutlookCompatibleInvitationReplyComments( bool v )
00871 {
00872 if (!self()->isImmutable( QString::fromLatin1( "OutlookCompatibleInvitationReplyComments" ) ))
00873 self()->mOutlookCompatibleInvitationReplyComments = v;
00874 }
00875
00879 static
00880 bool outlookCompatibleInvitationReplyComments()
00881 {
00882 return self()->mOutlookCompatibleInvitationReplyComments;
00883 }
00884
00888 ItemBool *outlookCompatibleInvitationReplyCommentsItem()
00889 {
00890 return mOutlookCompatibleInvitationReplyCommentsItem;
00891 }
00892
00896 static
00897 void setOutlookCompatibleInvitationComparisons( bool v )
00898 {
00899 if (!self()->isImmutable( QString::fromLatin1( "OutlookCompatibleInvitationComparisons" ) ))
00900 self()->mOutlookCompatibleInvitationComparisons = v;
00901 }
00902
00906 static
00907 bool outlookCompatibleInvitationComparisons()
00908 {
00909 return self()->mOutlookCompatibleInvitationComparisons;
00910 }
00911
00915 ItemBool *outlookCompatibleInvitationComparisonsItem()
00916 {
00917 return mOutlookCompatibleInvitationComparisonsItem;
00918 }
00919
00923 static
00924 void setAutomaticSending( bool v )
00925 {
00926 if (!self()->isImmutable( QString::fromLatin1( "AutomaticSending" ) ))
00927 self()->mAutomaticSending = v;
00928 }
00929
00933 static
00934 bool automaticSending()
00935 {
00936 return self()->mAutomaticSending;
00937 }
00938
00942 ItemBool *automaticSendingItem()
00943 {
00944 return mAutomaticSendingItem;
00945 }
00946
00950 static
00951 void setAskForCommentWhenReactingToInvitation( int v )
00952 {
00953 if (!self()->isImmutable( QString::fromLatin1( "AskForCommentWhenReactingToInvitation" ) ))
00954 self()->mAskForCommentWhenReactingToInvitation = v;
00955 }
00956
00960 static
00961 int askForCommentWhenReactingToInvitation()
00962 {
00963 return self()->mAskForCommentWhenReactingToInvitation;
00964 }
00965
00969 ItemEnum *askForCommentWhenReactingToInvitationItem()
00970 {
00971 return mAskForCommentWhenReactingToInvitationItem;
00972 }
00973
00977 static
00978 void setDeleteInvitationEmailsAfterSendingReply( bool v )
00979 {
00980 if (!self()->isImmutable( QString::fromLatin1( "DeleteInvitationEmailsAfterSendingReply" ) ))
00981 self()->mDeleteInvitationEmailsAfterSendingReply = v;
00982 }
00983
00987 static
00988 bool deleteInvitationEmailsAfterSendingReply()
00989 {
00990 return self()->mDeleteInvitationEmailsAfterSendingReply;
00991 }
00992
00996 ItemBool *deleteInvitationEmailsAfterSendingReplyItem()
00997 {
00998 return mDeleteInvitationEmailsAfterSendingReplyItem;
00999 }
01000
01004 static
01005 void setShowToltecReplacementText( bool v )
01006 {
01007 if (!self()->isImmutable( QString::fromLatin1( "ShowToltecReplacementText" ) ))
01008 self()->mShowToltecReplacementText = v;
01009 }
01010
01014 static
01015 bool showToltecReplacementText()
01016 {
01017 return self()->mShowToltecReplacementText;
01018 }
01019
01023 ItemBool *showToltecReplacementTextItem()
01024 {
01025 return mShowToltecReplacementTextItem;
01026 }
01027
01031 static
01032 void setToltecReplacementText( const QString & v )
01033 {
01034 if (!self()->isImmutable( QString::fromLatin1( "ToltecReplacementText" ) ))
01035 self()->mToltecReplacementText = v;
01036 }
01037
01041 static
01042 QString toltecReplacementText()
01043 {
01044 return self()->mToltecReplacementText;
01045 }
01046
01050 ItemString *toltecReplacementTextItem()
01051 {
01052 return mToltecReplacementTextItem;
01053 }
01054
01058 static
01059 void setTheIMAPResourceEnabled( bool v )
01060 {
01061 if (!self()->isImmutable( QString::fromLatin1( "TheIMAPResourceEnabled" ) ))
01062 self()->mTheIMAPResourceEnabled = v;
01063 }
01064
01068 static
01069 bool theIMAPResourceEnabled()
01070 {
01071 return self()->mTheIMAPResourceEnabled;
01072 }
01073
01077 ItemBool *theIMAPResourceEnabledItem()
01078 {
01079 return mTheIMAPResourceEnabledItem;
01080 }
01081
01085 static
01086 void setHideGroupwareFolders( bool v )
01087 {
01088 if (!self()->isImmutable( QString::fromLatin1( "HideGroupwareFolders" ) ))
01089 self()->mHideGroupwareFolders = v;
01090 }
01091
01095 static
01096 bool hideGroupwareFolders()
01097 {
01098 return self()->mHideGroupwareFolders;
01099 }
01100
01104 ItemBool *hideGroupwareFoldersItem()
01105 {
01106 return mHideGroupwareFoldersItem;
01107 }
01108
01112 static
01113 void setShowOnlyGroupwareFoldersForGroupwareAccount( bool v )
01114 {
01115 if (!self()->isImmutable( QString::fromLatin1( "ShowOnlyGroupwareFoldersForGroupwareAccount" ) ))
01116 self()->mShowOnlyGroupwareFoldersForGroupwareAccount = v;
01117 }
01118
01122 static
01123 bool showOnlyGroupwareFoldersForGroupwareAccount()
01124 {
01125 return self()->mShowOnlyGroupwareFoldersForGroupwareAccount;
01126 }
01127
01131 ItemBool *showOnlyGroupwareFoldersForGroupwareAccountItem()
01132 {
01133 return mShowOnlyGroupwareFoldersForGroupwareAccountItem;
01134 }
01135
01139 static
01140 void setTheIMAPResourceStorageFormat( int v )
01141 {
01142 if (!self()->isImmutable( QString::fromLatin1( "TheIMAPResourceStorageFormat" ) ))
01143 self()->mTheIMAPResourceStorageFormat = v;
01144 }
01145
01149 static
01150 int theIMAPResourceStorageFormat()
01151 {
01152 return self()->mTheIMAPResourceStorageFormat;
01153 }
01154
01158 ItemEnum *theIMAPResourceStorageFormatItem()
01159 {
01160 return mTheIMAPResourceStorageFormatItem;
01161 }
01162
01166 static
01167 void setTheIMAPResourceFolderParent( const QString & v )
01168 {
01169 if (!self()->isImmutable( QString::fromLatin1( "TheIMAPResourceFolderParent" ) ))
01170 self()->mTheIMAPResourceFolderParent = v;
01171 }
01172
01176 static
01177 QString theIMAPResourceFolderParent()
01178 {
01179 return self()->mTheIMAPResourceFolderParent;
01180 }
01181
01185 ItemString *theIMAPResourceFolderParentItem()
01186 {
01187 return mTheIMAPResourceFolderParentItem;
01188 }
01189
01193 static
01194 void setTheIMAPResourceAccount( int v )
01195 {
01196 if (!self()->isImmutable( QString::fromLatin1( "TheIMAPResourceAccount" ) ))
01197 self()->mTheIMAPResourceAccount = v;
01198 }
01199
01203 static
01204 int theIMAPResourceAccount()
01205 {
01206 return self()->mTheIMAPResourceAccount;
01207 }
01208
01212 ItemInt *theIMAPResourceAccountItem()
01213 {
01214 return mTheIMAPResourceAccountItem;
01215 }
01216
01220 static
01221 void setTheIMAPResourceFolderLanguage( int v )
01222 {
01223 if (!self()->isImmutable( QString::fromLatin1( "TheIMAPResourceFolderLanguage" ) ))
01224 self()->mTheIMAPResourceFolderLanguage = v;
01225 }
01226
01230 static
01231 int theIMAPResourceFolderLanguage()
01232 {
01233 return self()->mTheIMAPResourceFolderLanguage;
01234 }
01235
01239 ItemInt *theIMAPResourceFolderLanguageItem()
01240 {
01241 return mTheIMAPResourceFolderLanguageItem;
01242 }
01243
01247 static
01248 void setFilterGroupwareFolders( bool v )
01249 {
01250 if (!self()->isImmutable( QString::fromLatin1( "FilterGroupwareFolders" ) ))
01251 self()->mFilterGroupwareFolders = v;
01252 }
01253
01257 static
01258 bool filterGroupwareFolders()
01259 {
01260 return self()->mFilterGroupwareFolders;
01261 }
01262
01266 ItemBool *filterGroupwareFoldersItem()
01267 {
01268 return mFilterGroupwareFoldersItem;
01269 }
01270
01274 static
01275 void setFilterSourceFolders( const QValueList<int> & v )
01276 {
01277 if (!self()->isImmutable( QString::fromLatin1( "FilterSourceFolders" ) ))
01278 self()->mFilterSourceFolders = v;
01279 }
01280
01284 static
01285 QValueList<int> filterSourceFolders()
01286 {
01287 return self()->mFilterSourceFolders;
01288 }
01289
01293 ItemIntList *filterSourceFoldersItem()
01294 {
01295 return mFilterSourceFoldersItem;
01296 }
01297
01301 static
01302 void setImmediatlySyncDIMAPOnGroupwareChanges( bool v )
01303 {
01304 if (!self()->isImmutable( QString::fromLatin1( "ImmediatlySyncDIMAPOnGroupwareChanges" ) ))
01305 self()->mImmediatlySyncDIMAPOnGroupwareChanges = v;
01306 }
01307
01311 static
01312 bool immediatlySyncDIMAPOnGroupwareChanges()
01313 {
01314 return self()->mImmediatlySyncDIMAPOnGroupwareChanges;
01315 }
01316
01320 ItemBool *immediatlySyncDIMAPOnGroupwareChangesItem()
01321 {
01322 return mImmediatlySyncDIMAPOnGroupwareChangesItem;
01323 }
01324
01328 static
01329 void setMsgDictSizeHint( int v )
01330 {
01331 if (!self()->isImmutable( QString::fromLatin1( "MsgDictSizeHint" ) ))
01332 self()->mMsgDictSizeHint = v;
01333 }
01334
01338 static
01339 int msgDictSizeHint()
01340 {
01341 return self()->mMsgDictSizeHint;
01342 }
01343
01347 ItemInt *msgDictSizeHintItem()
01348 {
01349 return mMsgDictSizeHintItem;
01350 }
01351
01355 static
01356 void setPreviousNewFeaturesMD5( const QString & v )
01357 {
01358 if (!self()->isImmutable( QString::fromLatin1( "PreviousNewFeaturesMD5" ) ))
01359 self()->mPreviousNewFeaturesMD5 = v;
01360 }
01361
01365 static
01366 QString previousNewFeaturesMD5()
01367 {
01368 return self()->mPreviousNewFeaturesMD5;
01369 }
01370
01374 ItemString *previousNewFeaturesMD5Item()
01375 {
01376 return mPreviousNewFeaturesMD5Item;
01377 }
01378
01382 static
01383 void setMaxConnectionsPerHost( int v )
01384 {
01385 if (v < 0)
01386 {
01387 kdDebug() << "setMaxConnectionsPerHost: value " << v << " is less than the minimum value of 0" << endl;
01388 v = 0;
01389 }
01390 if (!self()->isImmutable( QString::fromLatin1( "MaxConnectionsPerHost" ) ))
01391 self()->mMaxConnectionsPerHost = v;
01392 }
01393
01397 static
01398 int maxConnectionsPerHost()
01399 {
01400 return self()->mMaxConnectionsPerHost;
01401 }
01402
01406 ItemInt *maxConnectionsPerHostItem()
01407 {
01408 return mMaxConnectionsPerHostItem;
01409 }
01410
01414 static
01415 void setQuickSearchActive( bool v )
01416 {
01417 if (!self()->isImmutable( QString::fromLatin1( "QuickSearchActive" ) ))
01418 self()->mQuickSearchActive = v;
01419 }
01420
01424 static
01425 bool quickSearchActive()
01426 {
01427 return self()->mQuickSearchActive;
01428 }
01429
01433 ItemBool *quickSearchActiveItem()
01434 {
01435 return mQuickSearchActiveItem;
01436 }
01437
01441 static
01442 void setHideLocalInbox( bool v )
01443 {
01444 if (!self()->isImmutable( QString::fromLatin1( "HideLocalInbox" ) ))
01445 self()->mHideLocalInbox = v;
01446 }
01447
01451 static
01452 bool hideLocalInbox()
01453 {
01454 return self()->mHideLocalInbox;
01455 }
01456
01460 ItemBool *hideLocalInboxItem()
01461 {
01462 return mHideLocalInboxItem;
01463 }
01464
01468 static
01469 void setForwardingInlineByDefault( bool v )
01470 {
01471 if (!self()->isImmutable( QString::fromLatin1( "ForwardingInlineByDefault" ) ))
01472 self()->mForwardingInlineByDefault = v;
01473 }
01474
01478 static
01479 bool forwardingInlineByDefault()
01480 {
01481 return self()->mForwardingInlineByDefault;
01482 }
01483
01487 ItemBool *forwardingInlineByDefaultItem()
01488 {
01489 return mForwardingInlineByDefaultItem;
01490 }
01491
01495 static
01496 void setAllowSemicolonAsAddressSeparator( bool v )
01497 {
01498 if (!self()->isImmutable( QString::fromLatin1( "AllowSemicolonAsAddressSeparator" ) ))
01499 self()->mAllowSemicolonAsAddressSeparator = v;
01500 }
01501
01505 static
01506 bool allowSemicolonAsAddressSeparator()
01507 {
01508 return self()->mAllowSemicolonAsAddressSeparator;
01509 }
01510
01514 ItemBool *allowSemicolonAsAddressSeparatorItem()
01515 {
01516 return mAllowSemicolonAsAddressSeparatorItem;
01517 }
01518
01522 static
01523 void setForceReplyCharset( bool v )
01524 {
01525 if (!self()->isImmutable( QString::fromLatin1( "ForceReplyCharset" ) ))
01526 self()->mForceReplyCharset = v;
01527 }
01528
01532 static
01533 bool forceReplyCharset()
01534 {
01535 return self()->mForceReplyCharset;
01536 }
01537
01541 ItemBool *forceReplyCharsetItem()
01542 {
01543 return mForceReplyCharsetItem;
01544 }
01545
01549 static
01550 void setAutoTextSignature( const QString & v )
01551 {
01552 if (!self()->isImmutable( QString::fromLatin1( "AutoTextSignature" ) ))
01553 self()->mAutoTextSignature = v;
01554 }
01555
01559 static
01560 QString autoTextSignature()
01561 {
01562 return self()->mAutoTextSignature;
01563 }
01564
01568 ItemString *autoTextSignatureItem()
01569 {
01570 return mAutoTextSignatureItem;
01571 }
01572
01576 static
01577 void setStickyIdentity( bool v )
01578 {
01579 if (!self()->isImmutable( QString::fromLatin1( "StickyIdentity" ) ))
01580 self()->mStickyIdentity = v;
01581 }
01582
01586 static
01587 bool stickyIdentity()
01588 {
01589 return self()->mStickyIdentity;
01590 }
01591
01595 ItemBool *stickyIdentityItem()
01596 {
01597 return mStickyIdentityItem;
01598 }
01599
01603 static
01604 void setStickyFcc( bool v )
01605 {
01606 if (!self()->isImmutable( QString::fromLatin1( "StickyFcc" ) ))
01607 self()->mStickyFcc = v;
01608 }
01609
01613 static
01614 bool stickyFcc()
01615 {
01616 return self()->mStickyFcc;
01617 }
01618
01622 ItemBool *stickyFccItem()
01623 {
01624 return mStickyFccItem;
01625 }
01626
01630 static
01631 void setStickyTransport( bool v )
01632 {
01633 if (!self()->isImmutable( QString::fromLatin1( "StickyTransport" ) ))
01634 self()->mStickyTransport = v;
01635 }
01636
01640 static
01641 bool stickyTransport()
01642 {
01643 return self()->mStickyTransport;
01644 }
01645
01649 ItemBool *stickyTransportItem()
01650 {
01651 return mStickyTransportItem;
01652 }
01653
01657 static
01658 void setStickyDictionary( bool v )
01659 {
01660 if (!self()->isImmutable( QString::fromLatin1( "StickyDictionary" ) ))
01661 self()->mStickyDictionary = v;
01662 }
01663
01667 static
01668 bool stickyDictionary()
01669 {
01670 return self()->mStickyDictionary;
01671 }
01672
01676 ItemBool *stickyDictionaryItem()
01677 {
01678 return mStickyDictionaryItem;
01679 }
01680
01684 static
01685 void setWordWrap( bool v )
01686 {
01687 if (!self()->isImmutable( QString::fromLatin1( "WordWrap" ) ))
01688 self()->mWordWrap = v;
01689 }
01690
01694 static
01695 bool wordWrap()
01696 {
01697 return self()->mWordWrap;
01698 }
01699
01703 ItemBool *wordWrapItem()
01704 {
01705 return mWordWrapItem;
01706 }
01707
01711 static
01712 void setUseFixedFont( bool v )
01713 {
01714 if (!self()->isImmutable( QString::fromLatin1( "UseFixedFont" ) ))
01715 self()->mUseFixedFont = v;
01716 }
01717
01721 static
01722 bool useFixedFont()
01723 {
01724 return self()->mUseFixedFont;
01725 }
01726
01730 ItemBool *useFixedFontItem()
01731 {
01732 return mUseFixedFontItem;
01733 }
01734
01738 static
01739 void setLineWrapWidth( int v )
01740 {
01741 if (v < 30)
01742 {
01743 kdDebug() << "setLineWrapWidth: value " << v << " is less than the minimum value of 30" << endl;
01744 v = 30;
01745 }
01746
01747 if (v > 255)
01748 {
01749 kdDebug() << "setLineWrapWidth: value " << v << " is greater than the maximum value of 255" << endl;
01750 v = 255;
01751 }
01752
01753 if (!self()->isImmutable( QString::fromLatin1( "LineWrapWidth" ) ))
01754 self()->mLineWrapWidth = v;
01755 }
01756
01760 static
01761 int lineWrapWidth()
01762 {
01763 return self()->mLineWrapWidth;
01764 }
01765
01769 ItemInt *lineWrapWidthItem()
01770 {
01771 return mLineWrapWidthItem;
01772 }
01773
01777 static
01778 void setTooManyRecipients( bool v )
01779 {
01780 if (!self()->isImmutable( QString::fromLatin1( "TooManyRecipients" ) ))
01781 self()->mTooManyRecipients = v;
01782 }
01783
01787 static
01788 bool tooManyRecipients()
01789 {
01790 return self()->mTooManyRecipients;
01791 }
01792
01796 ItemBool *tooManyRecipientsItem()
01797 {
01798 return mTooManyRecipientsItem;
01799 }
01800
01804 static
01805 void setRecipientThreshold( int v )
01806 {
01807 if (v < 1)
01808 {
01809 kdDebug() << "setRecipientThreshold: value " << v << " is less than the minimum value of 1" << endl;
01810 v = 1;
01811 }
01812
01813 if (v > 100)
01814 {
01815 kdDebug() << "setRecipientThreshold: value " << v << " is greater than the maximum value of 100" << endl;
01816 v = 100;
01817 }
01818
01819 if (!self()->isImmutable( QString::fromLatin1( "RecipientThreshold" ) ))
01820 self()->mRecipientThreshold = v;
01821 }
01822
01826 static
01827 int recipientThreshold()
01828 {
01829 return self()->mRecipientThreshold;
01830 }
01831
01835 ItemInt *recipientThresholdItem()
01836 {
01837 return mRecipientThresholdItem;
01838 }
01839
01843 static
01844 void setPreviousIdentity( uint v )
01845 {
01846 if (!self()->isImmutable( QString::fromLatin1( "PreviousIdentity" ) ))
01847 self()->mPreviousIdentity = v;
01848 }
01849
01853 static
01854 uint previousIdentity()
01855 {
01856 return self()->mPreviousIdentity;
01857 }
01858
01862 ItemUInt *previousIdentityItem()
01863 {
01864 return mPreviousIdentityItem;
01865 }
01866
01870 static
01871 void setPreviousFcc( const QString & v )
01872 {
01873 if (!self()->isImmutable( QString::fromLatin1( "PreviousFcc" ) ))
01874 self()->mPreviousFcc = v;
01875 }
01876
01880 static
01881 QString previousFcc()
01882 {
01883 return self()->mPreviousFcc;
01884 }
01885
01889 ItemString *previousFccItem()
01890 {
01891 return mPreviousFccItem;
01892 }
01893
01897 static
01898 void setPreviousDictionary( const QString & v )
01899 {
01900 if (!self()->isImmutable( QString::fromLatin1( "PreviousDictionary" ) ))
01901 self()->mPreviousDictionary = v;
01902 }
01903
01907 static
01908 QString previousDictionary()
01909 {
01910 return self()->mPreviousDictionary;
01911 }
01912
01916 ItemString *previousDictionaryItem()
01917 {
01918 return mPreviousDictionaryItem;
01919 }
01920
01924 static
01925 void setTransportHistory( const QStringList & v )
01926 {
01927 if (!self()->isImmutable( QString::fromLatin1( "TransportHistory" ) ))
01928 self()->mTransportHistory = v;
01929 }
01930
01934 static
01935 QStringList transportHistory()
01936 {
01937 return self()->mTransportHistory;
01938 }
01939
01943 ItemStringList *transportHistoryItem()
01944 {
01945 return mTransportHistoryItem;
01946 }
01947
01951 static
01952 void setCurrentTransport( const QString & v )
01953 {
01954 if (!self()->isImmutable( QString::fromLatin1( "CurrentTransport" ) ))
01955 self()->mCurrentTransport = v;
01956 }
01957
01961 static
01962 QString currentTransport()
01963 {
01964 return self()->mCurrentTransport;
01965 }
01966
01970 ItemString *currentTransportItem()
01971 {
01972 return mCurrentTransportItem;
01973 }
01974
01978 static
01979 void setDefaultTransport( const QString & v )
01980 {
01981 if (!self()->isImmutable( QString::fromLatin1( "DefaultTransport" ) ))
01982 self()->mDefaultTransport = v;
01983 }
01984
01988 static
01989 QString defaultTransport()
01990 {
01991 return self()->mDefaultTransport;
01992 }
01993
01997 ItemString *defaultTransportItem()
01998 {
01999 return mDefaultTransportItem;
02000 }
02001
02005 static
02006 void setMaxTransportEntries( int v )
02007 {
02008 if (!self()->isImmutable( QString::fromLatin1( "MaxTransportEntries" ) ))
02009 self()->mMaxTransportEntries = v;
02010 }
02011
02015 static
02016 int maxTransportEntries()
02017 {
02018 return self()->mMaxTransportEntries;
02019 }
02020
02024 ItemInt *maxTransportEntriesItem()
02025 {
02026 return mMaxTransportEntriesItem;
02027 }
02028
02032 static
02033 void setOutlookCompatibleAttachments( bool v )
02034 {
02035 if (!self()->isImmutable( QString::fromLatin1( "OutlookCompatibleAttachments" ) ))
02036 self()->mOutlookCompatibleAttachments = v;
02037 }
02038
02042 static
02043 bool outlookCompatibleAttachments()
02044 {
02045 return self()->mOutlookCompatibleAttachments;
02046 }
02047
02051 ItemBool *outlookCompatibleAttachmentsItem()
02052 {
02053 return mOutlookCompatibleAttachmentsItem;
02054 }
02055
02059 static
02060 void setUseHtmlMarkup( bool v )
02061 {
02062 if (!self()->isImmutable( QString::fromLatin1( "UseHtmlMarkup" ) ))
02063 self()->mUseHtmlMarkup = v;
02064 }
02065
02069 static
02070 bool useHtmlMarkup()
02071 {
02072 return self()->mUseHtmlMarkup;
02073 }
02074
02078 ItemBool *useHtmlMarkupItem()
02079 {
02080 return mUseHtmlMarkupItem;
02081 }
02082
02086 static
02087 void setPgpAutoSign( bool v )
02088 {
02089 if (!self()->isImmutable( QString::fromLatin1( "PgpAutoSign" ) ))
02090 self()->mPgpAutoSign = v;
02091 }
02092
02096 static
02097 bool pgpAutoSign()
02098 {
02099 return self()->mPgpAutoSign;
02100 }
02101
02105 ItemBool *pgpAutoSignItem()
02106 {
02107 return mPgpAutoSignItem;
02108 }
02109
02113 static
02114 void setPgpAutoEncrypt( bool v )
02115 {
02116 if (!self()->isImmutable( QString::fromLatin1( "PgpAutoEncrypt" ) ))
02117 self()->mPgpAutoEncrypt = v;
02118 }
02119
02123 static
02124 bool pgpAutoEncrypt()
02125 {
02126 return self()->mPgpAutoEncrypt;
02127 }
02128
02132 ItemBool *pgpAutoEncryptItem()
02133 {
02134 return mPgpAutoEncryptItem;
02135 }
02136
02140 static
02141 void setNeverEncryptDrafts( bool v )
02142 {
02143 if (!self()->isImmutable( QString::fromLatin1( "NeverEncryptDrafts" ) ))
02144 self()->mNeverEncryptDrafts = v;
02145 }
02146
02150 static
02151 bool neverEncryptDrafts()
02152 {
02153 return self()->mNeverEncryptDrafts;
02154 }
02155
02159 ItemBool *neverEncryptDraftsItem()
02160 {
02161 return mNeverEncryptDraftsItem;
02162 }
02163
02167 static
02168 void setChiasmusKey( const QString & v )
02169 {
02170 if (!self()->isImmutable( QString::fromLatin1( "ChiasmusKey" ) ))
02171 self()->mChiasmusKey = v;
02172 }
02173
02177 static
02178 QString chiasmusKey()
02179 {
02180 return self()->mChiasmusKey;
02181 }
02182
02186 ItemString *chiasmusKeyItem()
02187 {
02188 return mChiasmusKeyItem;
02189 }
02190
02194 static
02195 void setChiasmusOptions( const QString & v )
02196 {
02197 if (!self()->isImmutable( QString::fromLatin1( "ChiasmusOptions" ) ))
02198 self()->mChiasmusOptions = v;
02199 }
02200
02204 static
02205 QString chiasmusOptions()
02206 {
02207 return self()->mChiasmusOptions;
02208 }
02209
02213 ItemString *chiasmusOptionsItem()
02214 {
02215 return mChiasmusOptionsItem;
02216 }
02217
02221 static
02222 void setConfirmBeforeSend( bool v )
02223 {
02224 if (!self()->isImmutable( QString::fromLatin1( "ConfirmBeforeSend" ) ))
02225 self()->mConfirmBeforeSend = v;
02226 }
02227
02231 static
02232 bool confirmBeforeSend()
02233 {
02234 return self()->mConfirmBeforeSend;
02235 }
02236
02240 ItemBool *confirmBeforeSendItem()
02241 {
02242 return mConfirmBeforeSendItem;
02243 }
02244
02248 static
02249 void setRequestMDN( bool v )
02250 {
02251 if (!self()->isImmutable( QString::fromLatin1( "RequestMDN" ) ))
02252 self()->mRequestMDN = v;
02253 }
02254
02258 static
02259 bool requestMDN()
02260 {
02261 return self()->mRequestMDN;
02262 }
02263
02267 ItemBool *requestMDNItem()
02268 {
02269 return mRequestMDNItem;
02270 }
02271
02275 static
02276 void setShowRecentAddressesInComposer( bool v )
02277 {
02278 if (!self()->isImmutable( QString::fromLatin1( "ShowRecentAddressesInComposer" ) ))
02279 self()->mShowRecentAddressesInComposer = v;
02280 }
02281
02285 static
02286 bool showRecentAddressesInComposer()
02287 {
02288 return self()->mShowRecentAddressesInComposer;
02289 }
02290
02294 ItemBool *showRecentAddressesInComposerItem()
02295 {
02296 return mShowRecentAddressesInComposerItem;
02297 }
02298
02302 static
02303 void setHeaders( int v )
02304 {
02305 if (!self()->isImmutable( QString::fromLatin1( "Headers" ) ))
02306 self()->mHeaders = v;
02307 }
02308
02312 static
02313 int headers()
02314 {
02315 return self()->mHeaders;
02316 }
02317
02321 ItemInt *headersItem()
02322 {
02323 return mHeadersItem;
02324 }
02325
02329 static
02330 void setCompletionMode( int v )
02331 {
02332 if (!self()->isImmutable( QString::fromLatin1( "CompletionMode" ) ))
02333 self()->mCompletionMode = v;
02334 }
02335
02339 static
02340 int completionMode()
02341 {
02342 return self()->mCompletionMode;
02343 }
02344
02348 ItemInt *completionModeItem()
02349 {
02350 return mCompletionModeItem;
02351 }
02352
02356 static
02357 void setAutoSpellChecking( bool v )
02358 {
02359 if (!self()->isImmutable( QString::fromLatin1( "AutoSpellChecking" ) ))
02360 self()->mAutoSpellChecking = v;
02361 }
02362
02366 static
02367 bool autoSpellChecking()
02368 {
02369 return self()->mAutoSpellChecking;
02370 }
02371
02375 ItemBool *autoSpellCheckingItem()
02376 {
02377 return mAutoSpellCheckingItem;
02378 }
02379
02383 static
02384 void setShowForgottenAttachmentWarning( bool v )
02385 {
02386 if (!self()->isImmutable( QString::fromLatin1( "ShowForgottenAttachmentWarning" ) ))
02387 self()->mShowForgottenAttachmentWarning = v;
02388 }
02389
02393 static
02394 bool showForgottenAttachmentWarning()
02395 {
02396 return self()->mShowForgottenAttachmentWarning;
02397 }
02398
02402 ItemBool *showForgottenAttachmentWarningItem()
02403 {
02404 return mShowForgottenAttachmentWarningItem;
02405 }
02406
02410 static
02411 void setAttachmentKeywords( const QStringList & v )
02412 {
02413 if (!self()->isImmutable( QString::fromLatin1( "AttachmentKeywords" ) ))
02414 self()->mAttachmentKeywords = v;
02415 }
02416
02420 static
02421 QStringList attachmentKeywords()
02422 {
02423 return self()->mAttachmentKeywords;
02424 }
02425
02429 ItemStringList *attachmentKeywordsItem()
02430 {
02431 return mAttachmentKeywordsItem;
02432 }
02433
02437 static
02438 void setShowMessagePartDialogOnAttach( bool v )
02439 {
02440 if (!self()->isImmutable( QString::fromLatin1( "ShowMessagePartDialogOnAttach" ) ))
02441 self()->mShowMessagePartDialogOnAttach = v;
02442 }
02443
02447 static
02448 bool showMessagePartDialogOnAttach()
02449 {
02450 return self()->mShowMessagePartDialogOnAttach;
02451 }
02452
02456 ItemBool *showMessagePartDialogOnAttachItem()
02457 {
02458 return mShowMessagePartDialogOnAttachItem;
02459 }
02460
02464 static
02465 void setAutosaveInterval( int v )
02466 {
02467 if (!self()->isImmutable( QString::fromLatin1( "AutosaveInterval" ) ))
02468 self()->mAutosaveInterval = v;
02469 }
02470
02474 static
02475 int autosaveInterval()
02476 {
02477 return self()->mAutosaveInterval;
02478 }
02479
02483 ItemInt *autosaveIntervalItem()
02484 {
02485 return mAutosaveIntervalItem;
02486 }
02487
02491 static
02492 void setPrependSignature( bool v )
02493 {
02494 if (!self()->isImmutable( QString::fromLatin1( "PrependSignature" ) ))
02495 self()->mPrependSignature = v;
02496 }
02497
02501 static
02502 bool prependSignature()
02503 {
02504 return self()->mPrependSignature;
02505 }
02506
02510 ItemBool *prependSignatureItem()
02511 {
02512 return mPrependSignatureItem;
02513 }
02514
02518 static
02519 void setReplyPrefixes( const QStringList & v )
02520 {
02521 if (!self()->isImmutable( QString::fromLatin1( "ReplyPrefixes" ) ))
02522 self()->mReplyPrefixes = v;
02523 }
02524
02528 static
02529 QStringList replyPrefixes()
02530 {
02531 return self()->mReplyPrefixes;
02532 }
02533
02537 ItemStringList *replyPrefixesItem()
02538 {
02539 return mReplyPrefixesItem;
02540 }
02541
02545 static
02546 void setReplaceReplyPrefix( bool v )
02547 {
02548 if (!self()->isImmutable( QString::fromLatin1( "ReplaceReplyPrefix" ) ))
02549 self()->mReplaceReplyPrefix = v;
02550 }
02551
02555 static
02556 bool replaceReplyPrefix()
02557 {
02558 return self()->mReplaceReplyPrefix;
02559 }
02560
02564 ItemBool *replaceReplyPrefixItem()
02565 {
02566 return mReplaceReplyPrefixItem;
02567 }
02568
02572 static
02573 void setForwardPrefixes( const QStringList & v )
02574 {
02575 if (!self()->isImmutable( QString::fromLatin1( "ForwardPrefixes" ) ))
02576 self()->mForwardPrefixes = v;
02577 }
02578
02582 static
02583 QStringList forwardPrefixes()
02584 {
02585 return self()->mForwardPrefixes;
02586 }
02587
02591 ItemStringList *forwardPrefixesItem()
02592 {
02593 return mForwardPrefixesItem;
02594 }
02595
02599 static
02600 void setReplaceForwardPrefix( bool v )
02601 {
02602 if (!self()->isImmutable( QString::fromLatin1( "ReplaceForwardPrefix" ) ))
02603 self()->mReplaceForwardPrefix = v;
02604 }
02605
02609 static
02610 bool replaceForwardPrefix()
02611 {
02612 return self()->mReplaceForwardPrefix;
02613 }
02614
02618 ItemBool *replaceForwardPrefixItem()
02619 {
02620 return mReplaceForwardPrefixItem;
02621 }
02622
02626 static
02627 void setSmartQuote( bool v )
02628 {
02629 if (!self()->isImmutable( QString::fromLatin1( "SmartQuote" ) ))
02630 self()->mSmartQuote = v;
02631 }
02632
02636 static
02637 bool smartQuote()
02638 {
02639 return self()->mSmartQuote;
02640 }
02641
02645 ItemBool *smartQuoteItem()
02646 {
02647 return mSmartQuoteItem;
02648 }
02649
02653 static
02654 void setStripSignature( bool v )
02655 {
02656 if (!self()->isImmutable( QString::fromLatin1( "StripSignature" ) ))
02657 self()->mStripSignature = v;
02658 }
02659
02663 static
02664 bool stripSignature()
02665 {
02666 return self()->mStripSignature;
02667 }
02668
02672 ItemBool *stripSignatureItem()
02673 {
02674 return mStripSignatureItem;
02675 }
02676
02680 static
02681 void setQuoteSelectionOnly( bool v )
02682 {
02683 if (!self()->isImmutable( QString::fromLatin1( "QuoteSelectionOnly" ) ))
02684 self()->mQuoteSelectionOnly = v;
02685 }
02686
02690 static
02691 bool quoteSelectionOnly()
02692 {
02693 return self()->mQuoteSelectionOnly;
02694 }
02695
02699 ItemBool *quoteSelectionOnlyItem()
02700 {
02701 return mQuoteSelectionOnlyItem;
02702 }
02703
02707 static
02708 void setAddresseeSelectorType( int v )
02709 {
02710 if (!self()->isImmutable( QString::fromLatin1( "AddresseeSelectorType" ) ))
02711 self()->mAddresseeSelectorType = v;
02712 }
02713
02717 static
02718 int addresseeSelectorType()
02719 {
02720 return self()->mAddresseeSelectorType;
02721 }
02722
02726 ItemEnum *addresseeSelectorTypeItem()
02727 {
02728 return mAddresseeSelectorTypeItem;
02729 }
02730
02734 static
02735 void setRecipientsEditorType( int v )
02736 {
02737 if (!self()->isImmutable( QString::fromLatin1( "RecipientsEditorType" ) ))
02738 self()->mRecipientsEditorType = v;
02739 }
02740
02744 static
02745 int recipientsEditorType()
02746 {
02747 return self()->mRecipientsEditorType;
02748 }
02749
02753 ItemEnum *recipientsEditorTypeItem()
02754 {
02755 return mRecipientsEditorTypeItem;
02756 }
02757
02761 static
02762 void setSecondRecipientTypeDefault( int v )
02763 {
02764 if (!self()->isImmutable( QString::fromLatin1( "SecondRecipientTypeDefault" ) ))
02765 self()->mSecondRecipientTypeDefault = v;
02766 }
02767
02771 static
02772 int secondRecipientTypeDefault()
02773 {
02774 return self()->mSecondRecipientTypeDefault;
02775 }
02776
02780 ItemEnum *secondRecipientTypeDefaultItem()
02781 {
02782 return mSecondRecipientTypeDefaultItem;
02783 }
02784
02788 static
02789 void setMaximumRecipients( int v )
02790 {
02791 if (!self()->isImmutable( QString::fromLatin1( "MaximumRecipients" ) ))
02792 self()->mMaximumRecipients = v;
02793 }
02794
02798 static
02799 int maximumRecipients()
02800 {
02801 return self()->mMaximumRecipients;
02802 }
02803
02807 ItemInt *maximumRecipientsItem()
02808 {
02809 return mMaximumRecipientsItem;
02810 }
02811
02815 static
02816 void setCustomTemplates( const QStringList & v )
02817 {
02818 if (!self()->isImmutable( QString::fromLatin1( "CustomTemplates" ) ))
02819 self()->mCustomTemplates = v;
02820 }
02821
02825 static
02826 QStringList customTemplates()
02827 {
02828 return self()->mCustomTemplates;
02829 }
02830
02834 ItemStringList *customTemplatesItem()
02835 {
02836 return mCustomTemplatesItem;
02837 }
02838
02842 static
02843 void setMimetypesToStripWhenInlineForwarding( const QStringList & v )
02844 {
02845 if (!self()->isImmutable( QString::fromLatin1( "MimetypesToStripWhenInlineForwarding" ) ))
02846 self()->mMimetypesToStripWhenInlineForwarding = v;
02847 }
02848
02852 static
02853 QStringList mimetypesToStripWhenInlineForwarding()
02854 {
02855 return self()->mMimetypesToStripWhenInlineForwarding;
02856 }
02857
02861 ItemStringList *mimetypesToStripWhenInlineForwardingItem()
02862 {
02863 return mMimetypesToStripWhenInlineForwardingItem;
02864 }
02865
02869 static
02870 void setMaximumAttachmentSize( int v )
02871 {
02872 if (!self()->isImmutable( QString::fromLatin1( "MaximumAttachmentSize" ) ))
02873 self()->mMaximumAttachmentSize = v;
02874 }
02875
02879 static
02880 int maximumAttachmentSize()
02881 {
02882 return self()->mMaximumAttachmentSize;
02883 }
02884
02888 ItemInt *maximumAttachmentSizeItem()
02889 {
02890 return mMaximumAttachmentSizeItem;
02891 }
02892
02896 static
02897 void setShowSnippetManager( bool v )
02898 {
02899 if (!self()->isImmutable( QString::fromLatin1( "ShowSnippetManager" ) ))
02900 self()->mShowSnippetManager = v;
02901 }
02902
02906 static
02907 bool showSnippetManager()
02908 {
02909 return self()->mShowSnippetManager;
02910 }
02911
02915 ItemBool *showSnippetManagerItem()
02916 {
02917 return mShowSnippetManagerItem;
02918 }
02919
02923 static
02924 void setSnippetSplitterPosition( const QValueList<int> & v )
02925 {
02926 if (!self()->isImmutable( QString::fromLatin1( "SnippetSplitterPosition" ) ))
02927 self()->mSnippetSplitterPosition = v;
02928 }
02929
02933 static
02934 QValueList<int> snippetSplitterPosition()
02935 {
02936 return self()->mSnippetSplitterPosition;
02937 }
02938
02942 ItemIntList *snippetSplitterPositionItem()
02943 {
02944 return mSnippetSplitterPositionItem;
02945 }
02946
02950 static
02951 void setShowGnuPGAuditLogAfterSuccessfulSignEncrypt( bool v )
02952 {
02953 if (!self()->isImmutable( QString::fromLatin1( "ShowGnuPGAuditLogAfterSuccessfulSignEncrypt" ) ))
02954 self()->mShowGnuPGAuditLogAfterSuccessfulSignEncrypt = v;
02955 }
02956
02960 static
02961 bool showGnuPGAuditLogAfterSuccessfulSignEncrypt()
02962 {
02963 return self()->mShowGnuPGAuditLogAfterSuccessfulSignEncrypt;
02964 }
02965
02969 ItemBool *showGnuPGAuditLogAfterSuccessfulSignEncryptItem()
02970 {
02971 return mShowGnuPGAuditLogAfterSuccessfulSignEncryptItem;
02972 }
02973
02977 static
02978 void setUseDefaultFonts( bool v )
02979 {
02980 if (!self()->isImmutable( QString::fromLatin1( "UseDefaultFonts" ) ))
02981 self()->mUseDefaultFonts = v;
02982 }
02983
02987 static
02988 bool useDefaultFonts()
02989 {
02990 return self()->mUseDefaultFonts;
02991 }
02992
02996 ItemBool *useDefaultFontsItem()
02997 {
02998 return mUseDefaultFontsItem;
02999 }
03000
03004 static
03005 void setComposerFont( const QFont & v )
03006 {
03007 if (!self()->isImmutable( QString::fromLatin1( "ComposerFont" ) ))
03008 self()->mComposerFont = v;
03009 }
03010
03014 static
03015 QFont composerFont()
03016 {
03017 return self()->mComposerFont;
03018 }
03019
03023 ItemFont *composerFontItem()
03024 {
03025 return mComposerFontItem;
03026 }
03027
03031 static
03032 void setFixedFont( const QFont & v )
03033 {
03034 if (!self()->isImmutable( QString::fromLatin1( "FixedFont" ) ))
03035 self()->mFixedFont = v;
03036 }
03037
03041 static
03042 QFont fixedFont()
03043 {
03044 return self()->mFixedFont;
03045 }
03046
03050 ItemFont *fixedFontItem()
03051 {
03052 return mFixedFontItem;
03053 }
03054
03058 static
03059 void setComposerSize( const QSize & v )
03060 {
03061 if (!self()->isImmutable( QString::fromLatin1( "ComposerSize" ) ))
03062 self()->mComposerSize = v;
03063 }
03064
03068 static
03069 QSize composerSize()
03070 {
03071 return self()->mComposerSize;
03072 }
03073
03077 ItemSize *composerSizeItem()
03078 {
03079 return mComposerSizeItem;
03080 }
03081
03085 static
03086 void setCloseAfterReplyOrForward( bool v )
03087 {
03088 if (!self()->isImmutable( QString::fromLatin1( "CloseAfterReplyOrForward" ) ))
03089 self()->mCloseAfterReplyOrForward = v;
03090 }
03091
03095 static
03096 bool closeAfterReplyOrForward()
03097 {
03098 return self()->mCloseAfterReplyOrForward;
03099 }
03100
03104 ItemBool *closeAfterReplyOrForwardItem()
03105 {
03106 return mCloseAfterReplyOrForwardItem;
03107 }
03108
03112 static
03113 void setUseDefaultColors( bool v )
03114 {
03115 if (!self()->isImmutable( QString::fromLatin1( "UseDefaultColors" ) ))
03116 self()->mUseDefaultColors = v;
03117 }
03118
03122 static
03123 bool useDefaultColors()
03124 {
03125 return self()->mUseDefaultColors;
03126 }
03127
03131 ItemBool *useDefaultColorsItem()
03132 {
03133 return mUseDefaultColorsItem;
03134 }
03135
03139 static
03140 void setForegroundColor( const QColor & v )
03141 {
03142 if (!self()->isImmutable( QString::fromLatin1( "ForegroundColor" ) ))
03143 self()->mForegroundColor = v;
03144 }
03145
03149 static
03150 QColor foregroundColor()
03151 {
03152 return self()->mForegroundColor;
03153 }
03154
03158 ItemColor *foregroundColorItem()
03159 {
03160 return mForegroundColorItem;
03161 }
03162
03166 static
03167 void setBackgroundColor( const QColor & v )
03168 {
03169 if (!self()->isImmutable( QString::fromLatin1( "BackgroundColor" ) ))
03170 self()->mBackgroundColor = v;
03171 }
03172
03176 static
03177 QColor backgroundColor()
03178 {
03179 return self()->mBackgroundColor;
03180 }
03181
03185 ItemColor *backgroundColorItem()
03186 {
03187 return mBackgroundColorItem;
03188 }
03189
03193 static
03194 void setFallbackCharacterEncoding( const QString & v )
03195 {
03196 if (!self()->isImmutable( QString::fromLatin1( "FallbackCharacterEncoding" ) ))
03197 self()->mFallbackCharacterEncoding = v;
03198 }
03199
03203 static
03204 QString fallbackCharacterEncoding()
03205 {
03206 return self()->mFallbackCharacterEncoding;
03207 }
03208
03212 ItemString *fallbackCharacterEncodingItem()
03213 {
03214 return mFallbackCharacterEncodingItem;
03215 }
03216
03220 static
03221 void setOverrideCharacterEncoding( const QString & v )
03222 {
03223 if (!self()->isImmutable( QString::fromLatin1( "OverrideCharacterEncoding" ) ))
03224 self()->mOverrideCharacterEncoding = v;
03225 }
03226
03230 static
03231 QString overrideCharacterEncoding()
03232 {
03233 return self()->mOverrideCharacterEncoding;
03234 }
03235
03239 ItemString *overrideCharacterEncodingItem()
03240 {
03241 return mOverrideCharacterEncodingItem;
03242 }
03243
03247 static
03248 void setShowEmoticons( bool v )
03249 {
03250 if (!self()->isImmutable( QString::fromLatin1( "ShowEmoticons" ) ))
03251 self()->mShowEmoticons = v;
03252 }
03253
03257 static
03258 bool showEmoticons()
03259 {
03260 return self()->mShowEmoticons;
03261 }
03262
03266 ItemBool *showEmoticonsItem()
03267 {
03268 return mShowEmoticonsItem;
03269 }
03270
03274 static
03275 void setShowExpandQuotesMark( bool v )
03276 {
03277 if (!self()->isImmutable( QString::fromLatin1( "ShowExpandQuotesMark" ) ))
03278 self()->mShowExpandQuotesMark = v;
03279 }
03280
03284 static
03285 bool showExpandQuotesMark()
03286 {
03287 return self()->mShowExpandQuotesMark;
03288 }
03289
03293 ItemBool *showExpandQuotesMarkItem()
03294 {
03295 return mShowExpandQuotesMarkItem;
03296 }
03297
03301 static
03302 void setCollapseQuoteLevelSpin( int v )
03303 {
03304 if (v < 0)
03305 {
03306 kdDebug() << "setCollapseQuoteLevelSpin: value " << v << " is less than the minimum value of 0" << endl;
03307 v = 0;
03308 }
03309
03310 if (v > 10)
03311 {
03312 kdDebug() << "setCollapseQuoteLevelSpin: value " << v << " is greater than the maximum value of 10" << endl;
03313 v = 10;
03314 }
03315
03316 if (!self()->isImmutable( QString::fromLatin1( "CollapseQuoteLevelSpin" ) ))
03317 self()->mCollapseQuoteLevelSpin = v;
03318 }
03319
03323 static
03324 int collapseQuoteLevelSpin()
03325 {
03326 return self()->mCollapseQuoteLevelSpin;
03327 }
03328
03332 ItemInt *collapseQuoteLevelSpinItem()
03333 {
03334 return mCollapseQuoteLevelSpinItem;
03335 }
03336
03340 static
03341 void setShrinkQuotes( bool v )
03342 {
03343 if (!self()->isImmutable( QString::fromLatin1( "ShrinkQuotes" ) ))
03344 self()->mShrinkQuotes = v;
03345 }
03346
03350 static
03351 bool shrinkQuotes()
03352 {
03353 return self()->mShrinkQuotes;
03354 }
03355
03359 ItemBool *shrinkQuotesItem()
03360 {
03361 return mShrinkQuotesItem;
03362 }
03363
03367 static
03368 void setChiasmusDecryptionKey( const QString & v )
03369 {
03370 if (!self()->isImmutable( QString::fromLatin1( "ChiasmusDecryptionKey" ) ))
03371 self()->mChiasmusDecryptionKey = v;
03372 }
03373
03377 static
03378 QString chiasmusDecryptionKey()
03379 {
03380 return self()->mChiasmusDecryptionKey;
03381 }
03382
03386 ItemString *chiasmusDecryptionKeyItem()
03387 {
03388 return mChiasmusDecryptionKeyItem;
03389 }
03390
03394 static
03395 void setChiasmusDecryptionOptions( const QString & v )
03396 {
03397 if (!self()->isImmutable( QString::fromLatin1( "ChiasmusDecryptionOptions" ) ))
03398 self()->mChiasmusDecryptionOptions = v;
03399 }
03400
03404 static
03405 QString chiasmusDecryptionOptions()
03406 {
03407 return self()->mChiasmusDecryptionOptions;
03408 }
03409
03413 ItemString *chiasmusDecryptionOptionsItem()
03414 {
03415 return mChiasmusDecryptionOptionsItem;
03416 }
03417
03421 static
03422 void setShowUserAgent( bool v )
03423 {
03424 if (!self()->isImmutable( QString::fromLatin1( "ShowUserAgent" ) ))
03425 self()->mShowUserAgent = v;
03426 }
03427
03431 static
03432 bool showUserAgent()
03433 {
03434 return self()->mShowUserAgent;
03435 }
03436
03440 ItemBool *showUserAgentItem()
03441 {
03442 return mShowUserAgentItem;
03443 }
03444
03448 static
03449 void setAllowAttachmentDeletion( bool v )
03450 {
03451 if (!self()->isImmutable( QString::fromLatin1( "AllowAttachmentDeletion" ) ))
03452 self()->mAllowAttachmentDeletion = v;
03453 }
03454
03458 static
03459 bool allowAttachmentDeletion()
03460 {
03461 return self()->mAllowAttachmentDeletion;
03462 }
03463
03467 ItemBool *allowAttachmentDeletionItem()
03468 {
03469 return mAllowAttachmentDeletionItem;
03470 }
03471
03475 static
03476 void setAllowAttachmentEditing( bool v )
03477 {
03478 if (!self()->isImmutable( QString::fromLatin1( "AllowAttachmentEditing" ) ))
03479 self()->mAllowAttachmentEditing = v;
03480 }
03481
03485 static
03486 bool allowAttachmentEditing()
03487 {
03488 return self()->mAllowAttachmentEditing;
03489 }
03490
03494 ItemBool *allowAttachmentEditingItem()
03495 {
03496 return mAllowAttachmentEditingItem;
03497 }
03498
03502 static
03503 void setAlwaysDecrypt( bool v )
03504 {
03505 if (!self()->isImmutable( QString::fromLatin1( "AlwaysDecrypt" ) ))
03506 self()->mAlwaysDecrypt = v;
03507 }
03508
03512 static
03513 bool alwaysDecrypt()
03514 {
03515 return self()->mAlwaysDecrypt;
03516 }
03517
03521 ItemBool *alwaysDecryptItem()
03522 {
03523 return mAlwaysDecryptItem;
03524 }
03525
03529 static
03530 void setAutomaticDecrypt( bool v )
03531 {
03532 if (!self()->isImmutable( QString::fromLatin1( "automaticDecrypt" ) ))
03533 self()->mAutomaticDecrypt = v;
03534 }
03535
03539 static
03540 bool automaticDecrypt()
03541 {
03542 return self()->mAutomaticDecrypt;
03543 }
03544
03548 ItemBool *automaticDecryptItem()
03549 {
03550 return mAutomaticDecryptItem;
03551 }
03552
03556 static
03557 void setSendMDNsWithEmptySender( bool v )
03558 {
03559 if (!self()->isImmutable( QString::fromLatin1( "SendMDNsWithEmptySender" ) ))
03560 self()->mSendMDNsWithEmptySender = v;
03561 }
03562
03566 static
03567 bool sendMDNsWithEmptySender()
03568 {
03569 return self()->mSendMDNsWithEmptySender;
03570 }
03571
03575 ItemBool *sendMDNsWithEmptySenderItem()
03576 {
03577 return mSendMDNsWithEmptySenderItem;
03578 }
03579
03583 static
03584 void setPhrasesConverted( bool v )
03585 {
03586 if (!self()->isImmutable( QString::fromLatin1( "PhrasesConverted" ) ))
03587 self()->mPhrasesConverted = v;
03588 }
03589
03593 static
03594 bool phrasesConverted()
03595 {
03596 return self()->mPhrasesConverted;
03597 }
03598
03602 ItemBool *phrasesConvertedItem()
03603 {
03604 return mPhrasesConvertedItem;
03605 }
03606
03610 static
03611 void setTemplateNewMessage( const QString & v )
03612 {
03613 if (!self()->isImmutable( QString::fromLatin1( "TemplateNewMessage" ) ))
03614 self()->mTemplateNewMessage = v;
03615 }
03616
03620 static
03621 QString templateNewMessage()
03622 {
03623 return self()->mTemplateNewMessage;
03624 }
03625
03629 ItemString *templateNewMessageItem()
03630 {
03631 return mTemplateNewMessageItem;
03632 }
03633
03637 static
03638 void setTemplateReply( const QString & v )
03639 {
03640 if (!self()->isImmutable( QString::fromLatin1( "TemplateReply" ) ))
03641 self()->mTemplateReply = v;
03642 }
03643
03647 static
03648 QString templateReply()
03649 {
03650 return self()->mTemplateReply;
03651 }
03652
03656 ItemString *templateReplyItem()
03657 {
03658 return mTemplateReplyItem;
03659 }
03660
03664 static
03665 void setTemplateReplyAll( const QString & v )
03666 {
03667 if (!self()->isImmutable( QString::fromLatin1( "TemplateReplyAll" ) ))
03668 self()->mTemplateReplyAll = v;
03669 }
03670
03674 static
03675 QString templateReplyAll()
03676 {
03677 return self()->mTemplateReplyAll;
03678 }
03679
03683 ItemString *templateReplyAllItem()
03684 {
03685 return mTemplateReplyAllItem;
03686 }
03687
03691 static
03692 void setTemplateForward( const QString & v )
03693 {
03694 if (!self()->isImmutable( QString::fromLatin1( "TemplateForward" ) ))
03695 self()->mTemplateForward = v;
03696 }
03697
03701 static
03702 QString templateForward()
03703 {
03704 return self()->mTemplateForward;
03705 }
03706
03710 ItemString *templateForwardItem()
03711 {
03712 return mTemplateForwardItem;
03713 }
03714
03718 static
03719 void setQuoteString( const QString & v )
03720 {
03721 if (!self()->isImmutable( QString::fromLatin1( "QuoteString" ) ))
03722 self()->mQuoteString = v;
03723 }
03724
03728 static
03729 QString quoteString()
03730 {
03731 return self()->mQuoteString;
03732 }
03733
03737 ItemString *quoteStringItem()
03738 {
03739 return mQuoteStringItem;
03740 }
03741
03745 static
03746 void setAllowOutOfOfficeSettings( bool v )
03747 {
03748 if (!self()->isImmutable( QString::fromLatin1( "AllowOutOfOfficeSettings" ) ))
03749 self()->mAllowOutOfOfficeSettings = v;
03750 }
03751
03755 static
03756 bool allowOutOfOfficeSettings()
03757 {
03758 return self()->mAllowOutOfOfficeSettings;
03759 }
03760
03764 ItemBool *allowOutOfOfficeSettingsItem()
03765 {
03766 return mAllowOutOfOfficeSettingsItem;
03767 }
03768
03772 static
03773 void setAllowOutOfOfficeUploadButNoSettings( bool v )
03774 {
03775 if (!self()->isImmutable( QString::fromLatin1( "AllowOutOfOfficeUploadButNoSettings" ) ))
03776 self()->mAllowOutOfOfficeUploadButNoSettings = v;
03777 }
03778
03782 static
03783 bool allowOutOfOfficeUploadButNoSettings()
03784 {
03785 return self()->mAllowOutOfOfficeUploadButNoSettings;
03786 }
03787
03791 ItemBool *allowOutOfOfficeUploadButNoSettingsItem()
03792 {
03793 return mAllowOutOfOfficeUploadButNoSettingsItem;
03794 }
03795
03799 static
03800 void setOutOfOfficeDomain( const QString & v )
03801 {
03802 if (!self()->isImmutable( QString::fromLatin1( "OutOfOfficeDomain" ) ))
03803 self()->mOutOfOfficeDomain = v;
03804 }
03805
03809 static
03810 QString outOfOfficeDomain()
03811 {
03812 return self()->mOutOfOfficeDomain;
03813 }
03814
03818 ItemString *outOfOfficeDomainItem()
03819 {
03820 return mOutOfOfficeDomainItem;
03821 }
03822
03826 static
03827 void setOutOfOfficeReactToSpam( bool v )
03828 {
03829 if (!self()->isImmutable( QString::fromLatin1( "OutOfOfficeReactToSpam" ) ))
03830 self()->mOutOfOfficeReactToSpam = v;
03831 }
03832
03836 static
03837 bool outOfOfficeReactToSpam()
03838 {
03839 return self()->mOutOfOfficeReactToSpam;
03840 }
03841
03845 ItemBool *outOfOfficeReactToSpamItem()
03846 {
03847 return mOutOfOfficeReactToSpamItem;
03848 }
03849
03853 static
03854 void setCheckOutOfOfficeOnStartup( bool v )
03855 {
03856 if (!self()->isImmutable( QString::fromLatin1( "CheckOutOfOfficeOnStartup" ) ))
03857 self()->mCheckOutOfOfficeOnStartup = v;
03858 }
03859
03863 static
03864 bool checkOutOfOfficeOnStartup()
03865 {
03866 return self()->mCheckOutOfOfficeOnStartup;
03867 }
03868
03872 ItemBool *checkOutOfOfficeOnStartupItem()
03873 {
03874 return mCheckOutOfOfficeOnStartupItem;
03875 }
03876
03880 static
03881 void setEnableFavoriteFolderView( bool v )
03882 {
03883 if (!self()->isImmutable( QString::fromLatin1( "EnableFavoriteFolderView" ) ))
03884 self()->mEnableFavoriteFolderView = v;
03885 }
03886
03890 static
03891 bool enableFavoriteFolderView()
03892 {
03893 return self()->mEnableFavoriteFolderView;
03894 }
03895
03899 ItemBool *enableFavoriteFolderViewItem()
03900 {
03901 return mEnableFavoriteFolderViewItem;
03902 }
03903
03907 static
03908 void setFolderViewSplitterPosition( const QValueList<int> & v )
03909 {
03910 if (!self()->isImmutable( QString::fromLatin1( "FolderViewSplitterPosition" ) ))
03911 self()->mFolderViewSplitterPosition = v;
03912 }
03913
03917 static
03918 QValueList<int> folderViewSplitterPosition()
03919 {
03920 return self()->mFolderViewSplitterPosition;
03921 }
03922
03926 ItemIntList *folderViewSplitterPositionItem()
03927 {
03928 return mFolderViewSplitterPositionItem;
03929 }
03930
03934 static
03935 void setFavoriteFolderIds( const QValueList<int> & v )
03936 {
03937 if (!self()->isImmutable( QString::fromLatin1( "FavoriteFolderIds" ) ))
03938 self()->mFavoriteFolderIds = v;
03939 }
03940
03944 static
03945 QValueList<int> favoriteFolderIds()
03946 {
03947 return self()->mFavoriteFolderIds;
03948 }
03949
03953 ItemIntList *favoriteFolderIdsItem()
03954 {
03955 return mFavoriteFolderIdsItem;
03956 }
03957
03961 static
03962 void setFavoriteFolderNames( const QStringList & v )
03963 {
03964 if (!self()->isImmutable( QString::fromLatin1( "FavoriteFolderNames" ) ))
03965 self()->mFavoriteFolderNames = v;
03966 }
03967
03971 static
03972 QStringList favoriteFolderNames()
03973 {
03974 return self()->mFavoriteFolderNames;
03975 }
03976
03980 ItemStringList *favoriteFolderNamesItem()
03981 {
03982 return mFavoriteFolderNamesItem;
03983 }
03984
03988 static
03989 void setFavoriteFolderViewSeenInboxes( const QValueList<int> & v )
03990 {
03991 if (!self()->isImmutable( QString::fromLatin1( "FavoriteFolderViewSeenInboxes" ) ))
03992 self()->mFavoriteFolderViewSeenInboxes = v;
03993 }
03994
03998 static
03999 QValueList<int> favoriteFolderViewSeenInboxes()
04000 {
04001 return self()->mFavoriteFolderViewSeenInboxes;
04002 }
04003
04007 ItemIntList *favoriteFolderViewSeenInboxesItem()
04008 {
04009 return mFavoriteFolderViewSeenInboxesItem;
04010 }
04011
04012 static
04013 void writeConfig()
04014 {
04015 static_cast<KConfigSkeleton*>(self())->writeConfig();
04016 }
04017 protected:
04018 GlobalSettingsBase();
04019 static GlobalSettingsBase *mSelf;
04020
04021
04022
04023 bool mDelayedMarkAsRead;
04024 uint mDelayedMarkTime;
04025 int mActionEnterFolder;
04026 int mNetworkState;
04027 int mLoopOnGotoUnread;
04028 bool mShowPopupAfterDnD;
04029 bool mExcludeImportantMailFromExpiry;
04030 int mSendOnCheck;
04031 bool mAutoLostFoundMove;
04032 bool mAllowLocalFlags;
04033
04034
04035 int mMinimumCheckInterval;
04036
04037
04038 QString mLastSelectedFolder;
04039
04040
04041 bool mDisregardUmask;
04042 bool mSystemTrayEnabled;
04043 int mSystemTrayPolicy;
04044 bool mCloseDespiteSystemTray;
04045 bool mVerboseNewMailNotification;
04046 QString mExternalEditor;
04047 bool mUseExternalEditor;
04048 int mCustHeaderCount;
04049 int mReplyCurrentLanguage;
04050 int mReplyLanguagesCount;
04051 int mFolderLoadingTimeout;
04052 int mQuotaUnit;
04053 int mCloseToQuotaThreshold;
04054
04055
04056 bool mGroupwareEnabled;
04057 bool mLegacyMangleFromToHeaders;
04058 bool mLegacyBodyInvites;
04059 bool mExchangeCompatibleInvitations;
04060 bool mOutlookCompatibleInvitationReplyComments;
04061 bool mOutlookCompatibleInvitationComparisons;
04062 bool mAutomaticSending;
04063 int mAskForCommentWhenReactingToInvitation;
04064 bool mDeleteInvitationEmailsAfterSendingReply;
04065 bool mShowToltecReplacementText;
04066 QString mToltecReplacementText;
04067
04068
04069 bool mTheIMAPResourceEnabled;
04070 bool mHideGroupwareFolders;
04071 bool mShowOnlyGroupwareFoldersForGroupwareAccount;
04072 int mTheIMAPResourceStorageFormat;
04073 QString mTheIMAPResourceFolderParent;
04074 int mTheIMAPResourceAccount;
04075 int mTheIMAPResourceFolderLanguage;
04076 bool mFilterGroupwareFolders;
04077 QValueList<int> mFilterSourceFolders;
04078 bool mImmediatlySyncDIMAPOnGroupwareChanges;
04079
04080
04081 int mMsgDictSizeHint;
04082 QString mPreviousNewFeaturesMD5;
04083
04084
04085 int mMaxConnectionsPerHost;
04086
04087
04088 bool mQuickSearchActive;
04089 bool mHideLocalInbox;
04090
04091
04092 bool mForwardingInlineByDefault;
04093 bool mAllowSemicolonAsAddressSeparator;
04094 bool mForceReplyCharset;
04095 QString mAutoTextSignature;
04096 bool mStickyIdentity;
04097 bool mStickyFcc;
04098 bool mStickyTransport;
04099 bool mStickyDictionary;
04100 bool mWordWrap;
04101 bool mUseFixedFont;
04102 int mLineWrapWidth;
04103 bool mTooManyRecipients;
04104 int mRecipientThreshold;
04105 uint mPreviousIdentity;
04106 QString mPreviousFcc;
04107 QString mPreviousDictionary;
04108 QStringList mTransportHistory;
04109 QString mCurrentTransport;
04110 QString mDefaultTransport;
04111 int mMaxTransportEntries;
04112 bool mOutlookCompatibleAttachments;
04113 bool mUseHtmlMarkup;
04114 bool mPgpAutoSign;
04115 bool mPgpAutoEncrypt;
04116 bool mNeverEncryptDrafts;
04117 QString mChiasmusKey;
04118 QString mChiasmusOptions;
04119 bool mConfirmBeforeSend;
04120 bool mRequestMDN;
04121 bool mShowRecentAddressesInComposer;
04122 int mHeaders;
04123 int mCompletionMode;
04124 bool mAutoSpellChecking;
04125 bool mShowForgottenAttachmentWarning;
04126 QStringList mAttachmentKeywords;
04127 bool mShowMessagePartDialogOnAttach;
04128 int mAutosaveInterval;
04129 bool mPrependSignature;
04130 QStringList mReplyPrefixes;
04131 bool mReplaceReplyPrefix;
04132 QStringList mForwardPrefixes;
04133 bool mReplaceForwardPrefix;
04134 bool mSmartQuote;
04135 bool mStripSignature;
04136 bool mQuoteSelectionOnly;
04137 int mAddresseeSelectorType;
04138 int mRecipientsEditorType;
04139 int mSecondRecipientTypeDefault;
04140 int mMaximumRecipients;
04141 QStringList mCustomTemplates;
04142 QStringList mMimetypesToStripWhenInlineForwarding;
04143 int mMaximumAttachmentSize;
04144 bool mShowSnippetManager;
04145 QValueList<int> mSnippetSplitterPosition;
04146 bool mShowGnuPGAuditLogAfterSuccessfulSignEncrypt;
04147
04148
04149 bool mUseDefaultFonts;
04150 QFont mComposerFont;
04151 QFont mFixedFont;
04152
04153
04154 QSize mComposerSize;
04155
04156
04157 bool mCloseAfterReplyOrForward;
04158 bool mUseDefaultColors;
04159 QColor mForegroundColor;
04160 QColor mBackgroundColor;
04161 QString mFallbackCharacterEncoding;
04162 QString mOverrideCharacterEncoding;
04163 bool mShowEmoticons;
04164 bool mShowExpandQuotesMark;
04165 int mCollapseQuoteLevelSpin;
04166 bool mShrinkQuotes;
04167 QString mChiasmusDecryptionKey;
04168 QString mChiasmusDecryptionOptions;
04169 bool mShowUserAgent;
04170 bool mAllowAttachmentDeletion;
04171 bool mAllowAttachmentEditing;
04172 bool mAlwaysDecrypt;
04173
04174
04175 bool mAutomaticDecrypt;
04176
04177
04178 bool mSendMDNsWithEmptySender;
04179
04180
04181 bool mPhrasesConverted;
04182 QString mTemplateNewMessage;
04183 QString mTemplateReply;
04184 QString mTemplateReplyAll;
04185 QString mTemplateForward;
04186 QString mQuoteString;
04187
04188
04189 bool mAllowOutOfOfficeSettings;
04190 bool mAllowOutOfOfficeUploadButNoSettings;
04191 QString mOutOfOfficeDomain;
04192 bool mOutOfOfficeReactToSpam;
04193 bool mCheckOutOfOfficeOnStartup;
04194
04195
04196 bool mEnableFavoriteFolderView;
04197 QValueList<int> mFolderViewSplitterPosition;
04198 QValueList<int> mFavoriteFolderIds;
04199 QStringList mFavoriteFolderNames;
04200 QValueList<int> mFavoriteFolderViewSeenInboxes;
04201
04202 private:
04203 ItemBool *mDelayedMarkAsReadItem;
04204 ItemUInt *mDelayedMarkTimeItem;
04205 ItemEnum *mActionEnterFolderItem;
04206 ItemEnum *mNetworkStateItem;
04207 ItemEnum *mLoopOnGotoUnreadItem;
04208 ItemBool *mShowPopupAfterDnDItem;
04209 ItemBool *mExcludeImportantMailFromExpiryItem;
04210 ItemEnum *mSendOnCheckItem;
04211 ItemBool *mAutoLostFoundMoveItem;
04212 ItemBool *mAllowLocalFlagsItem;
04213 ItemInt *mMinimumCheckIntervalItem;
04214 ItemString *mLastSelectedFolderItem;
04215 ItemBool *mDisregardUmaskItem;
04216 ItemBool *mSystemTrayEnabledItem;
04217 ItemEnum *mSystemTrayPolicyItem;
04218 ItemBool *mCloseDespiteSystemTrayItem;
04219 ItemBool *mVerboseNewMailNotificationItem;
04220 ItemString *mExternalEditorItem;
04221 ItemBool *mUseExternalEditorItem;
04222 ItemInt *mCustHeaderCountItem;
04223 ItemInt *mReplyCurrentLanguageItem;
04224 ItemInt *mReplyLanguagesCountItem;
04225 ItemInt *mFolderLoadingTimeoutItem;
04226 ItemEnum *mQuotaUnitItem;
04227 ItemInt *mCloseToQuotaThresholdItem;
04228 ItemBool *mGroupwareEnabledItem;
04229 ItemBool *mLegacyMangleFromToHeadersItem;
04230 ItemBool *mLegacyBodyInvitesItem;
04231 ItemBool *mExchangeCompatibleInvitationsItem;
04232 ItemBool *mOutlookCompatibleInvitationReplyCommentsItem;
04233 ItemBool *mOutlookCompatibleInvitationComparisonsItem;
04234 ItemBool *mAutomaticSendingItem;
04235 ItemEnum *mAskForCommentWhenReactingToInvitationItem;
04236 ItemBool *mDeleteInvitationEmailsAfterSendingReplyItem;
04237 ItemBool *mShowToltecReplacementTextItem;
04238 ItemString *mToltecReplacementTextItem;
04239 ItemBool *mTheIMAPResourceEnabledItem;
04240 ItemBool *mHideGroupwareFoldersItem;
04241 ItemBool *mShowOnlyGroupwareFoldersForGroupwareAccountItem;
04242 ItemEnum *mTheIMAPResourceStorageFormatItem;
04243 ItemString *mTheIMAPResourceFolderParentItem;
04244 ItemInt *mTheIMAPResourceAccountItem;
04245 ItemInt *mTheIMAPResourceFolderLanguageItem;
04246 ItemBool *mFilterGroupwareFoldersItem;
04247 ItemIntList *mFilterSourceFoldersItem;
04248 ItemBool *mImmediatlySyncDIMAPOnGroupwareChangesItem;
04249 ItemInt *mMsgDictSizeHintItem;
04250 ItemString *mPreviousNewFeaturesMD5Item;
04251 ItemInt *mMaxConnectionsPerHostItem;
04252 ItemBool *mQuickSearchActiveItem;
04253 ItemBool *mHideLocalInboxItem;
04254 ItemBool *mForwardingInlineByDefaultItem;
04255 ItemBool *mAllowSemicolonAsAddressSeparatorItem;
04256 ItemBool *mForceReplyCharsetItem;
04257 ItemString *mAutoTextSignatureItem;
04258 ItemBool *mStickyIdentityItem;
04259 ItemBool *mStickyFccItem;
04260 ItemBool *mStickyTransportItem;
04261 ItemBool *mStickyDictionaryItem;
04262 ItemBool *mWordWrapItem;
04263 ItemBool *mUseFixedFontItem;
04264 ItemInt *mLineWrapWidthItem;
04265 ItemBool *mTooManyRecipientsItem;
04266 ItemInt *mRecipientThresholdItem;
04267 ItemUInt *mPreviousIdentityItem;
04268 ItemString *mPreviousFccItem;
04269 ItemString *mPreviousDictionaryItem;
04270 ItemStringList *mTransportHistoryItem;
04271 ItemString *mCurrentTransportItem;
04272 ItemString *mDefaultTransportItem;
04273 ItemInt *mMaxTransportEntriesItem;
04274 ItemBool *mOutlookCompatibleAttachmentsItem;
04275 ItemBool *mUseHtmlMarkupItem;
04276 ItemBool *mPgpAutoSignItem;
04277 ItemBool *mPgpAutoEncryptItem;
04278 ItemBool *mNeverEncryptDraftsItem;
04279 ItemString *mChiasmusKeyItem;
04280 ItemString *mChiasmusOptionsItem;
04281 ItemBool *mConfirmBeforeSendItem;
04282 ItemBool *mRequestMDNItem;
04283 ItemBool *mShowRecentAddressesInComposerItem;
04284 ItemInt *mHeadersItem;
04285 ItemInt *mCompletionModeItem;
04286 ItemBool *mAutoSpellCheckingItem;
04287 ItemBool *mShowForgottenAttachmentWarningItem;
04288 ItemStringList *mAttachmentKeywordsItem;
04289 ItemBool *mShowMessagePartDialogOnAttachItem;
04290 ItemInt *mAutosaveIntervalItem;
04291 ItemBool *mPrependSignatureItem;
04292 ItemStringList *mReplyPrefixesItem;
04293 ItemBool *mReplaceReplyPrefixItem;
04294 ItemStringList *mForwardPrefixesItem;
04295 ItemBool *mReplaceForwardPrefixItem;
04296 ItemBool *mSmartQuoteItem;
04297 ItemBool *mStripSignatureItem;
04298 ItemBool *mQuoteSelectionOnlyItem;
04299 ItemEnum *mAddresseeSelectorTypeItem;
04300 ItemEnum *mRecipientsEditorTypeItem;
04301 ItemEnum *mSecondRecipientTypeDefaultItem;
04302 ItemInt *mMaximumRecipientsItem;
04303 ItemStringList *mCustomTemplatesItem;
04304 ItemStringList *mMimetypesToStripWhenInlineForwardingItem;
04305 ItemInt *mMaximumAttachmentSizeItem;
04306 ItemBool *mShowSnippetManagerItem;
04307 ItemIntList *mSnippetSplitterPositionItem;
04308 ItemBool *mShowGnuPGAuditLogAfterSuccessfulSignEncryptItem;
04309 ItemBool *mUseDefaultFontsItem;
04310 ItemFont *mComposerFontItem;
04311 ItemFont *mFixedFontItem;
04312 ItemSize *mComposerSizeItem;
04313 ItemBool *mCloseAfterReplyOrForwardItem;
04314 ItemBool *mUseDefaultColorsItem;
04315 ItemColor *mForegroundColorItem;
04316 ItemColor *mBackgroundColorItem;
04317 ItemString *mFallbackCharacterEncodingItem;
04318 ItemString *mOverrideCharacterEncodingItem;
04319 ItemBool *mShowEmoticonsItem;
04320 ItemBool *mShowExpandQuotesMarkItem;
04321 ItemInt *mCollapseQuoteLevelSpinItem;
04322 ItemBool *mShrinkQuotesItem;
04323 ItemString *mChiasmusDecryptionKeyItem;
04324 ItemString *mChiasmusDecryptionOptionsItem;
04325 ItemBool *mShowUserAgentItem;
04326 ItemBool *mAllowAttachmentDeletionItem;
04327 ItemBool *mAllowAttachmentEditingItem;
04328 ItemBool *mAlwaysDecryptItem;
04329 ItemBool *mAutomaticDecryptItem;
04330 ItemBool *mSendMDNsWithEmptySenderItem;
04331 ItemBool *mPhrasesConvertedItem;
04332 ItemString *mTemplateNewMessageItem;
04333 ItemString *mTemplateReplyItem;
04334 ItemString *mTemplateReplyAllItem;
04335 ItemString *mTemplateForwardItem;
04336 ItemString *mQuoteStringItem;
04337 ItemBool *mAllowOutOfOfficeSettingsItem;
04338 ItemBool *mAllowOutOfOfficeUploadButNoSettingsItem;
04339 ItemString *mOutOfOfficeDomainItem;
04340 ItemBool *mOutOfOfficeReactToSpamItem;
04341 ItemBool *mCheckOutOfOfficeOnStartupItem;
04342 ItemBool *mEnableFavoriteFolderViewItem;
04343 ItemIntList *mFolderViewSplitterPositionItem;
04344 ItemIntList *mFavoriteFolderIdsItem;
04345 ItemStringList *mFavoriteFolderNamesItem;
04346 ItemIntList *mFavoriteFolderViewSeenInboxesItem;
04347 };
04348
04349 #endif
04350
|