10#include "mailcommon_export.h"
12#include <Akonadi/Attribute>
13#include <Akonadi/Collection>
21 ExpireCollectionAttribute();
41 [[nodiscard]]
QByteArray type()
const override;
42 ExpireCollectionAttribute *clone()
const override;
43 [[nodiscard]]
QByteArray serialized()
const override;
44 void deserialize(
const QByteArray &data)
override;
46 void daysToExpire(
int &unreadDays,
int &readDays)
const;
51 void setAutoExpire(
bool enabled);
56 [[nodiscard]]
bool isAutoExpire()
const;
63 void setUnreadExpireAge(
int age);
69 void setUnreadExpireUnits(ExpireUnits units);
76 void setReadExpireAge(
int age);
82 void setReadExpireUnits(ExpireUnits units);
88 [[nodiscard]]
int unreadExpireAge()
const;
94 [[nodiscard]]
int readExpireAge()
const;
99 [[nodiscard]] ExpireAction expireAction()
const;
100 void setExpireAction(ExpireAction a);
112 [[nodiscard]] ExpireUnits unreadExpireUnits()
const;
118 [[nodiscard]] ExpireUnits readExpireUnits()
const;
120 [[nodiscard]]
bool operator==(
const ExpireCollectionAttribute &other)
const;
121 [[nodiscard]]
bool expireMessagesWithValidDate()
const;
122 void setExpireMessagesWithValidDate(
bool expireMessagesWithValidDate);
125 static MAILCOMMON_NO_EXPORT
int daysToExpire(
int number, ExpireCollectionAttribute::ExpireUnits units);
126 bool mExpireMessages =
false;
127 int mUnreadExpireAge = 28;
128 int mReadExpireAge = 14;
129 ExpireCollectionAttribute::ExpireUnits mUnreadExpireUnits = ExpireNever;
130 ExpireCollectionAttribute::ExpireUnits mReadExpireUnits = ExpireNever;
131 ExpireCollectionAttribute::ExpireAction mExpireAction = ExpireDelete;
133 bool mExpireMessagesWithValidDate =
false;
136MAILCOMMON_EXPORT
QDebug operator<<(
QDebug d,
const MailCommon::ExpireCollectionAttribute &t);
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:09:01 by
doxygen 1.12.0 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.