qt_demoe/3rd_smtpclient/emailaddress.h

29 lines
450 B
C
Raw Normal View History

2019-11-21 06:28:56 +00:00
#ifndef EMAILADDRESS_H
#define EMAILADDRESS_H
#include <QObject>
class EmailAddress : public QObject
{
Q_OBJECT
public:
2021-09-16 06:48:38 +00:00
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-09-16 06:48:38 +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