Akonadi::ErrorAttribute Class
class Akonadi::ErrorAttributeAn Attribute to mark messages that failed to be sent. More...
| Header: | #include <Akonadi/ErrorAttribute> |
| CMake: | find_package(KPim6AkonadiMime REQUIRED)target_link_libraries(mytarget PRIVATE KPim6::AkonadiMime) |
Public Functions
| ErrorAttribute(const QString &msg = QString()) | |
| virtual | ~ErrorAttribute() override |
| QString | message() const |
| void | setMessage(const QString &msg) |
Reimplemented Public Functions
| virtual Akonadi::ErrorAttribute * | clone() const override |
| virtual void | deserialize(const QByteArray &data) override |
| virtual QByteArray | serialized() const override |
| virtual QByteArray | type() const override |
Detailed Description
This attribute contains the error message encountered.
Author: Constantin Berzan <exit3219@gmail.com>
Member Function Documentation
[explicit] ErrorAttribute::ErrorAttribute(const QString &msg = QString())
Creates a new error attribute.
msg The i18n'ed error message.
[override virtual noexcept] ErrorAttribute::~ErrorAttribute()
Destroys the error attribute.
[override virtual] Akonadi::ErrorAttribute *ErrorAttribute::clone() const
Returns a copy of this attribute.
[override virtual] void ErrorAttribute::deserialize(const QByteArray &data)
Deserializes the attribute from the given data. data the serialized data
QString ErrorAttribute::message() const
Returns the i18n'ed error message.
See also setMessage().
[override virtual] QByteArray ErrorAttribute::serialized() const
Returns the serialized representation of the attribute.
void ErrorAttribute::setMessage(const QString &msg)
Sets the i18n'ed error message.
See also message().
[override virtual] QByteArray ErrorAttribute::type() const
Returns the type of the attribute.