Cockatrice 2026-10-19-Development-3.1.2-beta.2
A virtual tabletop for multiplayer card games
Loading...
Searching...
No Matches
smtpclient.cpp File Reference
#include "smtpclient.h"
#include "settingscache.h"
#include "smtp/qxtmailmessage.h"
#include "smtp/qxtsmtp.h"
#include <QAbstractSocket>
#include <QByteArray>
#include <QDebug>
#include <QLoggingCategory>
#include <QSharedPointer>
#include <QSslSocket>
#include <QString>
#include <QTcpSocket>
#include <QVariant>
#include <qlogging.h>
#include <qobjectdefs.h>
Include dependency graph for smtpclient.cpp:

Functions

 Q_LOGGING_CATEGORY (SmtpClientLog, "smtp_client") static QString pendingKey(const QString &userName
static bool isPermanentSmtpReply (const QByteArray &msg)

Variables

static const qint64 DEFAULT_MAX_RETRIES = 5
static const qint64 DEFAULT_RETRY_DELAY = 60
static const qint64 MAX_RETRY_DELAY = 1800
static const qint64 IDLE_TIMEOUT_MS = 60000
static const int MAX_BACKOFF_SHIFT = 10
EmailType type
EmailType const QString & token

Function Documentation

◆ isPermanentSmtpReply()

bool isPermanentSmtpReply ( const QByteArray & msg)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ Q_LOGGING_CATEGORY()

Q_LOGGING_CATEGORY ( SmtpClientLog ,
"smtp_client"  ) const &
inline
Here is the call graph for this function:

Variable Documentation

◆ DEFAULT_MAX_RETRIES

const qint64 DEFAULT_MAX_RETRIES = 5
static

◆ DEFAULT_RETRY_DELAY

const qint64 DEFAULT_RETRY_DELAY = 60
static

◆ IDLE_TIMEOUT_MS

const qint64 IDLE_TIMEOUT_MS = 60000
static

◆ MAX_BACKOFF_SHIFT

const int MAX_BACKOFF_SHIFT = 10
static

◆ MAX_RETRY_DELAY

const qint64 MAX_RETRY_DELAY = 1800
static

◆ token

return userName typeName token
Initial value:
{
const char *typeName = (type == EmailType::Activation) ? "activation" : "forgotpassword"
EmailType type
Definition smtpclient.cpp:30
@ Activation
Definition smtpclient.h:21

◆ type

EmailType type