Cockatrice 2025-11-30-Development-2.11.0-beta.38
A cross-platform virtual tabletop for multiplayer card games
Loading...
Searching...
No Matches
QxtMailAttachment Class Reference

The QxtMailAttachment class represents an attachement to a QxtMailMessage. More...

#include <qxtmailattachment.h>

Public Member Functions

 QxtMailAttachment ()
 QxtMailAttachment (const QxtMailAttachment &other)
 QxtMailAttachment (const QByteArray &content, const QString &contentType=QString("application/octet-stream"))
 QxtMailAttachment (QIODevice *content, const QString &contentType=QString("application/octet-stream"))
QxtMailAttachmentoperator= (const QxtMailAttachment &other)
 ~QxtMailAttachment ()
QIODevice * content () const
void setContent (const QByteArray &content)
void setContent (QIODevice *content)
bool deleteContent () const
void setDeleteContent (bool enable)
QString contentType () const
void setContentType (const QString &contentType)
QHash< QString, QString > extraHeaders () const
QByteArray extraHeader (const QString &) const
bool hasExtraHeader (const QString &) const
void setExtraHeader (const QString &key, const QString &value)
void setExtraHeaders (const QHash< QString, QString > &)
void removeExtraHeader (const QString &key)
QByteArray mimeData ()

Static Public Member Functions

static QxtMailAttachment fromFile (const QString &filename)

Private Attributes

QSharedDataPointer< QxtMailAttachmentPrivateqxt_d

Detailed Description

The QxtMailAttachment class represents an attachement to a QxtMailMessage.

\inmodule QxtNetwork

Constructor & Destructor Documentation

◆ QxtMailAttachment() [1/4]

QxtMailAttachment::QxtMailAttachment ( )
Here is the caller graph for this function:

◆ QxtMailAttachment() [2/4]

QxtMailAttachment::QxtMailAttachment ( const QxtMailAttachment & other)
Here is the call graph for this function:

◆ QxtMailAttachment() [3/4]

QxtMailAttachment::QxtMailAttachment ( const QByteArray & content,
const QString & contentType = QString("application/octet-stream") )
Here is the call graph for this function:

◆ QxtMailAttachment() [4/4]

QxtMailAttachment::QxtMailAttachment ( QIODevice * content,
const QString & contentType = QString("application/octet-stream") )
Here is the call graph for this function:

◆ ~QxtMailAttachment()

QxtMailAttachment::~QxtMailAttachment ( )

Member Function Documentation

◆ content()

QIODevice * QxtMailAttachment::content ( ) const
Here is the caller graph for this function:

◆ contentType()

QString QxtMailAttachment::contentType ( ) const
Here is the caller graph for this function:

◆ deleteContent()

bool QxtMailAttachment::deleteContent ( ) const

◆ extraHeader()

QByteArray QxtMailAttachment::extraHeader ( const QString & key) const
Here is the caller graph for this function:

◆ extraHeaders()

QHash< QString, QString > QxtMailAttachment::extraHeaders ( ) const

◆ fromFile()

QxtMailAttachment QxtMailAttachment::fromFile ( const QString & filename)
static
Here is the call graph for this function:

◆ hasExtraHeader()

bool QxtMailAttachment::hasExtraHeader ( const QString & key) const

◆ mimeData()

QByteArray QxtMailAttachment::mimeData ( )
Here is the call graph for this function:

◆ operator=()

QxtMailAttachment & QxtMailAttachment::operator= ( const QxtMailAttachment & other)
Here is the call graph for this function:

◆ removeExtraHeader()

void QxtMailAttachment::removeExtraHeader ( const QString & key)

◆ setContent() [1/2]

void QxtMailAttachment::setContent ( const QByteArray & content)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ setContent() [2/2]

void QxtMailAttachment::setContent ( QIODevice * content)
Here is the call graph for this function:

◆ setContentType()

void QxtMailAttachment::setContentType ( const QString & contentType)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ setDeleteContent()

void QxtMailAttachment::setDeleteContent ( bool enable)
Here is the caller graph for this function:

◆ setExtraHeader()

void QxtMailAttachment::setExtraHeader ( const QString & key,
const QString & value )

◆ setExtraHeaders()

void QxtMailAttachment::setExtraHeaders ( const QHash< QString, QString > & a)

Member Data Documentation

◆ qxt_d

QSharedDataPointer<QxtMailAttachmentPrivate> QxtMailAttachment::qxt_d
private

The documentation for this class was generated from the following files: