Attribute storing the From, To, Cc, Bcc addresses of a message. More...
#include <addressattribute.h>

Public Member Functions | |
AddressAttribute (const QString &from=QString(), const QStringList &to=QStringList(), const QStringList &cc=QStringList(), const QStringList &bcc=QStringList()) | |
virtual | ~AddressAttribute () |
QStringList | bcc () const |
QStringList | cc () const |
virtual AddressAttribute * | clone () const |
virtual void | deserialize (const QByteArray &data) |
QString | from () const |
virtual QByteArray | serialized () const |
void | setBcc (const QStringList &bcc) |
void | setCc (const QStringList &cc) |
void | setFrom (const QString &from) |
void | setTo (const QStringList &to) |
QStringList | to () const |
virtual QByteArray | type () const |
Detailed Description
Attribute storing the From, To, Cc, Bcc addresses of a message.
- Since:
- 4.4
Definition at line 42 of file addressattribute.h.
Constructor & Destructor Documentation
Akonadi::AddressAttribute::AddressAttribute | ( | const QString & | from = QString() , |
const QStringList & | to = QStringList() , |
||
const QStringList & | cc = QStringList() , |
||
const QStringList & | bcc = QStringList() |
||
) | [explicit] |
Creates a new AddressAttribute.
virtual Akonadi::AddressAttribute::~AddressAttribute | ( | ) | [virtual] |
Destroys the AddressAttribute.
Member Function Documentation
QStringList Akonadi::AddressAttribute::bcc | ( | ) | const |
Returns the addresses of the "Bcc:" receivers.
QStringList Akonadi::AddressAttribute::cc | ( | ) | const |
Returns the addresses of the "Cc:" receivers.
virtual AddressAttribute* Akonadi::AddressAttribute::clone | ( | ) | const [virtual] |
Creates a copy of this attribute.
Implements Akonadi::Attribute.
virtual void Akonadi::AddressAttribute::deserialize | ( | const QByteArray & | data | ) | [virtual] |
Sets the data of this attribute, using the same encoding as returned by toByteArray().
- Parameters:
-
data The encoded attribute data.
Implements Akonadi::Attribute.
QString Akonadi::AddressAttribute::from | ( | ) | const |
Returns the address of the sender.
virtual QByteArray Akonadi::AddressAttribute::serialized | ( | ) | const [virtual] |
Returns a QByteArray representation of the attribute which will be storaged.
This can be raw binary data, no encoding needs to be applied.
Implements Akonadi::Attribute.
void Akonadi::AddressAttribute::setBcc | ( | const QStringList & | bcc | ) |
Sets the addresses of the "Bcc:" receivers.
"
void Akonadi::AddressAttribute::setCc | ( | const QStringList & | cc | ) |
Sets the addresses of the "Cc:" receivers.
"
void Akonadi::AddressAttribute::setFrom | ( | const QString & | from | ) |
Sets the address of the sender.
void Akonadi::AddressAttribute::setTo | ( | const QStringList & | to | ) |
Sets the addresses of the "To:" receivers.
"
QStringList Akonadi::AddressAttribute::to | ( | ) | const |
Returns the addresses of the "To:" receivers.
virtual QByteArray Akonadi::AddressAttribute::type | ( | ) | const [virtual] |
Returns the type of the attribute.
Implements Akonadi::Attribute.
The documentation for this class was generated from the following file: