2019-11-21 06:28:56 +00:00
|
|
|
|
#ifndef EMAILADDRESS_H
|
|
|
|
|
#define EMAILADDRESS_H
|
|
|
|
|
|
|
|
|
|
#include <QObject>
|
|
|
|
|
|
|
|
|
|
class EmailAddress : public QObject
|
|
|
|
|
{
|
|
|
|
|
Q_OBJECT
|
|
|
|
|
public:
|
|
|
|
|
|
2021-08-12 03:19:48 +00:00
|
|
|
|
explicit EmailAddress();
|
2019-11-21 06:28:56 +00:00
|
|
|
|
EmailAddress(const QString &address, const QString &name = "");
|
|
|
|
|
|
|
|
|
|
~EmailAddress();
|
|
|
|
|
|
|
|
|
|
void setName(const QString &name);
|
|
|
|
|
void setAddress(const QString &address);
|
|
|
|
|
|
2021-08-12 03:19:48 +00:00
|
|
|
|
const QString getName() const;
|
|
|
|
|
const QString getAddress() const;
|
2019-11-21 06:28:56 +00:00
|
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
QString name;
|
|
|
|
|
QString address;
|
|
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
#endif // EMAILADDRESS_H
|