|
VMime
|
#include <addressList.hpp>


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 addresses.
| addressList | ( | ) |
| addressList | ( | const addressList & | addrList | ) |
References addressList::copyFrom().
| ~addressList | ( | ) |
References addressList::removeAllAddresses().
| void appendAddress | ( | shared_ptr< address > | addr | ) |
Add a address at the end of the list.
| addr | address to append |
References vmime::dynamicCast().
Referenced by mailboxList::appendMailbox(), MDNHelper::buildMDN(), and mailboxList::parseImpl().
|
virtual |
Clone this component.
Implements component.
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::clone(), and addressList::removeAllAddresses().
Referenced by addressList::addressList(), and addressList::operator=().
|
protectedvirtual |
Implements component.
References generationContext::getMaxLineLength(), and generationContext::setMaxLineLength().
| shared_ptr< address > getAddressAt | ( | const size_t | pos | ) |
Return the address at the specified position.
| pos | position |
| std::out_of_range | if the position is out of range |
References vmime::dynamicCast().
Referenced by messageBuilder::construct(), mailboxList::getMailboxAt(), and mailboxList::getMailboxAt().
Return the address at the specified position.
| pos | position |
| std::out_of_range | if the position is out of range |
References vmime::dynamicCast().
| size_t getAddressCount | ( | ) | const |
Return the number of addresses in the list.
Referenced by mailboxList::getMailboxCount().
| const std::vector< shared_ptr< address > > getAddressList | ( | ) |
Return the address list.
| const std::vector< shared_ptr< const address > > getAddressList | ( | ) | const |
Return the address list.
References vmime::dynamicCast().
Referenced by mailboxList::getMailboxList(), and mailboxList::getMailboxList().
|
virtual |
Return the list of children of this component.
Implements component.
References vmime::copy_vector().
Referenced by mailboxList::getChildComponents().
| void insertAddressAfter | ( | const size_t | pos, |
| shared_ptr< address > | addr | ||
| ) |
Insert a new address after the specified position.
| pos | position of the address before the new address |
| addr | address to insert |
| std::out_of_range | if the position is out of range |
References vmime::dynamicCast().
| void insertAddressAfter | ( | shared_ptr< address > | afterAddress, |
| shared_ptr< address > | addr | ||
| ) |
Insert a new address after the specified address.
| afterAddress | address after which the new address will be inserted |
| addr | address to insert |
| std::out_of_range | if the address is not in the list |
References vmime::dynamicCast().
Referenced by mailboxList::insertMailboxAfter(), and mailboxList::insertMailboxAfter().
| void insertAddressBefore | ( | const size_t | pos, |
| shared_ptr< address > | addr | ||
| ) |
Insert a new address before the specified position.
| pos | position at which to insert the new address (0 to insert at the beginning of the list) |
| addr | address to insert |
| std::out_of_range | if the position is out of range |
References vmime::dynamicCast().
| void insertAddressBefore | ( | shared_ptr< address > | beforeAddress, |
| shared_ptr< address > | addr | ||
| ) |
Insert a new address before the specified address.
| beforeAddress | address before which the new address will be inserted |
| addr | address to insert |
| std::out_of_range | if the address is not in the list |
References vmime::dynamicCast().
Referenced by mailboxList::insertMailboxBefore(), and mailboxList::insertMailboxBefore().
| bool isEmpty | ( | ) | const |
Tests whether the list of addresses is empty.
Referenced by messageBuilder::construct(), and mailboxList::isEmpty().
| addressList & operator= | ( | const addressList & | other | ) |
References addressList::copyFrom().
| addressList & operator= | ( | const mailboxList & | other | ) |
|
protectedvirtual |
Reimplemented from component.
References vmime::end(), address::parseNext(), addressList::removeAllAddresses(), and component::setParsedBounds().
Remove the address at the specified position.
| pos | position of the address to remove |
| std::out_of_range | if the position is out of range |
References vmime::dynamicCast().
| void removeAddress | ( | shared_ptr< address > | addr | ) |
Remove the specified address from the list.
| addr | address to remove |
| std::out_of_range | if the address is not in the list |
References vmime::dynamicCast().
Referenced by mailboxList::removeMailbox(), and mailboxList::removeMailbox().
| void removeAllAddresses | ( | ) |
Remove all addresses from the list.
Referenced by addressList::copyFrom(), addressList::operator=(), addressList::parseImpl(), mailboxList::parseImpl(), mailboxList::removeAllMailboxes(), and addressList::~addressList().
| shared_ptr< mailboxList > toMailboxList | ( | ) | const |
Return a list of mailboxes.
If some addresses are actually groups, mailboxes are recursively extracted from these groups.
References vmime::clone(), and vmime::dynamicCast().