KTnef::KTNEFMessage
#include <ktnefmessage.h>
Public Member Functions | |
KTNEFMessage () | |
~KTNEFMessage () | |
void | addAttachment (KTNEFAttach *attach) |
KTNEFAttach * | attachment (const QString &filename) const |
const QList< KTNEFAttach * > & | attachmentList () const |
void | clearAttachments () |
QString | rtfString () const |
Public Member Functions inherited from KTnef::KTNEFPropertySet | |
KTNEFPropertySet () | |
~KTNEFPropertySet () | |
void | addAttribute (int key, int type, const QVariant &value, bool overwrite=false) |
void | addProperty (int key, int type, const QVariant &value, const QVariant &name=QVariant(), bool overwrite=false) |
QVariant | attribute (int key) const |
QMap< int, KTNEFProperty * > & | attributes () |
const QMap< int, KTNEFProperty * > & | attributes () const |
void | clear (bool deleteAll=false) |
QString | findNamedProp (const QString &name, const QString &fallback=QString(), bool convertToUpper=false) const |
QString | findProp (int key, const QString &fallback=QString(), bool convertToUpper=false) const |
QMap< int, KTNEFProperty * > & | properties () |
const QMap< int, KTNEFProperty * > & | properties () const |
QVariant | property (int key) const |
Detailed Description
Represents a TNEF message.
Definition at line 36 of file ktnefmessage.h.
Constructor & Destructor Documentation
◆ KTNEFMessage()
KTNEFMessage::KTNEFMessage | ( | ) |
Creates a KTNEFMessage message object.
Private class that helps to provide binary compatibility between releases.
Definition at line 57 of file ktnefmessage.cpp.
◆ ~KTNEFMessage()
|
default |
Destroys a KTNEFMessage message object.
Member Function Documentation
◆ addAttachment()
void KTNEFMessage::addAttachment | ( | KTNEFAttach * | attach | ) |
Append an attachment to the message.
- Parameters
-
attach is a pointer to a KTNEFAttach object to be attached.
Definition at line 81 of file ktnefmessage.cpp.
◆ attachment()
KTNEFAttach * KTNEFMessage::attachment | ( | const QString & | filename | ) | const |
Find the attachment associated to the specified file name.
- Parameters
-
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.
Definition at line 69 of file ktnefmessage.cpp.
◆ attachmentList()
const QList< KTNEFAttach * > & KTNEFMessage::attachmentList | ( | ) | const |
Return a QList containing all the message's attachments.
Definition at line 64 of file ktnefmessage.cpp.
◆ clearAttachments()
void KTNEFMessage::clearAttachments | ( | ) |
Clear the attachments list.
Definition at line 86 of file ktnefmessage.cpp.
◆ rtfString()
|
nodiscard |
Returns the Rich Text Format (RTF) data contained in the message.
- Returns
- A QString containing the RTF data.
Definition at line 91 of file ktnefmessage.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 16:58:22 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.