10#include "mailtransport_export.h"
20namespace MailTransport
22class ServerTestPrivate;
32 Q_PROPERTY(
QString server READ server WRITE setServer)
33 Q_PROPERTY(
QString protocol READ protocol WRITE setProtocol)
34 Q_PROPERTY(
QProgressBar *progressBar READ progressBar WRITE setProgressBar)
63 void setServer(
const QString &server);
68 [[nodiscard]]
QString server()
const;
90 void setPort(Transport::EnumEncryption encryptionMode, uint port);
101 [[nodiscard]]
int port(Transport::EnumEncryption encryptionMode)
const;
113 void setFakeHostname(
const QString &fakeHostname);
118 [[nodiscard]]
QString fakeHostname()
const;
136 void setProtocol(
const QString &protocol);
141 [[nodiscard]]
QString protocol()
const;
153 [[nodiscard]]
QList<int> normalProtocols()
const;
159 [[nodiscard]]
bool isNormalPossible()
const;
167 [[nodiscard]]
QList<int> tlsProtocols()
const;
174 [[nodiscard]]
QList<int> secureProtocols()
const;
180 [[nodiscard]]
bool isSecurePossible()
const;
200 std::unique_ptr<ServerTestPrivate>
const d;
202 Q_PRIVATE_SLOT(d,
void slotNormalPossible())
203 Q_PRIVATE_SLOT(d,
void slotTlsDone())
204 Q_PRIVATE_SLOT(d,
void slotSslPossible())
205 Q_PRIVATE_SLOT(d,
void slotReadNormal(const
QString &text))
206 Q_PRIVATE_SLOT(d,
void slotReadSecure(const
QString &text))
207 Q_PRIVATE_SLOT(d,
void slotNormalNotPossible())
208 Q_PRIVATE_SLOT(d,
void slotSslNotPossible())
209 Q_PRIVATE_SLOT(d,
void slotUpdateProgress())
This class can be used to test certain server to see if they support stuff.
void finished(const QList< int > &)
This will be emitted when the test is done.
~ServerTest() override
Destroys the server test.
Capability
This enumeration has the special capabilities a server might support.
@ Pipelining
POP3 only. The server supports pipeplining of commands.
@ Top
POP3 only. The server supports fetching only the headers.
Q_SCRIPTABLE Q_NOREPLY void start()
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 4 2024 16:35:38 by
doxygen 1.12.0 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.