mailtransport
21#ifndef MAILTRANSPORT_SERVERTEST_H
22#define MAILTRANSPORT_SERVERTEST_H
24#include <mailtransport/mailtransport_export.h>
25#include <mailtransport/transport.h>
28#include <QtCore/QHash>
32namespace MailTransport {
34class ServerTestPrivate;
44 Q_PROPERTY( QString server READ server WRITE setServer )
45 Q_PROPERTY( QString protocol READ protocol WRITE setProtocol )
46 Q_PROPERTY( QProgressBar *progressBar READ progressBar WRITE setProgressBar )
76 void setServer(
const QString &server );
102 void setPort( Transport::EnumEncryption::type encryptionMode, uint port );
113 int port( Transport::EnumEncryption::type encryptionMode );
125 void setFakeHostname(
const QString &fakeHostname );
130 QString fakeHostname();
137 void setProgressBar( QProgressBar *pb );
148 void setProtocol(
const QString &protocol );
165 QList<int> normalProtocols();
171 bool isNormalPossible();
179 QList<int> tlsProtocols();
186 QList<int> secureProtocols();
192 bool isSecurePossible();
201 QList<Capability> capabilities()
const;
212 ServerTestPrivate *
const d;
214 Q_PRIVATE_SLOT( d,
void slotNormalPossible() )
215 Q_PRIVATE_SLOT( d,
void slotTlsDone() )
216 Q_PRIVATE_SLOT( d,
void slotSslPossible() )
217 Q_PRIVATE_SLOT( d,
void slotReadNormal( const QString &text ) )
218 Q_PRIVATE_SLOT( d,
void slotReadSecure( const QString &text ) )
219 Q_PRIVATE_SLOT( d,
void slotNormalNotPossible() )
220 Q_PRIVATE_SLOT( d,
void slotSslNotPossible() )
221 Q_PRIVATE_SLOT( d,
void slotUpdateProgress() )
This class can be used to test certain server to see if they support stuff.
QString server()
Returns the server to 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.
QString protocol()
Returns the protocol.
void finished(QList< int >)
This will be emitted when the test is done.
QProgressBar * progressBar()
Returns the used progress bar.
This file is part of the KDE documentation.
Documentation copyright © 1996-2022 The KDE developers.
Generated on Thu Jul 21 2022 00:00:00 by
doxygen 1.9.5 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.