VMime
|
Public Member Functions | |
mailbox () | |
mailbox (const mailbox &mbox) | |
mailbox (const emailAddress &email) | |
mailbox (const text &name, const emailAddress &email) | |
const text & | getName () const |
void | setName (const text &name) |
const emailAddress & | getEmail () const |
void | setEmail (const emailAddress &email) |
bool | operator== (const class mailbox &mailbox) const |
bool | operator!= (const class mailbox &mailbox) const |
void | copyFrom (const component &other) |
shared_ptr< component > | clone () const |
mailbox & | operator= (const mailbox &other) |
bool | isEmpty () const |
void | clear () |
const std::vector< shared_ptr < component > > | getChildComponents () |
bool | isGroup () const |
void | parseImpl (const parsingContext &ctx, const string &buffer, const size_t position, const size_t end, size_t *newPosition=NULL) |
void | generateImpl (const generationContext &ctx, utility::outputStream &os, const size_t curLinePos=0, size_t *newLinePos=NULL) const |
Public Member Functions inherited from headerFieldValue | |
size_t | getGeneratedSize (const generationContext &ctx) |
Public Member Functions inherited from component | |
component () | |
virtual | ~component () |
void | parse (const string &buffer) |
void | parse (const parsingContext &ctx, const string &buffer) |
void | parse (shared_ptr< utility::inputStream > inputStream, const size_t length) |
void | parse (const string &buffer, const size_t position, const size_t end, size_t *newPosition=NULL) |
void | parse (const parsingContext &ctx, const string &buffer, const size_t position, const size_t end, size_t *newPosition=NULL) |
void | parse (shared_ptr< utility::inputStream > inputStream, const size_t position, const size_t end, size_t *newPosition=NULL) |
void | parse (const parsingContext &ctx, shared_ptr< utility::inputStream > inputStream, const size_t position, const size_t end, size_t *newPosition=NULL) |
virtual const string | generate (const size_t maxLineLength=lineLengthLimits::infinite, const size_t curLinePos=0) const |
virtual void | generate (utility::outputStream &outputStream, const size_t curLinePos=0, size_t *newLinePos=NULL) const |
virtual void | generate (const generationContext &ctx, utility::outputStream &outputStream, const size_t curLinePos=0, size_t *newLinePos=NULL) const |
size_t | getParsedOffset () const |
size_t | getParsedLength () const |
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 |
|
virtual |
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 mailbox::m_email, and mailbox::m_name.
Referenced by mailbox::operator=().
|
virtual |
Implements component.
References text::FORCE_ENCODING, generationContext::getMaxLineLength(), 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 email of the mailbox.
References mailbox::m_email.
Referenced by SMTPCommand::MAIL(), MDNHelper::needConfirmation(), SMTPCommand::RCPT(), and sendmailTransport::send().
const text & getName | ( | ) | 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(), and sendmailTransport::send().
|
virtual |
Test whether this is object is a mailboxGroup.
Implements address.
bool operator!= | ( | const class mailbox & | mailbox | ) | const |
References mailbox::mailbox().
References mailbox::copyFrom().
bool operator== | ( | const class mailbox & | mailbox | ) | const |
References mailbox::m_email, and mailbox::m_name.
|
virtual |
Reimplemented from component.
References text::decodeAndUnfold(), vmime::end(), parserHelpers::isSpace(), and component::parse().
void setEmail | ( | const emailAddress & | ) |
void setName | ( | const text & | name | ) |
Set the full name of the mailbox.
name | full name of the mailbox |
References mailbox::m_name.
|
protected |
Referenced by mailbox::clear(), mailbox::copyFrom(), mailbox::getEmail(), mailbox::isEmpty(), mailbox::operator==(), and mailbox::setEmail().
|
protected |
Referenced by mailbox::clear(), mailbox::copyFrom(), mailbox::getName(), mailbox::operator==(), and mailbox::setName().