|
join 1.0
lightweight network framework library
|
mail recipient. More...
#include <mailmessage.hpp>


Public Types | |
| enum | Type { Recipient , CCRecipient , BCCRecipient } |
| recipient type. More... | |
Public Member Functions | |
| MailRecipient ()=default | |
| create the MailRecipient instance. | |
| MailRecipient (const std::string &address, Type t=Recipient) | |
| create the MailRecipient instance. | |
| MailRecipient (const std::string &address, const std::string &name, Type t=Recipient) | |
| create the MailRecipient instance. | |
| MailRecipient (const MailRecipient &other) | |
| create the MailRecipient instance by copy. | |
| MailRecipient & | operator= (const MailRecipient &other) |
| assign the MailRecipient instance by copy. | |
| MailRecipient (MailRecipient &&other) | |
| create the MailRecipient instance by move. | |
| MailRecipient & | operator= (MailRecipient &&other) |
| assign the MailRecipient instance by move. | |
| virtual | ~MailRecipient ()=default |
| destroy the MailRecipient instance. | |
| void | type (Type t) |
| set recipient type. | |
| Type | type () const |
| get recipient type. | |
Public Member Functions inherited from join::MailSender | |
| MailSender ()=default | |
| create the MailSender instance. | |
| MailSender (const std::string &address) | |
| create the MailSender instance. | |
| MailSender (const std::string &address, const std::string &name) | |
| create the MailSender instance. | |
| MailSender (const MailSender &other) | |
| create the MailSender instance by copy. | |
| MailSender & | operator= (const MailSender &other) |
| assign the MailSender instance by copy. | |
| MailSender (MailSender &&other) | |
| create the MailSender instance by move. | |
| MailSender & | operator= (MailSender &&other) |
| assign the MailSender instance by move. | |
| virtual | ~MailSender ()=default |
| destroy the MailSender instance. | |
| void | address (const std::string &addr) |
| set address. | |
| const std::string & | address () const |
| get address. | |
| void | realName (const std::string &name) |
| set real name. | |
| const std::string & | realName () const |
| get real name. | |
| bool | empty () const |
| check if empty. | |
Protected Attributes | |
| Type | _type = Recipient |
| recipient type. | |
Protected Attributes inherited from join::MailSender | |
| std::string | _address |
| address. | |
| std::string | _name |
| name. | |
mail recipient.
|
default |
create the MailRecipient instance.
create the MailRecipient instance.
| address | recipient address. |
| t | recipient type. |
| MailRecipient::MailRecipient | ( | const std::string & | address, |
| const std::string & | name, | ||
| Type | t = Recipient ) |
create the MailRecipient instance.
| address | recipient address. |
| name | recipient name. |
| t | recipient type. |
| MailRecipient::MailRecipient | ( | const MailRecipient & | other | ) |
create the MailRecipient instance by copy.
| other | request to copy. |
| MailRecipient::MailRecipient | ( | MailRecipient && | other | ) |
create the MailRecipient instance by move.
| other | request to move. |
|
virtualdefault |
destroy the MailRecipient instance.
| MailRecipient & MailRecipient::operator= | ( | const MailRecipient & | other | ) |
assign the MailRecipient instance by copy.
| other | request to copy. |
| MailRecipient & MailRecipient::operator= | ( | MailRecipient && | other | ) |
assign the MailRecipient instance by move.
| other | request to move. |
| MailRecipient::Type MailRecipient::type | ( | ) | const |
get recipient type.
| void MailRecipient::type | ( | Type | t | ) |
set recipient type.
| t | recipient type. |