VMime
|
Public Member Functions | |
defaultAttachment (shared_ptr< const contentHandler > data, const encoding &enc, const mediaType &type, const text &desc=NULL_TEXT, const word &name=NULL_WORD) | |
defaultAttachment (shared_ptr< const contentHandler > data, const mediaType &type, const text &desc=NULL_TEXT, const word &name=NULL_WORD) | |
defaultAttachment (const defaultAttachment &attach) | |
~defaultAttachment () | |
defaultAttachment & | operator= (const defaultAttachment &attach) |
const mediaType | getType () const |
const text | getDescription () const |
const word | getName () const |
const shared_ptr< const contentHandler > | getData () const |
const encoding | getEncoding () const |
shared_ptr< const object > | getPart () const |
shared_ptr< const header > | getHeader () const |
Public Member Functions inherited from attachment | |
virtual | ~attachment () |
Protected Member Functions | |
defaultAttachment () | |
virtual void | generatePart (shared_ptr< bodyPart > part) const |
Protected Member Functions inherited from attachment | |
attachment () | |
Protected Member Functions inherited from object | |
object () | |
object (const object &) | |
object & | operator= (const object &) |
virtual | ~object () |
Protected Attributes | |
mediaType | m_type |
text | m_desc |
shared_ptr< const contentHandler > | m_data |
encoding | m_encoding |
word | m_name |
Default implementation for attachments.
|
protected |
defaultAttachment | ( | shared_ptr< const contentHandler > | data, |
const encoding & | enc, | ||
const mediaType & | type, | ||
const text & | desc = NULL_TEXT , |
||
const word & | name = NULL_WORD |
||
) |
defaultAttachment | ( | shared_ptr< const contentHandler > | data, |
const mediaType & | type, | ||
const text & | desc = NULL_TEXT , |
||
const word & | name = NULL_WORD |
||
) |
defaultAttachment | ( | const defaultAttachment & | attach | ) |
~defaultAttachment | ( | ) |
|
protectedvirtual |
|
virtual |
Return the data contained in this attachment.
Implements attachment.
References defaultAttachment::m_data.
|
virtual |
Return the description of this attachment.
Implements attachment.
References defaultAttachment::m_desc.
|
virtual |
Return the encoding used for this attachment.
Implements attachment.
References defaultAttachment::m_encoding.
|
virtual |
Return the header of the attachment part.
Implements attachment.
|
virtual |
Return the (file) name of this attachment.
Implements attachment.
References defaultAttachment::m_name.
|
virtual |
Return the part in which the attachment has been found.
This can be a vmime::bodyPart or a vmime::net::part object.
Implements attachment.
|
virtual |
Return the media type of this attachment.
Implements attachment.
References defaultAttachment::m_type.
defaultAttachment & operator= | ( | const defaultAttachment & | attach | ) |
|
protected |
Attachment data (eg.
the file contents)
Referenced by fileAttachment::fileAttachment(), defaultAttachment::generatePart(), defaultAttachment::getData(), and defaultAttachment::operator=().
|
protected |
Description (eg.
"The image you requested")
Referenced by fileAttachment::fileAttachment(), defaultAttachment::generatePart(), defaultAttachment::getDescription(), and defaultAttachment::operator=().
|
protected |
Encoding.
Referenced by fileAttachment::fileAttachment(), defaultAttachment::generatePart(), defaultAttachment::getEncoding(), and defaultAttachment::operator=().
|
protected |
Name/filename (eg.
"sunset.jpg")
Referenced by defaultAttachment::generatePart(), defaultAttachment::getName(), and defaultAttachment::operator=().
|
protected |
Media type (eg.
"application/octet-stream")
Referenced by fileAttachment::fileAttachment(), defaultAttachment::generatePart(), defaultAttachment::getType(), and defaultAttachment::operator=().