mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-04-27 07:48:01 -07:00
34 lines
No EOL
918 B
C++
34 lines
No EOL
918 B
C++
#ifndef SMTPCLIENT_H
|
|
#define SMTPCLIENT_H
|
|
|
|
#include <QObject>
|
|
|
|
class QxtSmtp;
|
|
class QxtMailMessage;
|
|
|
|
class SmtpClient : public QObject {
|
|
Q_OBJECT
|
|
public:
|
|
SmtpClient(QObject *parent = 0);
|
|
~SmtpClient();
|
|
protected:
|
|
QxtSmtp *smtp;
|
|
public slots:
|
|
bool enqueueActivationTokenMail(const QString &nickname, const QString &recipient, const QString &token);
|
|
void sendAllEmails();
|
|
protected slots:
|
|
void authenticated();
|
|
void authenticationFailed(const QByteArray & msg);
|
|
void connected();
|
|
void connectionFailed(const QByteArray & msg);
|
|
void disconnected();
|
|
void encrypted();
|
|
void encryptionFailed(const QByteArray & msg);
|
|
void finished();
|
|
void mailFailed(int mailID, int errorCode, const QByteArray & msg);
|
|
void mailSent(int mailID);
|
|
void recipientRejected(int mailID, const QString & address, const QByteArray & msg);
|
|
void senderRejected(int mailID, const QString & address, const QByteArray & msg);
|
|
};
|
|
|
|
#endif |