MimeTreeParser::MessagePart
#include <messagepart.h>
Public Types | |
using | Ptr = QSharedPointer<MessagePart> |
Public Types inherited from QObject | |
typedef | QObjectList |
Properties | |
QString | attachmentIndex |
QString | htmlContent |
bool | isAttachment |
bool | isHtml |
bool | isImage |
QString | link |
bool | neverDisplayInline |
QString | plaintextContent |
bool | root |
Properties inherited from QObject | |
objectName | |
Public Member Functions | |
MessagePart (ObjectTreeParser *otp, const QString &text) | |
void | appendSubPart (const MessagePart::Ptr &messagePart) |
KMime::Content * | attachmentContent () const |
QString | attachmentIndex () const |
QString | attachmentLink () const |
void | clearSubParts () |
KMime::Content * | content () const |
virtual void | fix () const |
virtual bool | hasHeader (const char *headerType) const |
bool | hasSubParts () const |
virtual const KMime::Headers::Base * | header (const char *headerType) const |
virtual QList< KMime::Headers::Base * > | headers (const char *headerType) const |
virtual QString | htmlContent () const |
bool | isAttachment () const |
virtual bool | isHtml () const |
bool | isImage () const |
bool | isRoot () const |
QString | makeLink (const QString &path) const |
Interface::BodyPartMemento * | memento () const |
bool | neverDisplayInline () const |
NodeHelper * | nodeHelper () const |
MessagePart * | parentPart () const |
PartMetaData * | partMetaData () const |
virtual QString | plaintextContent () const |
void | setAttachmentContent (KMime::Content *node) |
void | setContent (KMime::Content *node) |
void | setIsImage (bool image) |
void | setIsRoot (bool root) |
void | setMemento (Interface::BodyPartMemento *memento) |
void | setNeverDisplayInline (bool displayInline) |
void | setParentPart (MessagePart *parentPart) |
void | setText (const QString &text) |
Interface::ObjectTreeSource * | source () const |
const QList< MessagePart::Ptr > & | subParts () const |
virtual QString | text () const |
Public Member Functions inherited from QObject | |
QObject (QObject *parent) | |
QBindable< QString > | bindableObjectName () |
bool | blockSignals (bool block) |
const QObjectList & | children () const const |
QMetaObject::Connection | connect (const QObject *sender, const char *signal, const char *method, Qt::ConnectionType type) const const |
void | deleteLater () |
void | destroyed (QObject *obj) |
bool | disconnect (const char *signal, const QObject *receiver, const char *method) const const |
bool | disconnect (const QObject *receiver, const char *method) const const |
void | dumpObjectInfo () const const |
void | dumpObjectTree () const const |
QList< QByteArray > | dynamicPropertyNames () const const |
virtual bool | event (QEvent *e) |
virtual bool | eventFilter (QObject *watched, QEvent *event) |
T | findChild (const QString &name, Qt::FindChildOptions options) const const |
QList< T > | findChildren (const QRegularExpression &re, Qt::FindChildOptions options) const const |
QList< T > | findChildren (const QString &name, Qt::FindChildOptions options) const const |
QList< T > | findChildren (Qt::FindChildOptions options) const const |
bool | inherits (const char *className) const const |
void | installEventFilter (QObject *filterObj) |
bool | isQuickItemType () const const |
bool | isWidgetType () const const |
bool | isWindowType () const const |
void | killTimer (int id) |
virtual const QMetaObject * | metaObject () const const |
void | moveToThread (QThread *targetThread) |
QString | objectName () const const |
void | objectNameChanged (const QString &objectName) |
QObject * | parent () const const |
QVariant | property (const char *name) const const |
Q_CLASSINFO (Name, Value) | |
Q_EMIT Q_EMIT | |
Q_ENUM (...) | |
Q_ENUM_NS (...) | |
Q_ENUMS (...) | |
Q_FLAG (...) | |
Q_FLAG_NS (...) | |
Q_FLAGS (...) | |
Q_GADGET Q_GADGET | |
Q_GADGET_EXPORT (EXPORT_MACRO) | |
Q_INTERFACES (...) | |
Q_INVOKABLE Q_INVOKABLE | |
Q_MOC_INCLUDE Q_MOC_INCLUDE | |
Q_NAMESPACE Q_NAMESPACE | |
Q_NAMESPACE_EXPORT (EXPORT_MACRO) | |
Q_OBJECT Q_OBJECT | |
Q_PROPERTY (...) | |
Q_REVISION Q_REVISION | |
Q_SET_OBJECT_NAME (Object) | |
Q_SIGNAL Q_SIGNAL | |
Q_SIGNALS Q_SIGNALS | |
Q_SLOT Q_SLOT | |
Q_SLOTS Q_SLOTS | |
T | qobject_cast (const QObject *object) |
T | qobject_cast (QObject *object) |
QT_NO_NARROWING_CONVERSIONS_IN_CONNECT QT_NO_NARROWING_CONVERSIONS_IN_CONNECT | |
void | removeEventFilter (QObject *obj) |
void | setObjectName (const QString &name) |
void | setObjectName (QAnyStringView name) |
void | setParent (QObject *parent) |
bool | setProperty (const char *name, const QVariant &value) |
bool | setProperty (const char *name, QVariant &&value) |
bool | signalsBlocked () const const |
int | startTimer (int interval, Qt::TimerType timerType) |
int | startTimer (std::chrono::milliseconds interval, Qt::TimerType timerType) |
QThread * | thread () const const |
Protected Member Functions | |
void | parseInternal (KMime::Content *node, bool onlyOneMimePart) |
QString | renderInternalText () const |
Protected Member Functions inherited from QObject | |
virtual void | childEvent (QChildEvent *event) |
virtual void | connectNotify (const QMetaMethod &signal) |
virtual void | customEvent (QEvent *event) |
virtual void | disconnectNotify (const QMetaMethod &signal) |
bool | isSignalConnected (const QMetaMethod &signal) const const |
int | receivers (const char *signal) const const |
QObject * | sender () const const |
int | senderSignalIndex () const const |
virtual void | timerEvent (QTimerEvent *event) |
Protected Attributes | |
ObjectTreeParser * | mOtp = nullptr |
Additional Inherited Members | |
Static Public Member Functions inherited from QObject | |
QMetaObject::Connection | connect (const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type) |
QMetaObject::Connection | connect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method, Qt::ConnectionType type) |
QMetaObject::Connection | connect (const QObject *sender, PointerToMemberFunction signal, const QObject *context, Functor functor, Qt::ConnectionType type) |
QMetaObject::Connection | connect (const QObject *sender, PointerToMemberFunction signal, const QObject *receiver, PointerToMemberFunction method, Qt::ConnectionType type) |
QMetaObject::Connection | connect (const QObject *sender, PointerToMemberFunction signal, Functor functor) |
bool | disconnect (const QMetaObject::Connection &connection) |
bool | disconnect (const QObject *sender, const char *signal, const QObject *receiver, const char *method) |
bool | disconnect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method) |
bool | disconnect (const QObject *sender, PointerToMemberFunction signal, const QObject *receiver, PointerToMemberFunction method) |
QString | tr (const char *sourceText, const char *disambiguation, int n) |
Detailed Description
The MessagePart class.
Definition at line 57 of file mimetreeparser/src/messagepart.h.
Member Typedef Documentation
◆ Ptr
Definition at line 70 of file mimetreeparser/src/messagepart.h.
Property Documentation
◆ attachmentIndex
|
read |
Definition at line 67 of file mimetreeparser/src/messagepart.h.
◆ htmlContent
|
read |
Definition at line 61 of file mimetreeparser/src/messagepart.h.
◆ isAttachment
|
read |
Definition at line 62 of file mimetreeparser/src/messagepart.h.
◆ isHtml
|
read |
Definition at line 64 of file mimetreeparser/src/messagepart.h.
◆ isImage
|
read |
Definition at line 65 of file mimetreeparser/src/messagepart.h.
◆ link
|
read |
Definition at line 68 of file mimetreeparser/src/messagepart.h.
◆ neverDisplayInline
|
read |
Definition at line 66 of file mimetreeparser/src/messagepart.h.
◆ plaintextContent
|
read |
Definition at line 60 of file mimetreeparser/src/messagepart.h.
◆ root
|
read |
Definition at line 63 of file mimetreeparser/src/messagepart.h.
Constructor & Destructor Documentation
◆ MessagePart()
MessagePart::MessagePart | ( | ObjectTreeParser * | otp, |
const QString & | text ) |
Definition at line 60 of file mimetreeparser/src/messagepart.cpp.
Member Function Documentation
◆ appendSubPart()
void MessagePart::appendSubPart | ( | const MessagePart::Ptr & | messagePart | ) |
Definition at line 219 of file mimetreeparser/src/messagepart.cpp.
◆ attachmentContent()
|
nodiscard |
The KMime::Content* node that's the source of this part.
This is not necessarily the same as content(), for example for broken-up multipart nodes.
Definition at line 114 of file mimetreeparser/src/messagepart.cpp.
◆ attachmentIndex()
|
nodiscard |
- See also
- KMime::Content::index()
Definition at line 129 of file mimetreeparser/src/messagepart.cpp.
◆ attachmentLink()
|
nodiscard |
- See also
- NodeHelper::asHREF
Definition at line 134 of file mimetreeparser/src/messagepart.cpp.
◆ clearSubParts()
void MessagePart::clearSubParts | ( | ) |
Definition at line 235 of file mimetreeparser/src/messagepart.cpp.
◆ content()
|
nodiscard |
The KMime::Content* node that's represented by this part.
Can be nullptr
, e.g. for sub-parts of an inline signed body part.
Definition at line 104 of file mimetreeparser/src/messagepart.cpp.
◆ fix()
|
virtual |
Definition at line 208 of file mimetreeparser/src/messagepart.cpp.
◆ hasHeader()
|
nodiscardvirtual |
Definition at line 260 of file mimetreeparser/src/messagepart.cpp.
◆ hasSubParts()
|
nodiscard |
Definition at line 230 of file mimetreeparser/src/messagepart.cpp.
◆ header()
|
virtual |
Definition at line 266 of file mimetreeparser/src/messagepart.cpp.
◆ headers()
|
virtual |
Definition at line 272 of file mimetreeparser/src/messagepart.cpp.
◆ htmlContent()
|
nodiscardvirtual |
Definition at line 79 of file mimetreeparser/src/messagepart.cpp.
◆ isAttachment()
|
nodiscard |
Definition at line 124 of file mimetreeparser/src/messagepart.cpp.
◆ isHtml()
|
virtual |
Definition at line 171 of file mimetreeparser/src/messagepart.cpp.
◆ isImage()
|
nodiscard |
Definition at line 250 of file mimetreeparser/src/messagepart.cpp.
◆ isRoot()
|
nodiscard |
Definition at line 156 of file mimetreeparser/src/messagepart.cpp.
◆ makeLink()
Returns a string representation of an URL that can be used to invoke a BodyPartURLHandler for this body part.
Definition at line 139 of file mimetreeparser/src/messagepart.cpp.
◆ memento()
Interface::BodyPartMemento * MessagePart::memento | ( | ) | const |
Definition at line 94 of file mimetreeparser/src/messagepart.cpp.
◆ neverDisplayInline()
|
nodiscard |
Definition at line 240 of file mimetreeparser/src/messagepart.cpp.
◆ nodeHelper()
NodeHelper * MessagePart::nodeHelper | ( | ) | const |
Definition at line 182 of file mimetreeparser/src/messagepart.cpp.
◆ parentPart()
|
nodiscard |
Definition at line 69 of file mimetreeparser/src/messagepart.cpp.
◆ parseInternal()
|
protected |
Definition at line 188 of file mimetreeparser/src/messagepart.cpp.
◆ partMetaData()
PartMetaData * MessagePart::partMetaData | ( | ) | const |
Definition at line 89 of file mimetreeparser/src/messagepart.cpp.
◆ plaintextContent()
|
nodiscardvirtual |
Definition at line 84 of file mimetreeparser/src/messagepart.cpp.
◆ renderInternalText()
|
nodiscardprotected |
Definition at line 198 of file mimetreeparser/src/messagepart.cpp.
◆ setAttachmentContent()
void MessagePart::setAttachmentContent | ( | KMime::Content * | node | ) |
Definition at line 119 of file mimetreeparser/src/messagepart.cpp.
◆ setContent()
void MessagePart::setContent | ( | KMime::Content * | node | ) |
Definition at line 109 of file mimetreeparser/src/messagepart.cpp.
◆ setIsImage()
void MessagePart::setIsImage | ( | bool | image | ) |
Definition at line 255 of file mimetreeparser/src/messagepart.cpp.
◆ setIsRoot()
void MessagePart::setIsRoot | ( | bool | root | ) |
Definition at line 151 of file mimetreeparser/src/messagepart.cpp.
◆ setMemento()
void MessagePart::setMemento | ( | Interface::BodyPartMemento * | memento | ) |
Definition at line 99 of file mimetreeparser/src/messagepart.cpp.
◆ setNeverDisplayInline()
void MessagePart::setNeverDisplayInline | ( | bool | displayInline | ) |
Definition at line 245 of file mimetreeparser/src/messagepart.cpp.
◆ setParentPart()
void MessagePart::setParentPart | ( | MessagePart * | parentPart | ) |
Definition at line 74 of file mimetreeparser/src/messagepart.cpp.
◆ setText()
void MessagePart::setText | ( | const QString & | text | ) |
Definition at line 166 of file mimetreeparser/src/messagepart.cpp.
◆ source()
Interface::ObjectTreeSource * MessagePart::source | ( | ) | const |
Definition at line 176 of file mimetreeparser/src/messagepart.cpp.
◆ subParts()
const QList< MessagePart::Ptr > & MessagePart::subParts | ( | ) | const |
Definition at line 225 of file mimetreeparser/src/messagepart.cpp.
◆ text()
|
nodiscardvirtual |
Definition at line 161 of file mimetreeparser/src/messagepart.cpp.
Member Data Documentation
◆ mOtp
|
protected |
Definition at line 140 of file mimetreeparser/src/messagepart.h.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:07:26 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.