MimeTreeParser::MessagePart

Search for usage in LXR

#include <messagepart.h>

Inheritance diagram for MimeTreeParser::MessagePart:

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::ContentattachmentContent () const
 
QString attachmentIndex () const
 
QString attachmentLink () const
 
void clearSubParts ()
 
KMime::Contentcontent () const
 
virtual void fix () const
 
virtual bool hasHeader (const char *headerType) const
 
bool hasSubParts () const
 
virtual const KMime::Headers::Baseheader (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::BodyPartMementomemento () const
 
bool neverDisplayInline () const
 
NodeHelpernodeHelper () const
 
MessagePartparentPart () 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::ObjectTreeSourcesource () const
 
const QList< MessagePart::Ptr > & subParts () const
 
virtual QString text () const
 
- Public Member Functions inherited from QObject
 QObject (QObject *parent)
 
QBindable< QStringbindableObjectName ()
 
bool blockSignals (bool block)
 
const QObjectListchildren () 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< QByteArraydynamicPropertyNames () const const
 
virtual bool event (QEvent *e)
 
virtual bool eventFilter (QObject *watched, QEvent *event)
 
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 QMetaObjectmetaObject () const const
 
void moveToThread (QThread *targetThread)
 
QString objectName () const const
 
void objectNameChanged (const QString &objectName)
 
QObjectparent () 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
 
qobject_cast (const QObject *object)
 
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)
 
QThreadthread () 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
 
QObjectsender () const const
 
int senderSignalIndex () const const
 
virtual void timerEvent (QTimerEvent *event)
 

Protected Attributes

ObjectTreeParsermOtp = 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

Property Documentation

◆ attachmentIndex

QString MimeTreeParser::MessagePart::attachmentIndex
read

Definition at line 67 of file mimetreeparser/src/messagepart.h.

◆ htmlContent

QString MimeTreeParser::MessagePart::htmlContent
read

Definition at line 61 of file mimetreeparser/src/messagepart.h.

◆ isAttachment

bool MimeTreeParser::MessagePart::isAttachment
read

Definition at line 62 of file mimetreeparser/src/messagepart.h.

◆ isHtml

bool MimeTreeParser::MessagePart::isHtml
read

Definition at line 64 of file mimetreeparser/src/messagepart.h.

◆ isImage

bool MimeTreeParser::MessagePart::isImage
read

Definition at line 65 of file mimetreeparser/src/messagepart.h.

◆ link

QString MimeTreeParser::MessagePart::link
read

Definition at line 68 of file mimetreeparser/src/messagepart.h.

◆ neverDisplayInline

bool MimeTreeParser::MessagePart::neverDisplayInline
read

Definition at line 66 of file mimetreeparser/src/messagepart.h.

◆ plaintextContent

QString MimeTreeParser::MessagePart::plaintextContent
read

Definition at line 60 of file mimetreeparser/src/messagepart.h.

◆ root

bool MimeTreeParser::MessagePart::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()

KMime::Content * MessagePart::attachmentContent ( ) const
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()

QString MessagePart::attachmentIndex ( ) const
nodiscard
See also
KMime::Content::index()

Definition at line 129 of file mimetreeparser/src/messagepart.cpp.

◆ attachmentLink()

QString MessagePart::attachmentLink ( ) const
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()

KMime::Content * MessagePart::content ( ) const
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()

void MessagePart::fix ( ) const
virtual

Definition at line 208 of file mimetreeparser/src/messagepart.cpp.

◆ hasHeader()

bool MessagePart::hasHeader ( const char * headerType) const
nodiscardvirtual

Definition at line 260 of file mimetreeparser/src/messagepart.cpp.

◆ hasSubParts()

bool MessagePart::hasSubParts ( ) const
nodiscard

Definition at line 230 of file mimetreeparser/src/messagepart.cpp.

◆ header()

const KMime::Headers::Base * MimeTreeParser::MessagePart::header ( const char * headerType) const
virtual

Definition at line 266 of file mimetreeparser/src/messagepart.cpp.

◆ headers()

QList< KMime::Headers::Base * > MessagePart::headers ( const char * headerType) const
virtual

Definition at line 272 of file mimetreeparser/src/messagepart.cpp.

◆ htmlContent()

QString MessagePart::htmlContent ( ) const
nodiscardvirtual

Definition at line 79 of file mimetreeparser/src/messagepart.cpp.

◆ isAttachment()

bool MessagePart::isAttachment ( ) const
nodiscard

Definition at line 124 of file mimetreeparser/src/messagepart.cpp.

◆ isHtml()

bool MessagePart::isHtml ( ) const
virtual

Definition at line 171 of file mimetreeparser/src/messagepart.cpp.

◆ isImage()

bool MessagePart::isImage ( ) const
nodiscard

Definition at line 250 of file mimetreeparser/src/messagepart.cpp.

◆ isRoot()

bool MessagePart::isRoot ( ) const
nodiscard

Definition at line 156 of file mimetreeparser/src/messagepart.cpp.

◆ makeLink()

QString MessagePart::makeLink ( const QString & path) const
nodiscard

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()

bool MessagePart::neverDisplayInline ( ) const
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()

MessagePart * MessagePart::parentPart ( ) const
nodiscard

Definition at line 69 of file mimetreeparser/src/messagepart.cpp.

◆ parseInternal()

void MessagePart::parseInternal ( KMime::Content * node,
bool onlyOneMimePart )
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()

QString MessagePart::plaintextContent ( ) const
nodiscardvirtual

Definition at line 84 of file mimetreeparser/src/messagepart.cpp.

◆ renderInternalText()

QString MessagePart::renderInternalText ( ) const
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()

QString MessagePart::text ( ) const
nodiscardvirtual

Definition at line 161 of file mimetreeparser/src/messagepart.cpp.

Member Data Documentation

◆ mOtp

ObjectTreeParser* MimeTreeParser::MessagePart::mOtp = nullptr
protected

Definition at line 140 of file mimetreeparser/src/messagepart.h.


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 Fri Nov 29 2024 11:50:56 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.