Changeset View
Changeset View
Standalone View
Standalone View
libksieve/ksieveui/util/util.h
Show All 39 Lines | |||||
#define KSIEVE_KSIEVEUI_UTIL_H | #define KSIEVE_KSIEVEUI_UTIL_H | ||||
#include "ksieveui_export.h" | #include "ksieveui_export.h" | ||||
#include <akonadi/agentinstance.h> | #include <akonadi/agentinstance.h> | ||||
class KUrl; | class KUrl; | ||||
class QString; | class QString; | ||||
class QStringList; | |||||
namespace KSieveUi | namespace KSieveUi | ||||
{ | { | ||||
/** | /** | ||||
* The Util namespace contains a collection of helper functions use in | * The Util namespace contains a collection of helper functions use in | ||||
* various places. | * various places. | ||||
*/ | */ | ||||
namespace Util { | namespace Util { | ||||
Show All 14 Lines | namespace Util { | ||||
*/ | */ | ||||
KSIEVEUI_EXPORT bool checkOutOfOfficeOnStartup(); | KSIEVEUI_EXPORT bool checkOutOfOfficeOnStartup(); | ||||
/** | /** | ||||
* Returns whether the functionality of vacation sieve script editing shall | * Returns whether the functionality of vacation sieve script editing shall | ||||
* be available at all. | * be available at all. | ||||
*/ | */ | ||||
KSIEVEUI_EXPORT bool allowOutOfOfficeSettings(); | KSIEVEUI_EXPORT bool allowOutOfOfficeSettings(); | ||||
/** | |||||
* Checks if a server has KEP:14 support | |||||
*/ | |||||
bool hasKep14Support(const QStringList &sieveCapabilities, const QStringList &availableScripts, const QString &activeScript); | |||||
/** | |||||
* Is the given scriptName a protected KEP:14 name, that a normal user should not touch directly. | |||||
* it tests against MASTER, USER and MANAGEMENT script | |||||
*/ | |||||
bool isKep14ProtectedName(const QString &scriptName); | |||||
} | } | ||||
} | } | ||||
#endif | #endif |