mailcommon
#include <expirecollectionattribute.h>
Inherits Attribute.
Public Types | |
enum | ExpireAction { ExpireDelete, ExpireMove } |
enum | ExpireUnits { ExpireNever, ExpireDays, ExpireWeeks, ExpireMonths, ExpireMaxUnits } |
Public Member Functions | |
ExpireCollectionAttribute () | |
Attribute * | clone () const |
void | daysToExpire (int &unreadDays, int &readDays) |
void | deserialize (const QByteArray &data) |
ExpireAction | expireAction () const |
Akonadi::Collection::Id | expireToFolderId () const |
bool | isAutoExpire () const |
void | loadFromConfig (const Akonadi::Collection &collection) |
int | readExpireAge () const |
ExpireUnits | readExpireUnits () const |
QByteArray | serialized () const |
void | setAutoExpire (bool enabled) |
void | setExpireAction (ExpireAction a) |
void | setExpireToFolderId (Akonadi::Collection::Id id) |
void | setReadExpireAge (int age) |
void | setReadExpireUnits (ExpireUnits units) |
void | setUnreadExpireAge (int age) |
void | setUnreadExpireUnits (ExpireUnits units) |
QByteArray | type () const |
int | unreadExpireAge () const |
ExpireUnits | unreadExpireUnits () const |
Static Public Member Functions | |
static int | daysToExpire (int number, ExpireCollectionAttribute::ExpireUnits units) |
static ExpireCollectionAttribute * | expirationCollectionAttribute (const Akonadi::Collection &collection, bool &mustDeleteExpirationAttribute) |
Detailed Description
Definition at line 29 of file expirecollectionattribute.h.
Member Enumeration Documentation
Enumerator | |
---|---|
ExpireDelete | |
ExpireMove |
Definition at line 47 of file expirecollectionattribute.h.
Enumerator | |
---|---|
ExpireNever | |
ExpireDays | |
ExpireWeeks | |
ExpireMonths | |
ExpireMaxUnits |
Definition at line 39 of file expirecollectionattribute.h.
Constructor & Destructor Documentation
ExpireCollectionAttribute::ExpireCollectionAttribute | ( | ) |
Definition at line 27 of file expirecollectionattribute.cpp.
Member Function Documentation
Akonadi::Attribute * ExpireCollectionAttribute::clone | ( | ) | const |
Definition at line 43 of file expirecollectionattribute.cpp.
|
static |
Definition at line 159 of file expirecollectionattribute.cpp.
void ExpireCollectionAttribute::daysToExpire | ( | int & | unreadDays, |
int & | readDays | ||
) |
Definition at line 176 of file expirecollectionattribute.cpp.
void ExpireCollectionAttribute::deserialize | ( | const QByteArray & | data | ) |
Definition at line 213 of file expirecollectionattribute.cpp.
|
static |
Definition at line 182 of file expirecollectionattribute.cpp.
ExpireCollectionAttribute::ExpireAction ExpireCollectionAttribute::expireAction | ( | ) | const |
What should expiry do? Delete or move to another folder?
Definition at line 134 of file expirecollectionattribute.cpp.
Akonadi::Collection::Id ExpireCollectionAttribute::expireToFolderId | ( | ) | const |
If expiry should move to folder, return the ID of that folder.
Definition at line 144 of file expirecollectionattribute.cpp.
bool ExpireCollectionAttribute::isAutoExpire | ( | ) | const |
Returns true if this folder automatically expires old messages.
Definition at line 86 of file expirecollectionattribute.cpp.
void ExpireCollectionAttribute::loadFromConfig | ( | const Akonadi::Collection & | collection | ) |
Definition at line 56 of file expirecollectionattribute.cpp.
int ExpireCollectionAttribute::readExpireAge | ( | ) | const |
Returns the age at which read messages are expired.
Units are determined by readExpireUnits().
Definition at line 117 of file expirecollectionattribute.cpp.
ExpireCollectionAttribute::ExpireUnits ExpireCollectionAttribute::readExpireUnits | ( | ) | const |
Units getReadExpireAge() is returned in.
1 = days, 2 = weeks, 3 = months.
Definition at line 154 of file expirecollectionattribute.cpp.
QByteArray ExpireCollectionAttribute::serialized | ( | ) | const |
Definition at line 197 of file expirecollectionattribute.cpp.
void ExpireCollectionAttribute::setAutoExpire | ( | bool | enabled | ) |
Sets whether this folder automatically expires messages.
Definition at line 81 of file expirecollectionattribute.cpp.
void ExpireCollectionAttribute::setExpireAction | ( | ExpireAction | a | ) |
Definition at line 129 of file expirecollectionattribute.cpp.
void ExpireCollectionAttribute::setExpireToFolderId | ( | Akonadi::Collection::Id | id | ) |
Definition at line 139 of file expirecollectionattribute.cpp.
void ExpireCollectionAttribute::setReadExpireAge | ( | int | age | ) |
Sets the maximum age for read messages in this folder.
Age should not be negative. Units are set using setReadExpireUnits().
Definition at line 110 of file expirecollectionattribute.cpp.
void ExpireCollectionAttribute::setReadExpireUnits | ( | ExpireUnits | units | ) |
Sets the units to use for expiry of read messages.
Values are 1 = days, 2 = weeks, 3 = months.
Definition at line 122 of file expirecollectionattribute.cpp.
void ExpireCollectionAttribute::setUnreadExpireAge | ( | int | age | ) |
Sets the maximum age for unread messages in this folder.
Age should not be negative. Units are set using setUnreadExpireUnits().
Definition at line 91 of file expirecollectionattribute.cpp.
void ExpireCollectionAttribute::setUnreadExpireUnits | ( | ExpireUnits | units | ) |
Sets the units to use for expiry of unread messages.
Values are 1 = days, 2 = weeks, 3 = months.
Definition at line 103 of file expirecollectionattribute.cpp.
QByteArray ExpireCollectionAttribute::type | ( | ) | const |
Definition at line 38 of file expirecollectionattribute.cpp.
int ExpireCollectionAttribute::unreadExpireAge | ( | ) | const |
Returns the age at which unread messages are expired.
Units are determined by unreadExpireUnits().
Definition at line 98 of file expirecollectionattribute.cpp.
ExpireCollectionAttribute::ExpireUnits ExpireCollectionAttribute::unreadExpireUnits | ( | ) | const |
Units getUnreadExpireAge() is returned in.
1 = days, 2 = weeks, 3 = months.
Definition at line 149 of file expirecollectionattribute.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:55:15 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.