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