|
VMime
|
#include <mailboxGroup.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 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 () |
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) |
A group of mailboxes (basic type).
| mailboxGroup | ( | ) |
| mailboxGroup | ( | const mailboxGroup & | mboxGroup | ) |
References mailboxGroup::copyFrom(), and vmime::dynamicCast().
| mailboxGroup | ( | const text & | name | ) |
| ~mailboxGroup | ( | ) |
References mailboxGroup::removeAllMailboxes().
| void appendMailbox | ( | shared_ptr< mailbox > | mbox | ) |
Add a mailbox at the end of the list.
| mbox | mailbox to append |
References vmime::dynamicCast().
|
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::clone(), vmime::dynamicCast(), and mailboxGroup::removeAllMailboxes().
Referenced by mailboxGroup::mailboxGroup(), and mailboxGroup::operator=().
|
protectedvirtual |
Implements component.
References vmime::dynamicCast(), text::encodeAndFold(), text::FORCE_ENCODING, text::getWordAt(), text::getWordCount(), and vmime::charsets::US_ASCII.
|
virtual |
Return the list of children of this component.
Implements component.
References vmime::copy_vector().
| shared_ptr< mailbox > getMailboxAt | ( | const size_t | pos | ) |
Return the mailbox at the specified position.
| pos | position |
| std::out_of_range | if the position is out of range |
References vmime::dynamicCast().
Return the mailbox at the specified position.
| pos | position |
| std::out_of_range | if the position is out of range |
References vmime::dynamicCast().
| size_t getMailboxCount | ( | ) | const |
Return the number of mailboxes in the list.
| const std::vector< shared_ptr< mailbox > > getMailboxList | ( | ) |
Return the mailbox list.
| const std::vector< shared_ptr< const mailbox > > getMailboxList | ( | ) | const |
| void insertMailboxAfter | ( | const size_t | pos, |
| shared_ptr< mailbox > | mbox | ||
| ) |
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 vmime::dynamicCast().
| void insertMailboxAfter | ( | shared_ptr< mailbox > | afterMailbox, |
| shared_ptr< mailbox > | mbox | ||
| ) |
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 vmime::dynamicCast().
| void insertMailboxBefore | ( | const size_t | pos, |
| shared_ptr< mailbox > | mbox | ||
| ) |
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 vmime::dynamicCast().
| void insertMailboxBefore | ( | shared_ptr< mailbox > | beforeMailbox, |
| shared_ptr< mailbox > | mbox | ||
| ) |
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 vmime::dynamicCast().
|
virtual |
Tests whether the list of mailboxes is empty.
Implements address.
|
virtual |
Test whether this is object is a mailboxGroup.
Implements address.
| mailboxGroup & operator= | ( | const component & | other | ) |
References mailboxGroup::copyFrom().
|
protectedvirtual |
Reimplemented from component.
References vmime::clone(), text::decodeAndUnfold(), vmime::dynamicCast(), vmime::end(), parserHelpers::isSpace(), address::parseNext(), component::setParsedBounds(), and stringUtils::trim().
| void removeAllMailboxes | ( | ) |
Remove all mailboxes from the list.
Referenced by mailboxGroup::copyFrom(), and mailboxGroup::~mailboxGroup().
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 vmime::dynamicCast().
| 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 vmime::dynamicCast().