VMime
|
Public Member Functions | |
addressList () | |
addressList (const addressList &addrList) | |
~addressList () | |
shared_ptr< component > | clone () const |
void | copyFrom (const component &other) |
addressList & | operator= (const addressList &other) |
addressList & | operator= (const mailboxList &other) |
const std::vector< shared_ptr < component > > | getChildComponents () |
void | appendAddress (shared_ptr< address > addr) |
void | insertAddressBefore (shared_ptr< address > beforeAddress, shared_ptr< address > addr) |
void | insertAddressBefore (const size_t pos, shared_ptr< address > addr) |
void | insertAddressAfter (shared_ptr< address > afterAddress, shared_ptr< address > addr) |
void | insertAddressAfter (const size_t pos, shared_ptr< address > addr) |
void | removeAddress (shared_ptr< address > addr) |
void | removeAddress (const size_t pos) |
void | removeAllAddresses () |
size_t | getAddressCount () const |
bool | isEmpty () const |
shared_ptr< address > | getAddressAt (const size_t pos) |
const shared_ptr< const address > | getAddressAt (const size_t pos) const |
const std::vector< shared_ptr < const address > > | getAddressList () const |
const std::vector< shared_ptr < address > > | getAddressList () |
shared_ptr< mailboxList > | toMailboxList () 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 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 |
Referenced by mailboxList::appendMailbox(), and MDNHelper::buildMDN().
|
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 vmime::clone(), and addressList::removeAllAddresses().
Referenced by addressList::addressList(), and addressList::operator=().
|
protectedvirtual |
Implements component.
References generationContext::getMaxLineLength(), and generationContext::setMaxLineLength().
Return the address at the specified position.
pos | position |
std::out_of_range | if the position is out of range |
Referenced by messageBuilder::construct(), and mailboxList::getMailboxAt().
Return the address at the specified position.
pos | position |
std::out_of_range | if the position is out of range |
size_t getAddressCount | ( | ) | const |
Return the number of addresses in the list.
Referenced by mailboxList::getMailboxCount().
const std::vector< shared_ptr< const address > > getAddressList | ( | ) | const |
const std::vector< shared_ptr< address > > getAddressList | ( | ) |
Return the address list.
|
virtual |
Return the list of children of this component.
Implements component.
References vmime::copy_vector().
Referenced by mailboxList::getChildComponents().
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 |
Referenced by mailboxList::insertMailboxAfter().
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 |
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 |
Referenced by mailboxList::insertMailboxBefore().
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 |
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(), and address::parseNext().
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 |
Referenced by mailboxList::removeMailbox().
void removeAddress | ( | const size_t | pos | ) |
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 |
void removeAllAddresses | ( | ) |
Remove all addresses from the list.
Referenced by addressList::copyFrom(), addressList::operator=(), 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().