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

The QxtMailMessage class encapsulates an e-mail according to RFC 2822 and related specifications TODO: {implicitshared}. More...

#include <qxtmailmessage.h>

Public Types

enum  RecipientType { To , Cc , Bcc }

Public Member Functions

 QxtMailMessage ()
 QxtMailMessage (const QxtMailMessage &other)
 QxtMailMessage (const QString &sender, const QString &recipient)
QxtMailMessageoperator= (const QxtMailMessage &other)
 ~QxtMailMessage ()
QString sender () const
void setSender (const QString &)
QString subject () const
void setSubject (const QString &)
QString body () const
void setBody (const QString &)
QStringList recipients (RecipientType type=To) const
void addRecipient (const QString &, RecipientType type=To)
void removeRecipient (const QString &)
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)
QHash< QString, QxtMailAttachmentattachments () const
QxtMailAttachment attachment (const QString &filename) const
void addAttachment (const QString &filename, const QxtMailAttachment &attach)
void removeAttachment (const QString &filename)
QByteArray rfc2822 () const

Private Attributes

QSharedDataPointer< QxtMailMessagePrivateqxt_d

Detailed Description

The QxtMailMessage class encapsulates an e-mail according to RFC 2822 and related specifications TODO: {implicitshared}.

\inmodule QxtNetwork

Member Enumeration Documentation

◆ RecipientType

Enumerator
To 
Cc 
Bcc 

Constructor & Destructor Documentation

◆ QxtMailMessage() [1/3]

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

◆ QxtMailMessage() [2/3]

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

◆ QxtMailMessage() [3/3]

QxtMailMessage::QxtMailMessage ( const QString & sender,
const QString & recipient )
Here is the call graph for this function:

◆ ~QxtMailMessage()

QxtMailMessage::~QxtMailMessage ( )

Member Function Documentation

◆ addAttachment()

void QxtMailMessage::addAttachment ( const QString & filename,
const QxtMailAttachment & attach )

◆ addRecipient()

void QxtMailMessage::addRecipient ( const QString & a,
QxtMailMessage::RecipientType type = To )
Here is the caller graph for this function:

◆ attachment()

QxtMailAttachment QxtMailMessage::attachment ( const QString & filename) const

◆ attachments()

QHash< QString, QxtMailAttachment > QxtMailMessage::attachments ( ) const
Here is the caller graph for this function:

◆ body()

QString QxtMailMessage::body ( ) const
Here is the caller graph for this function:

◆ extraHeader()

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

◆ extraHeaders()

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

◆ hasExtraHeader()

bool QxtMailMessage::hasExtraHeader ( const QString & key) const
Here is the caller graph for this function:

◆ operator=()

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

◆ recipients()

QStringList QxtMailMessage::recipients ( QxtMailMessage::RecipientType type = To) const
Here is the caller graph for this function:

◆ removeAttachment()

void QxtMailMessage::removeAttachment ( const QString & filename)

◆ removeExtraHeader()

void QxtMailMessage::removeExtraHeader ( const QString & key)

◆ removeRecipient()

void QxtMailMessage::removeRecipient ( const QString & a)

◆ rfc2822()

QByteArray QxtMailMessage::rfc2822 ( ) const
Here is the call graph for this function:
Here is the caller graph for this function:

◆ sender()

QString QxtMailMessage::sender ( ) const
Here is the caller graph for this function:

◆ setBody()

void QxtMailMessage::setBody ( const QString & a)
Here is the caller graph for this function:

◆ setExtraHeader()

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

◆ setExtraHeaders()

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

◆ setSender()

void QxtMailMessage::setSender ( const QString & a)
Here is the caller graph for this function:

◆ setSubject()

void QxtMailMessage::setSubject ( const QString & a)
Here is the caller graph for this function:

◆ subject()

QString QxtMailMessage::subject ( ) const
Here is the caller graph for this function:

Member Data Documentation

◆ qxt_d

QSharedDataPointer<QxtMailMessagePrivate> QxtMailMessage::qxt_d
private

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