Akonadi::ErrorAttribute

Search for usage in LXR

Akonadi::ErrorAttribute Class Reference

#include <errorattribute.h>

Inheritance diagram for Akonadi::ErrorAttribute:

Public Member Functions

 ErrorAttribute (const QString &msg=QString())
 
 ~ErrorAttribute () override
 
ErrorAttributeclone () const override
 
void deserialize (const QByteArray &data) override
 
QString message () const
 
QByteArray serialized () const override
 
void setMessage (const QString &msg)
 
QByteArray type () const override
 
- Public Member Functions inherited from Akonadi::Attribute

Additional Inherited Members

- Public Types inherited from Akonadi::Attribute
typedef QList< Attribute * > List
 

Detailed Description

An Attribute to mark messages that failed to be sent.

This attribute contains the error message encountered.

Author
Constantin Berzan exit3.nosp@m.219@.nosp@m.gmail.nosp@m..com
Since
4.4

Definition at line 29 of file errorattribute.h.

Constructor & Destructor Documentation

◆ ErrorAttribute()

ErrorAttribute::ErrorAttribute ( const QString & msg = QString())
explicit

Creates a new error attribute.

Parameters
msgThe i18n'ed error message.

Definition at line 17 of file errorattribute.cpp.

◆ ~ErrorAttribute()

ErrorAttribute::~ErrorAttribute ( )
overridedefault

Destroys the error attribute.

Member Function Documentation

◆ clone()

ErrorAttribute * ErrorAttribute::clone ( ) const
overridevirtual

Implements Akonadi::Attribute.

Definition at line 25 of file errorattribute.cpp.

◆ deserialize()

void ErrorAttribute::deserialize ( const QByteArray & data)
overridevirtual

Implements Akonadi::Attribute.

Definition at line 41 of file errorattribute.cpp.

◆ message()

QString ErrorAttribute::message ( ) const
nodiscard

Returns the i18n'ed error message.

Definition at line 46 of file errorattribute.cpp.

◆ serialized()

QByteArray ErrorAttribute::serialized ( ) const
nodiscardoverridevirtual

Implements Akonadi::Attribute.

Definition at line 36 of file errorattribute.cpp.

◆ setMessage()

void ErrorAttribute::setMessage ( const QString & msg)

Sets the i18n'ed error message.

Definition at line 51 of file errorattribute.cpp.

◆ type()

QByteArray ErrorAttribute::type ( ) const
nodiscardoverridevirtual

Implements Akonadi::Attribute.

Definition at line 30 of file errorattribute.cpp.


The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 17:05:31 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.