// This file is generated by kconfig_compiler from ksieveui.kcfg. // All changes you do to this file will be lost. #ifndef SETTINGS_H #define SETTINGS_H #include #include #include class Settings : public KConfigSkeleton { public: static Settings *self(); ~Settings(); /** Set Allow out-of-office settings to be changeable by the user. */ static void setAllowOutOfOfficeSettings( bool v ) { if (!self()->isImmutable( QString::fromLatin1( "AllowOutOfOfficeSettings" ) )) self()->mAllowOutOfOfficeSettings = v; } /** Get Allow out-of-office settings to be changeable by the user. */ static bool allowOutOfOfficeSettings() { return self()->mAllowOutOfOfficeSettings; } /** Get Item object corresponding to AllowOutOfOfficeSettings() */ ItemBool *allowOutOfOfficeSettingsItem() { return mAllowOutOfOfficeSettingsItem; } /** Set Allow users to upload out-of-office sieve scripts, but prevent them from changing any settings, such as the domain to react to or the spam reaction switch. */ static void setAllowOutOfOfficeUploadButNoSettings( bool v ) { if (!self()->isImmutable( QString::fromLatin1( "AllowOutOfOfficeUploadButNoSettings" ) )) self()->mAllowOutOfOfficeUploadButNoSettings = v; } /** Get Allow users to upload out-of-office sieve scripts, but prevent them from changing any settings, such as the domain to react to or the spam reaction switch. */ static bool allowOutOfOfficeUploadButNoSettings() { return self()->mAllowOutOfOfficeUploadButNoSettings; } /** Get Item object corresponding to AllowOutOfOfficeUploadButNoSettings() */ ItemBool *allowOutOfOfficeUploadButNoSettingsItem() { return mAllowOutOfOfficeUploadButNoSettingsItem; } /** Set Send out-of-office replies to mails coming from this domain only. */ static void setOutOfOfficeDomain( const QString & v ) { if (!self()->isImmutable( QString::fromLatin1( "OutOfOfficeDomain" ) )) self()->mOutOfOfficeDomain = v; } /** Get Send out-of-office replies to mails coming from this domain only. */ static QString outOfOfficeDomain() { printf ("MBDBG: outOfOfficeDomain 0\n"); printf ("MBDBG: outOfOfficeDomain 1 %p\n", self()); printf ("MBDBG: outOfOfficeDomain 2 %p (0x%08x 0x%08x)\n", &self()->mOutOfOfficeDomain, ((unsigned int *)&self()->mOutOfOfficeDomain)[0], ((unsigned int *)&self()->mOutOfOfficeDomain)[1]); return self()->mOutOfOfficeDomain; } /** Get Item object corresponding to OutOfOfficeDomain() */ ItemString *outOfOfficeDomainItem() { return mOutOfOfficeDomainItem; } /** Set Allow out-of-office replies to be sent to messages marked as SPAM. */ static void setOutOfOfficeReactToSpam( bool v ) { if (!self()->isImmutable( QString::fromLatin1( "OutOfOfficeReactToSpam" ) )) self()->mOutOfOfficeReactToSpam = v; } /** Get Allow out-of-office replies to be sent to messages marked as SPAM. */ static bool outOfOfficeReactToSpam() { return self()->mOutOfOfficeReactToSpam; } /** Get Item object corresponding to OutOfOfficeReactToSpam() */ ItemBool *outOfOfficeReactToSpamItem() { return mOutOfOfficeReactToSpamItem; } /** Set Check if there is still an active out-of-office reply configured on startup. */ static void setCheckOutOfOfficeOnStartup( bool v ) { if (!self()->isImmutable( QString::fromLatin1( "CheckOutOfOfficeOnStartup" ) )) self()->mCheckOutOfOfficeOnStartup = v; } /** Get Check if there is still an active out-of-office reply configured on startup. */ static bool checkOutOfOfficeOnStartup() { return self()->mCheckOutOfOfficeOnStartup; } /** Get Item object corresponding to CheckOutOfOfficeOnStartup() */ ItemBool *checkOutOfOfficeOnStartupItem() { return mCheckOutOfOfficeOnStartupItem; } protected: Settings(); friend class SettingsHelper; // OutOfOffice bool mAllowOutOfOfficeSettings; bool mAllowOutOfOfficeUploadButNoSettings; QString mOutOfOfficeDomain; bool mOutOfOfficeReactToSpam; bool mCheckOutOfOfficeOnStartup; private: ItemBool *mAllowOutOfOfficeSettingsItem; ItemBool *mAllowOutOfOfficeUploadButNoSettingsItem; ItemString *mOutOfOfficeDomainItem; ItemBool *mOutOfOfficeReactToSpamItem; ItemBool *mCheckOutOfOfficeOnStartupItem; }; #endif