Akonadi::AddressAttribute Class
class Akonadi::AddressAttribute| Header: | #include <Akonadi/AddressAttribute> |
| CMake: | find_package(KPim6AkonadiMime REQUIRED)target_link_libraries(mytarget PRIVATE KPim6::AkonadiMime) |
Public Functions
| AddressAttribute(const QString &from = QString(), const QStringList &to = QStringList(), const QStringList &cc = QStringList(), const QStringList &bcc = QStringList(), bool dsn = false) | |
| virtual | ~AddressAttribute() override |
| QStringList | bcc() const |
| QStringList | cc() const |
| bool | deliveryStatusNotification() const |
| QString | from() const |
| void | setBcc(const QStringList &bcc) |
| void | setCc(const QStringList &cc) |
| void | setDeliveryStatusNotification(bool b) |
| void | setFrom(const QString &from) |
| void | setTo(const QStringList &to) |
| QStringList | to() const |
Reimplemented Public Functions
| virtual Akonadi::AddressAttribute * | clone() const override |
| virtual void | deserialize(const QByteArray &data) override |
| virtual QByteArray | serialized() const override |
| virtual QByteArray | type() const override |
Detailed Description
Attribute storing the From, To, Cc, Bcc addresses of a message.
Author: Constantin Berzan <exit3219@gmail.com>
Member Function Documentation
[explicit] AddressAttribute::AddressAttribute(const QString &from = QString(), const QStringList &to = QStringList(), const QStringList &cc = QStringList(), const QStringList &bcc = QStringList(), bool dsn = false)
Creates a new AddressAttribute.
[override virtual noexcept] AddressAttribute::~AddressAttribute()
Destroys the AddressAttribute.
QStringList AddressAttribute::bcc() const
Returns the addresses of the "Bcc:" receivers.
See also setBcc().
QStringList AddressAttribute::cc() const
Returns the addresses of the "Cc:" receivers.
See also setCc().
[override virtual] Akonadi::AddressAttribute *AddressAttribute::clone() const
Returns a copy of this attribute.
bool AddressAttribute::deliveryStatusNotification() const
See also setDeliveryStatusNotification().
[override virtual] void AddressAttribute::deserialize(const QByteArray &data)
Deserializes the attribute from the given data. data the serialized data
QString AddressAttribute::from() const
Returns the address of the sender.
See also setFrom().
[override virtual] QByteArray AddressAttribute::serialized() const
Returns the serialized representation of the attribute.
void AddressAttribute::setBcc(const QStringList &bcc)
Sets the addresses of the "Bcc:" receivers." bcc addresses of the receivers (CC)
See also bcc().
void AddressAttribute::setCc(const QStringList &cc)
Sets the addresses of the "Cc:" receivers." cc addresses of the receivers (CC)
See also cc().
void AddressAttribute::setDeliveryStatusNotification(bool b)
setDeliveryStatusNotification
See also deliveryStatusNotification().
void AddressAttribute::setFrom(const QString &from)
Sets the address of the sender.
See also from().
void AddressAttribute::setTo(const QStringList &to)
Sets the addresses of the "To: "receivers." to address of the receiver.
See also to().
QStringList AddressAttribute::to() const
Returns the addresses of the "To:" receivers.
See also setTo().
[override virtual] QByteArray AddressAttribute::type() const
Returns the type of the attribute.