join 1.0
lightweight network framework library
Loading...
Searching...
No Matches
join::MailRecipient Class Reference

mail recipient. More...

#include <mailmessage.hpp>

Inheritance diagram for join::MailRecipient:
Collaboration diagram for join::MailRecipient:

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.
 
MailRecipientoperator= (const MailRecipient &other)
 assign the MailRecipient instance by copy.
 
 MailRecipient (MailRecipient &&other)
 create the MailRecipient instance by move.
 
MailRecipientoperator= (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.
 
MailSenderoperator= (const MailSender &other)
 assign the MailSender instance by copy.
 
 MailSender (MailSender &&other)
 create the MailSender instance by move.
 
MailSenderoperator= (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.
 

Detailed Description

mail recipient.

Member Enumeration Documentation

◆ Type

recipient type.

Enumerator
Recipient 

recipient.

CCRecipient 

carbon copy.

BCCRecipient 

black carbon copy.

Constructor & Destructor Documentation

◆ MailRecipient() [1/5]

join::MailRecipient::MailRecipient ( )
default

create the MailRecipient instance.

◆ MailRecipient() [2/5]

MailRecipient::MailRecipient ( const std::string & address,
Type t = Recipient )

create the MailRecipient instance.

Parameters
addressrecipient address.
trecipient type.

◆ MailRecipient() [3/5]

MailRecipient::MailRecipient ( const std::string & address,
const std::string & name,
Type t = Recipient )

create the MailRecipient instance.

Parameters
addressrecipient address.
namerecipient name.
trecipient type.

◆ MailRecipient() [4/5]

MailRecipient::MailRecipient ( const MailRecipient & other)

create the MailRecipient instance by copy.

Parameters
otherrequest to copy.

◆ MailRecipient() [5/5]

MailRecipient::MailRecipient ( MailRecipient && other)

create the MailRecipient instance by move.

Parameters
otherrequest to move.

◆ ~MailRecipient()

virtual join::MailRecipient::~MailRecipient ( )
virtualdefault

destroy the MailRecipient instance.

Member Function Documentation

◆ operator=() [1/2]

MailRecipient & MailRecipient::operator= ( const MailRecipient & other)

assign the MailRecipient instance by copy.

Parameters
otherrequest to copy.
Returns
a reference of the current object.

◆ operator=() [2/2]

MailRecipient & MailRecipient::operator= ( MailRecipient && other)

assign the MailRecipient instance by move.

Parameters
otherrequest to move.
Returns
a reference of the current object.

◆ type() [1/2]

MailRecipient::Type MailRecipient::type ( ) const

get recipient type.

Returns
recipient type.

◆ type() [2/2]

void MailRecipient::type ( Type t)

set recipient type.

Parameters
trecipient type.

Member Data Documentation

◆ _type

Type join::MailRecipient::_type = Recipient
protected

recipient type.


The documentation for this class was generated from the following files: