|
VMime
|
#include <defaultAttachment.hpp>


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 |
Referenced by defaultAttachment(), and operator=().
| defaultAttachment | ( | shared_ptr< const contentHandler > | data, |
| const encoding & | enc, | ||
| const mediaType & | type, | ||
| const text & | desc = NULL_TEXT, | ||
| const word & | name = NULL_WORD ) |
References m_data, m_desc, m_encoding, m_name, and m_type.
| defaultAttachment | ( | shared_ptr< const contentHandler > | data, |
| const mediaType & | type, | ||
| const text & | desc = NULL_TEXT, | ||
| const word & | name = NULL_WORD ) |
References m_data, m_desc, m_encoding, m_name, and m_type.
| defaultAttachment | ( | const defaultAttachment & | attach | ) |
References attachment::attachment(), vmime::clone(), defaultAttachment(), m_data, m_desc, m_encoding, m_name, and m_type.
| ~defaultAttachment | ( | ) |
|
protectedvirtual |
References vmime::contentDispositionTypes::ATTACHMENT, vmime::dynamicCast(), m_data, m_desc, m_encoding, m_name, and m_type.
|
virtual |
Return the data contained in this attachment.
Implements attachment.
References m_data.
|
virtual |
Return the description of this attachment.
Implements attachment.
References m_desc.
|
virtual |
Return the encoding used for this attachment.
Implements attachment.
References m_encoding.
|
virtual |
Return the header of the attachment part.
Implements attachment.
|
virtual |
Return the (file) name of this attachment.
Implements attachment.
References 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 m_type.
| defaultAttachment & operator= | ( | const defaultAttachment & | attach | ) |
References vmime::clone(), defaultAttachment(), m_data, m_desc, m_encoding, m_name, and m_type.
|
protected |
Attachment data (eg.
the file contents)
Referenced by defaultAttachment(), defaultAttachment(), defaultAttachment(), fileAttachment::fileAttachment(), fileAttachment::fileAttachment(), fileAttachment::fileAttachment(), fileAttachment::fileAttachment(), generatePart(), getData(), and operator=().
|
protected |
Description (eg.
"The image you requested")
Referenced by defaultAttachment(), defaultAttachment(), defaultAttachment(), fileAttachment::fileAttachment(), fileAttachment::fileAttachment(), fileAttachment::fileAttachment(), fileAttachment::fileAttachment(), generatePart(), getDescription(), and operator=().
|
protected |
Encoding.
Referenced by defaultAttachment(), defaultAttachment(), defaultAttachment(), fileAttachment::fileAttachment(), fileAttachment::fileAttachment(), fileAttachment::fileAttachment(), fileAttachment::fileAttachment(), fileAttachment::fileAttachment(), fileAttachment::fileAttachment(), generatePart(), getEncoding(), and operator=().
|
protected |
Name/filename (eg.
"sunset.jpg")
Referenced by defaultAttachment(), defaultAttachment(), defaultAttachment(), generatePart(), getName(), and operator=().
|
protected |
Media type (eg.
"application/octet-stream")
Referenced by defaultAttachment(), defaultAttachment(), defaultAttachment(), fileAttachment::fileAttachment(), fileAttachment::fileAttachment(), fileAttachment::fileAttachment(), fileAttachment::fileAttachment(), fileAttachment::fileAttachment(), fileAttachment::fileAttachment(), generatePart(), getType(), and operator=().