![]() |
Cockatrice 2026-10-19-Development-3.1.2-beta.2
A virtual tabletop for multiplayer card games
|
#include <smtpclient.h>
Classes | |
| struct | PendingEmail |
Public Slots | |
| bool | enqueueActivationTokenMail (const QString &nickname, const QString &recipient, const QString &token) |
| bool | enqueueForgotPasswordTokenMail (const QString &nickname, const QString &recipient, const QString &token, qint64 rowId=-1) |
| void | sendAllEmails () |
Signals | |
| void | mailDelivered (const QString &userName, EmailType type, const QString &token, qint64 rowId) |
| void | mailPermanentlyFailed (const QString &userName, EmailType type, FailureReason reason, const QString &token, qint64 rowId) |
Public Member Functions | |
| SmtpClient (QObject *parent=nullptr) | |
| ~SmtpClient () override | |
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 | idleTimeout () |
| 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) |
Protected Attributes | |
| QxtSmtp * | smtp |
Private Member Functions | |
| PendingEmail | buildEmail (const QString &nickname, EmailType type, const QString &subject, const QString &body, const QString &recipient, const QString &token, const QString &email, qint64 rowId=-1) |
| bool | enqueue (const PendingEmail &email) |
| void | relayoutForSending () |
| QDateTime | nextRetryTime (int attempts, int retryDelay) const |
| void | recordFailed (int mailID) |
| void | recordConnectionFailure () |
| bool | validateEmailFields (const QString &email, const QString &subject, const QString &body, const QString &recipient, const QString &token, const QString &nickname) |
| int | maxRetries () const |
| int | retryDelaySeconds () const |
Private Attributes | |
| QHash< QString, PendingEmail > | pendingEmails |
| QHash< int, QString > | mailIdToUser |
| QTimer * | idleTimer |
| int | connectionAttempts = 0 |
| QDateTime | connectionBackoffUntil |
| SmtpClient::SmtpClient | ( | QObject * | parent = nullptr | ) |
|
override |
|
protectedslot |
|
protectedslot |
|
private |
|
protectedslot |
|
protectedslot |
|
protectedslot |
|
protectedslot |
|
protectedslot |
|
private |
|
slot |
|
slot |
|
protectedslot |
|
protectedslot |
|
signal |
|
protectedslot |
|
signal |
|
protectedslot |
|
private |
|
private |
|
protectedslot |
|
private |
|
private |
|
private |
|
private |
|
slot |
|
protectedslot |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
protected |