|
VMime
|
#include <mailbox.hpp>


Protected Attributes | |
| text | m_name |
| emailAddress | m_email |
Additional Inherited Members | |
Static Public Member Functions inherited from address | |
| static shared_ptr< address > | parseNext (const parsingContext &ctx, const string &buffer, const size_t position, const size_t end, size_t *newPosition, bool *isLastAddressOfGroup) |
Protected Member Functions inherited from address | |
| address () | |
Protected Member Functions inherited from component | |
| void | setParsedBounds (const size_t start, const size_t end) |
| virtual void | parseImpl (const parsingContext &ctx, shared_ptr< utility::parserInputStreamAdapter > parser, const size_t position, const size_t end, size_t *newPosition=NULL) |
Protected Member Functions inherited from object | |
| object () | |
| object (const object &) | |
| object & | operator= (const object &) |
| virtual | ~object () |
A mailbox: full name + email (basic type).
| mailbox | ( | ) |
Referenced by IMAPFolder::getFolders(), and mailbox::operator!=().
| mailbox | ( | const emailAddress & | ) |
| mailbox | ( | const text & | name, |
| const emailAddress & | |||
| ) |
| void clear | ( | ) |
References mailbox::m_email, mailbox::m_name, and text::removeAllWords().
|
virtual |
Clone this component.
Implements address.
References vmime::dynamicCast().
Replace data in this component by data in other component.
Both components must be of the same type.
| std::bad_cast_exception | if the components are not of the same (dynamic) type |
| other | other component to copy data from |
Implements component.
References vmime::dynamicCast(), mailbox::m_email, and mailbox::m_name.
Referenced by mailbox::operator=().
|
virtual |
Implements component.
References vmime::dynamicCast(), text::encodeAndFold(), text::FORCE_ENCODING, emailAddress::generate(), text::getWordAt(), text::getWordCount(), text::isEmpty(), mailbox::m_email, mailbox::m_name, vmime::NEW_LINE_SEQUENCE, text::QUOTE_IF_POSSIBLE, and vmime::charsets::US_ASCII.
|
virtual |
Return the list of children of this component.
Implements component.
| const emailAddress & getEmail | ( | ) | const |
Return the full name of the mailbox (empty if not specified).
References mailbox::m_name.
|
virtual |
Check whether this address is empty (no mailboxes specified if this is a mailboxGroup -or- no email specified if this is a mailbox).
Implements address.
References emailAddress::isEmpty(), and mailbox::m_email.
Referenced by messageBuilder::construct().
|
virtual |
Test whether this is object is a mailboxGroup.
Implements address.
References mailbox::copyFrom().
References mailbox::m_email, and mailbox::m_name.
|
virtual |
Reimplemented from component.
References address::address(), text::decodeAndUnfold(), vmime::dynamicCast(), vmime::end(), parserHelpers::isSpace(), mailbox::m_email, mailbox::m_name, emailAddress::parse(), text::removeAllWords(), and component::setParsedBounds().
| void setEmail | ( | const emailAddress & | ) |
Set the email of the mailbox.
| email of the mailbox |
References vmime::dynamicCast(), and mailbox::m_email.
Set the full name of the mailbox.
| name | full name of the mailbox |
References mailbox::m_name.
|
protected |
|
protected |