VMime
|
Public Member Functions | |
mailboxList () | |
mailboxList (const mailboxList &mboxList) | |
shared_ptr< component > | clone () const |
void | copyFrom (const component &other) |
mailboxList & | operator= (const mailboxList &other) |
const std::vector< shared_ptr < component > > | getChildComponents () |
void | appendMailbox (shared_ptr< mailbox > mbox) |
void | insertMailboxBefore (shared_ptr< mailbox > beforeMailbox, shared_ptr< mailbox > mbox) |
void | insertMailboxBefore (const size_t pos, shared_ptr< mailbox > mbox) |
void | insertMailboxAfter (shared_ptr< mailbox > afterMailbox, shared_ptr< mailbox > mbox) |
void | insertMailboxAfter (const size_t pos, shared_ptr< mailbox > mbox) |
void | removeMailbox (shared_ptr< mailbox > mbox) |
void | removeMailbox (const size_t pos) |
void | removeAllMailboxes () |
size_t | getMailboxCount () const |
bool | isEmpty () const |
shared_ptr< mailbox > | getMailboxAt (const size_t pos) |
const shared_ptr< const mailbox > | getMailboxAt (const size_t pos) const |
const std::vector< shared_ptr < const mailbox > > | getMailboxList () const |
const std::vector< shared_ptr < mailbox > > | getMailboxList () |
shared_ptr< addressList > | toAddressList () 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 Member Functions | |
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 |
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 list of mailboxes (basic type).
This class works exactly like 'addressList' except it prevents user from inserting mailbox groups where it is not allowed by the RFC.
mailboxList | ( | ) |
mailboxList | ( | const mailboxList & | mboxList | ) |
void appendMailbox | ( | shared_ptr< mailbox > | mbox | ) |
Add a mailbox at the end of the list.
mbox | mailbox to append |
References addressList::appendAddress().
Referenced by MDNHelper::attachMDNRequest().
|
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.
Referenced by mailboxList::operator=().
|
protectedvirtual |
Implements component.
References component::generate().
|
virtual |
Return the list of children of this component.
Implements component.
References addressList::getChildComponents().
Return the mailbox at the specified position.
pos | position |
std::out_of_range | if the position is out of range |
References addressList::getAddressAt().
Referenced by MDNHelper::getPossibleMDNs(), MDNHelper::needConfirmation(), addressList::operator=(), and sendmailTransport::send().
Return the mailbox at the specified position.
pos | position |
std::out_of_range | if the position is out of range |
References addressList::getAddressAt().
size_t getMailboxCount | ( | ) | const |
Return the number of mailboxes in the list.
References addressList::getAddressCount().
Referenced by MDNHelper::getPossibleMDNs(), MDNHelper::needConfirmation(), addressList::operator=(), and sendmailTransport::send().
const std::vector< shared_ptr< const mailbox > > getMailboxList | ( | ) | const |
const std::vector< shared_ptr< mailbox > > getMailboxList | ( | ) |
Insert a new mailbox after the specified mailbox.
afterMailbox | mailbox after which the new mailbox will be inserted |
mbox | mailbox to insert |
std::out_of_range | if the mailbox is not in the list |
References addressList::insertAddressAfter().
Insert a new mailbox after the specified position.
pos | position of the mailbox before the new mailbox |
mbox | mailbox to insert |
std::out_of_range | if the position is out of range |
References addressList::insertAddressAfter().
Insert a new mailbox before the specified mailbox.
beforeMailbox | mailbox before which the new mailbox will be inserted |
mbox | mailbox to insert |
std::out_of_range | if the mailbox is not in the list |
References addressList::insertAddressBefore().
Insert a new mailbox before the specified position.
pos | position at which to insert the new mailbox (0 to insert at the beginning of the list) |
mbox | mailbox to insert |
std::out_of_range | if the position is out of range |
References addressList::insertAddressBefore().
bool isEmpty | ( | ) | const |
Tests whether the list of mailboxes is empty.
References addressList::isEmpty().
Referenced by sendmailTransport::send().
mailboxList & operator= | ( | const mailboxList & | other | ) |
References mailboxList::copyFrom().
|
protectedvirtual |
Reimplemented from component.
References vmime::end(), and address::parseNext().
void removeAllMailboxes | ( | ) |
Remove all mailboxes from the list.
References addressList::removeAllAddresses().
void removeMailbox | ( | shared_ptr< mailbox > | mbox | ) |
Remove the specified mailbox from the list.
mbox | mailbox to remove |
std::out_of_range | if the mailbox is not in the list |
References addressList::removeAddress().
void removeMailbox | ( | const size_t | pos | ) |
Remove the mailbox at the specified position.
pos | position of the mailbox to remove |
std::out_of_range | if the position is out of range |
References addressList::removeAddress().
shared_ptr< addressList > toAddressList | ( | ) | const |