MessageCore::AttachmentPart

MessageCore::AttachmentPart Class Reference

#include <attachmentpart.h>

Public Types

typedef QList< PtrList
 
typedef QSharedPointer< AttachmentPartPtr
 

Public Member Functions

 AttachmentPart ()
 
virtual ~AttachmentPart ()
 
QByteArray charset () const
 
QByteArray data () const
 
QString description () const
 
KMime::Headers::contentEncoding encoding () const
 
QString fileName () const
 
bool isAutoEncoding () const
 
bool isCompressed () const
 
bool isEncrypted () const
 
bool isInline () const
 
bool isMessageOrMessageCollection () const
 
bool isSigned () const
 
QByteArray mimeType () const
 
QString name () const
 
void setAutoEncoding (bool enabled)
 
void setCharset (const QByteArray &charset)
 
void setCompressed (bool compressed)
 
void setData (const QByteArray &data)
 
void setDescription (const QString &description)
 
void setEncoding (KMime::Headers::contentEncoding encoding)
 
void setEncrypted (bool encrypted)
 
void setFileName (const QString &name)
 
void setInline (bool value)
 
void setMimeType (const QByteArray &mimeType)
 
void setName (const QString &name)
 
void setSigned (bool sign)
 
void setUrl (const QUrl &url)
 
qint64 size () const
 
QUrl url () const
 

Detailed Description

A class that encapsulates an attachment.

Author
Constantin Berzan exit3[email protected][email protected][email protected]gmail[email protected].com

Definition at line 25 of file attachmentpart.h.

Member Typedef Documentation

Defines a list of pointers to attachment objects.

Definition at line 36 of file attachmentpart.h.

Defines a pointer to an attachment object.

Definition at line 31 of file attachmentpart.h.

Constructor & Destructor Documentation

AttachmentPart::AttachmentPart ( )

Creates a new attachment part.

Definition at line 76 of file attachmentpart.cpp.

AttachmentPart::~AttachmentPart ( )
virtual

Destroys the attachment part.

Definition at line 81 of file attachmentpart.cpp.

Member Function Documentation

QByteArray AttachmentPart::charset ( ) const

Returns the charset that will be used for the attachment.

Definition at line 154 of file attachmentpart.cpp.

QByteArray AttachmentPart::data ( ) const

Returns the payload data of the attachment.

Definition at line 204 of file attachmentpart.cpp.

QString AttachmentPart::description ( ) const

Returns the description of the attachment.

Definition at line 106 of file attachmentpart.cpp.

KMime::Headers::contentEncoding AttachmentPart::encoding ( ) const

Returns the encoding that will be used for the attachment.

Definition at line 142 of file attachmentpart.cpp.

QString AttachmentPart::fileName ( ) const

Returns the file name of the attachment.

Definition at line 96 of file attachmentpart.cpp.

bool AttachmentPart::isAutoEncoding ( ) const

Returns whether encoding of the attachment will be determined automatically.

Definition at line 126 of file attachmentpart.cpp.

bool AttachmentPart::isCompressed ( ) const

Returns whether the attachment is compressed.

Definition at line 174 of file attachmentpart.cpp.

bool AttachmentPart::isEncrypted ( ) const

Returns whether the attachment is encrypted.

Definition at line 184 of file attachmentpart.cpp.

bool AttachmentPart::isInline ( ) const

Returns whether the attachment will be displayed inline the message.

Definition at line 116 of file attachmentpart.cpp.

bool AttachmentPart::isMessageOrMessageCollection ( ) const

Returns whether the specified attachment part is an encapsulated message (message/rfc822) or a collection of encapsulated messages (multipart/digest)

Definition at line 225 of file attachmentpart.cpp.

bool AttachmentPart::isSigned ( ) const

Returns whether the attachment is signed.

Definition at line 194 of file attachmentpart.cpp.

QByteArray AttachmentPart::mimeType ( ) const

Returns the mime type of the attachment.

Definition at line 164 of file attachmentpart.cpp.

QString AttachmentPart::name ( ) const

Returns the name of the attachment.

Definition at line 86 of file attachmentpart.cpp.

void AttachmentPart::setAutoEncoding ( bool  enabled)

Sets whether encoding of the attachment will be determined automatically.

Definition at line 131 of file attachmentpart.cpp.

void AttachmentPart::setCharset ( const QByteArray charset)

Sets the charset that will be used for the attachment.

Definition at line 159 of file attachmentpart.cpp.

void AttachmentPart::setCompressed ( bool  compressed)

Sets whether the attachment is compressed.

Definition at line 179 of file attachmentpart.cpp.

void AttachmentPart::setData ( const QByteArray data)

Sets the payload data of the attachment.

Definition at line 209 of file attachmentpart.cpp.

void AttachmentPart::setDescription ( const QString description)

Sets the description of the attachment.

Definition at line 111 of file attachmentpart.cpp.

void AttachmentPart::setEncoding ( KMime::Headers::contentEncoding  encoding)

Sets the encoding that will be used for the attachment.

Note
only applies if isAutoEncoding is false

Definition at line 147 of file attachmentpart.cpp.

void AttachmentPart::setEncrypted ( bool  encrypted)

Sets whether the attachment is encrypted.

Definition at line 189 of file attachmentpart.cpp.

void AttachmentPart::setFileName ( const QString name)

Sets the file name of the attachment.

The name will be used in the 'filename=' part of the Content-Disposition header.

Definition at line 101 of file attachmentpart.cpp.

void AttachmentPart::setInline ( bool  value)

Sets whether the attachment will be displayed inline the message.

Definition at line 121 of file attachmentpart.cpp.

void AttachmentPart::setMimeType ( const QByteArray mimeType)

Sets the mimeType of the attachment.

Definition at line 169 of file attachmentpart.cpp.

void AttachmentPart::setName ( const QString name)

Sets the name of the attachment.

The name will be used in the 'name=' part of the Content-Type header.

Definition at line 91 of file attachmentpart.cpp.

void AttachmentPart::setSigned ( bool  sign)

Sets whether the attachment is signed.

Definition at line 199 of file attachmentpart.cpp.

qint64 AttachmentPart::size ( ) const

Returns the size of the attachment.

Definition at line 220 of file attachmentpart.cpp.


The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Wed Aug 12 2020 23:12:58 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.