#include <EMailAddress.hpp>
Inheritance diagram for Ionflux::Tools::EMailAddress:
Public Member Functions | |
EMailAddress () | |
Constructor. | |
EMailAddress (const EMailAddress &initAddress) | |
Constructor. | |
EMailAddress (const std::string &initRawAddress) | |
Constructor. | |
virtual | ~EMailAddress () |
Destructor. | |
virtual void | clear () |
Clear. | |
virtual bool | parse (const std::string &newRawAddress="") |
Parse email address. | |
virtual bool | isValid () const |
Validate address. | |
virtual const std::vector< Mailbox > & | getMailboxes () const |
Get mailboxes. | |
virtual unsigned int | getNumMailboxes () const |
Get number of mailboxes. | |
virtual Mailbox | getMailbox (unsigned int mailboxIndex=0) const |
Get mailbox. | |
virtual EMailAddress & | operator= (const EMailAddress &newEMailAddress) |
Assignment operator. | |
virtual EMailAddress & | operator= (const std::string &newRawAddress) |
Assignment operator. | |
virtual void | printDebugInfo () const |
Print debug information. | |
virtual void | setRawAddress (const std::string &newRawAddress) |
Set unparsed address. | |
virtual void | setDisplayName (const std::string &newDisplayName) |
Set display name (mailbox or group). | |
virtual std::string | getRawAddress () const |
Get unparsed address. | |
virtual std::string | getDisplayName () const |
Get display name (mailbox or group). | |
Static Public Attributes | |
static const Ionflux::Tools::TokenType | TT_ATOM_TEXT |
Token type: Atom text. | |
static const Ionflux::Tools::TokenType | TT_SPECIAL |
Token type: Special. | |
static const Ionflux::Tools::TokenType | TT_FWS |
Token type: Folding whitespace. | |
Protected Attributes | |
bool | validAddress |
Validity flag. | |
std::vector< Mailbox > | mailboxes |
Mailboxes which are part of this address. | |
std::string | rawAddress |
Unparsed address. | |
std::string | displayName |
Display name (mailbox or group). |
An email address, as defined in RFC 2822.
|
Constructor. Construct new EMailAddress object. |
|
Constructor. Construct new EMailAddress object.
|
|
Constructor. Construct new EMailAddress object.
|
|
Destructor. Destruct EMailAddress object. |
|
Clear. Reset all fields. |
|
Get display name (mailbox or group).
|
|
Get mailbox. Get the mailbox with specified index.
|
|
Get mailboxes. Get the mailboxes which are part of this address.
|
|
Get number of mailboxes. Get the number of mailboxes which are part of this address.
|
|
Get unparsed address.
|
|
Validate address. Check whether this email address is valid.
|
|
Assignment operator. Assign a string to an EMailAddress.
|
|
Assignment operator. Assign one EMailAddress to another EMailAddress.
|
|
Parse email address. Parse an email address.
|
|
Print debug information. Print useful information for debugging purposes. |
|
Set display name (mailbox or group). Set new value of display name (mailbox or group).
|
|
Set unparsed address. Set new value of unparsed address.
|
|
Display name (mailbox or group).
|
|
Mailboxes which are part of this address.
|
|
Unparsed address.
|
|
Initial value: { TokenType::USERTYPE_ID + 1301, "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789" "!#$%&'*+-/=?^_`{|}~", false, 0}
|
|
Initial value: { TokenType::USERTYPE_ID + 1303, " \t\r\n", false, 0}
|
|
Initial value: { TokenType::USERTYPE_ID + 1302, "()<>[]:;@\\,.\"", false, 1}
|
|
Validity flag.
|