TextAutoGenerateText::TextAutoGenerateAttachments Class

class TextAutoGenerateText::TextAutoGenerateAttachments

The TextAutoGenerateAttachments class Author: Laurent Montel <montel@kde.org>. More...

Header: #include <TextAutoGenerateText/TextAutoGenerateAttachments>
Inherits: QSharedData

Public Functions

TextAutoGenerateAttachments()
TextAutoGenerateAttachments(const TextAutoGenerateText::TextAutoGenerateAttachments &other)
~TextAutoGenerateAttachments()
bool isEmpty() const
QList<TextAutoGenerateText::TextAutoGenerateAttachment> messageAttachments() const
void setMessageAttachments(const QList<TextAutoGenerateText::TextAutoGenerateAttachment> &newMessageAttachments)
bool operator==(const TextAutoGenerateText::TextAutoGenerateAttachments &other) const

Static Public Members

TextAutoGenerateText::TextAutoGenerateAttachments *deserialize(const QJsonArray &o, const QByteArray &messageId)
QJsonArray serialize(const TextAutoGenerateText::TextAutoGenerateAttachments &attachments)

Detailed Description

Member Function Documentation

TextAutoGenerateAttachments::TextAutoGenerateAttachments()

Constructs a new TextAutoGenerateAttachments object.

TextAutoGenerateAttachments::TextAutoGenerateAttachments(const TextAutoGenerateText::TextAutoGenerateAttachments &other)

Constructs a copy of the TextAutoGenerateAttachments object from another object. other The TextAutoGenerateAttachments object to copy from

[noexcept] TextAutoGenerateAttachments::~TextAutoGenerateAttachments()

Destroys the TextAutoGenerateAttachments object.

[static] TextAutoGenerateText::TextAutoGenerateAttachments *TextAutoGenerateAttachments::deserialize(const QJsonArray &o, const QByteArray &messageId)

Deserializes a TextAutoGenerateAttachments object from JSON. o The JSON array to deserialize from messageId The message ID for context Returns A pointer to the deserialized TextAutoGenerateAttachments

bool TextAutoGenerateAttachments::isEmpty() const

Returns whether the attachments collection is empty. Returns true if there are no attachments, false otherwise

QList<TextAutoGenerateText::TextAutoGenerateAttachment> TextAutoGenerateAttachments::messageAttachments() const

Returns the list of message attachments. Returns A list of TextAutoGenerateAttachment objects

See also setMessageAttachments().

[static] QJsonArray TextAutoGenerateAttachments::serialize(const TextAutoGenerateText::TextAutoGenerateAttachments &attachments)

Serializes the given TextAutoGenerateAttachments object. attachments The TextAutoGenerateAttachments to serialize Returns The serialized data as a QJsonArray

void TextAutoGenerateAttachments::setMessageAttachments(const QList<TextAutoGenerateText::TextAutoGenerateAttachment> &newMessageAttachments)

Sets the list of message attachments. newMessageAttachments The attachments to set

See also messageAttachments().

bool TextAutoGenerateAttachments::operator==(const TextAutoGenerateText::TextAutoGenerateAttachments &other) const

Compares this TextAutoGenerateAttachments with another for equality. other The TextAutoGenerateAttachments to compare with Returns true if both objects are equal, false otherwise