43 lines
604 B
C++
43 lines
604 B
C++
|
#include "emailaddress.h"
|
||
|
|
||
|
/* [1] Constructors and Destructors */
|
||
|
|
||
|
EmailAddress::EmailAddress(const QString & address, const QString & name)
|
||
|
{
|
||
|
this->address = address;
|
||
|
this->name = name;
|
||
|
}
|
||
|
|
||
|
EmailAddress::~EmailAddress()
|
||
|
{
|
||
|
}
|
||
|
|
||
|
/* [1] --- */
|
||
|
|
||
|
|
||
|
/* [2] Getters and Setters */
|
||
|
|
||
|
void EmailAddress::setName(const QString & name)
|
||
|
{
|
||
|
this->name = name;
|
||
|
|
||
|
}
|
||
|
|
||
|
void EmailAddress::setAddress(const QString & address)
|
||
|
{
|
||
|
this->address = address;
|
||
|
}
|
||
|
|
||
|
const QString & EmailAddress::getName() const
|
||
|
{
|
||
|
return name;
|
||
|
}
|
||
|
|
||
|
const QString & EmailAddress::getAddress() const
|
||
|
{
|
||
|
return address;
|
||
|
}
|
||
|
|
||
|
/* [2] --- */
|
||
|
|