14 TPopMailer(
const QString &hostName, uint16_t port, QObject *parent = 0);
17 QString
key()
const {
return "pop"; }
18 QString
hostName()
const {
return _popHostName; }
19 void setHostName(
const QString &hostName);
20 uint16_t
port()
const {
return _popPort; }
21 void setPort(uint16_t port);
22 void setUserName(
const QByteArray &username);
23 void setPassword(
const QByteArray &password);
24 void setApopEnabled(
bool enable);
27 QByteArray readMail(
int index);
33 bool cmdApop(
const QByteArray &token);
35 bool cmdRetr(
int index, QByteArray &message);
38 bool cmd(
const QByteArray &command, QByteArray *reply = 0);
39 bool readResponse(QByteArray *reply = 0);
40 bool write(
const QByteArray &command);
46 QTcpSocket *_socket {
nullptr};
48 uint16_t _popPort {0};
51 bool _apopEnabled {
false};
The TPopMailer class provides a simple functionality to receive emails by POP.
Definition tpopmailer.h:10
uint16_t port() const
Definition tpopmailer.h:20
QString hostName() const
Definition tpopmailer.h:18
void setPassword(const QByteArray &password)
Definition tpopmailer.h:61
QString key() const
Definition tpopmailer.h:17
void setUserName(const QByteArray &username)
Definition tpopmailer.h:55
#define T_CORE_EXPORT
Definition tdeclexport.h:28
#define T_DISABLE_COPY(Class)
Definition tdeclexport.h:37
#define T_DISABLE_MOVE(Class)
Definition tdeclexport.h:41