mailcommon
collectionexpirypage.cpp
Go to the documentation of this file.
138 MailCommon::ExpireCollectionAttribute *attr = MailCommon::ExpireCollectionAttribute::expirationCollectionAttribute( mCollection, mustDeleteExpirationAttribute );
182 void CollectionExpiryPage::saveAndExpire( Akonadi::Collection &collection, bool saveSettings, bool _expireNow )
188 KMessageBox::error( this, i18n("Please select a folder to expire messages into.\nIf this is not done, expired messages will be permanently deleted."),
197 KMessageBox::error( this, i18n( "Please select a different folder than the current folder to expire messages into.\nIf this is not done, expired messages will be permanently deleted."),
203 attribute = collection.attribute<MailCommon::ExpireCollectionAttribute>( Akonadi::Entity::AddIfMissing );
208 attribute = collection.attribute<MailCommon::ExpireCollectionAttribute>( Akonadi::Entity::AddIfMissing );
214 attribute->setReadExpireUnits( expireReadMailCB->isChecked() ? MailCommon::ExpireCollectionAttribute::ExpireDays :
216 attribute->setUnreadExpireUnits( expireUnreadMailCB->isChecked() ? MailCommon::ExpireCollectionAttribute::ExpireDays :
254 const bool showExpiryActions = expireReadMailCB->isChecked() || expireUnreadMailCB->isChecked();
ExpireUnits readExpireUnits() const
Units getReadExpireAge() is returned in.
Definition: expirecollectionattribute.cpp:154
void slotSaveAndExpire()
Definition: collectionexpirypage.cpp:235
static ExpireCollectionAttribute * expirationCollectionAttribute(const Akonadi::Collection &collection, bool &mustDeleteExpirationAttribute)
Definition: expirecollectionattribute.cpp:182
void load(const Akonadi::Collection &collection)
Definition: collectionexpirypage.cpp:132
void slotChanged()
Definition: collectionexpirypage.cpp:267
void setUnreadExpireUnits(ExpireUnits units)
Sets the units to use for expiry of unread messages.
Definition: expirecollectionattribute.cpp:103
void save(Akonadi::Collection &collection)
Definition: collectionexpirypage.cpp:176
ExpireUnits unreadExpireUnits() const
Units getUnreadExpireAge() is returned in.
Definition: expirecollectionattribute.cpp:149
void setReadExpireUnits(ExpireUnits units)
Sets the units to use for expiry of read messages.
Definition: expirecollectionattribute.cpp:122
~CollectionExpiryPage()
Definition: collectionexpirypage.cpp:50
void setAutoExpire(bool enabled)
Sets whether this folder automatically expires messages.
Definition: expirecollectionattribute.cpp:81
bool canHandle(const Akonadi::Collection &col) const
Definition: collectionexpirypage.cpp:54
Akonadi::Collection collection() const
Returns the selected collection.
Definition: folderrequester.cpp:105
void setShowOutbox(bool show)
Definition: folderrequester.cpp:185
static int daysToExpire(int number, ExpireCollectionAttribute::ExpireUnits units)
Definition: expirecollectionattribute.cpp:159
A widget that contains a KLineEdit which shows the current folder and a button that fires a FolderSel...
Definition: folderrequester.h:59
ExpireAction expireAction() const
What should expiry do? Delete or move to another folder?
Definition: expirecollectionattribute.cpp:134
void slotCollectionModified(KJob *job)
Definition: collectionexpirypage.cpp:240
bool isAutoExpire() const
Returns true if this folder automatically expires old messages.
Definition: expirecollectionattribute.cpp:86
void setMustBeReadWrite(bool readwrite)
Sets if readonly folders should be disabled.
Definition: folderrequester.cpp:180
void slotUpdateControls()
Definition: collectionexpirypage.cpp:252
Akonadi::Collection collectionFromId(const Akonadi::Collection::Id &id) const
Returns the collection associated with the given id, or an invalid collection if not found...
Definition: mailkernel.cpp:76
static QSharedPointer< FolderCollection > forCollection(const Akonadi::Collection &coll, bool writeConfig=true)
Definition: foldercollection.cpp:46
void setReadExpireAge(int age)
Sets the maximum age for read messages in this folder.
Definition: expirecollectionattribute.cpp:110
Akonadi::Collection::Id expireToFolderId() const
If expiry should move to folder, return the ID of that folder.
Definition: expirecollectionattribute.cpp:144
void setExpireToFolderId(Akonadi::Collection::Id id)
Definition: expirecollectionattribute.cpp:139
void setExpireAction(ExpireAction a)
Definition: expirecollectionattribute.cpp:129
MAILCOMMON_EXPORT void expireOldMessages(const Akonadi::Collection &collection, bool immediate)
Definition: mailutil.cpp:603
void setCollection(const Akonadi::Collection &collection, bool fetchCollection=true)
Presets the folder to the collection collection.
Definition: folderrequester.cpp:120
void setUnreadExpireAge(int age)
Sets the maximum age for unread messages in this folder.
Definition: expirecollectionattribute.cpp:91
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:55:14 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:55:14 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.