KTnef::KTNEFMessage Class

class KTnef::KTNEFMessage

Represents a @acronym TNEF message. More...

Header: #include <ktnefmessage.h>
CMake: find_package(KPim6Tnef REQUIRED)
target_link_libraries(mytarget PRIVATE KPim6::Tnef)
Inherits: KTnef::KTNEFPropertySet

Public Functions

KTNEFMessage()
~KTNEFMessage()
void addAttachment(KTnef::KTNEFAttach *attach)
KTnef::KTNEFAttach *attachment(const QString &filename) const
const QList<KTnef::KTNEFAttach *> &attachmentList() const
void clearAttachments()
QString rtfString() const

Detailed Description

Member Function Documentation

KTNEFMessage::KTNEFMessage()

Creates a KTNEFMessage message object.

[noexcept] KTNEFMessage::~KTNEFMessage()

Destroys a KTNEFMessage message object.

void KTNEFMessage::addAttachment(KTnef::KTNEFAttach *attach)

Append an attachment to the message. attach is a pointer to a KTNEFAttach object to be attached.

KTnef::KTNEFAttach *KTNEFMessage::attachment(const QString &filename) const

Find the attachment associated to the specified file name.

filename is a QString containing the file to search for in the list of message attachments.

Returns A pointer to KTNEFAttach object, or 0 if the search fails.

const QList<KTnef::KTNEFAttach *> &KTNEFMessage::attachmentList() const

Return a QList containing all the message's attachments.

void KTNEFMessage::clearAttachments()

Clear the attachments list.

QString KTNEFMessage::rtfString() const

Returns the Rich Text Format (@acronym RTF) data contained in the message. Returns A QString containing the @acronym RTF data.