mailtransport
MailTransport::ServerTest Class Reference
#include <servertest.h>
Inherits QWidget.
Detailed Description
This class can be used to test certain server to see if they support stuff.
Definition at line 41 of file servertest.h.
Signals | |
void | finished (QList< int >) |
Public Member Functions | |
ServerTest (QWidget *parent=0) | |
~ServerTest () | |
void | setServer (const QString &server) |
QString | server () |
void | setFakeHostname (const QString &fakeHostname) |
QString | fakeHostname () |
void | setProgressBar (QProgressBar *pb) |
QProgressBar * | progressBar () |
void | setProtocol (const QString &protocol) |
QString | protocol () |
void | start () |
QList< int > | normalProtocols () |
QList< int > | secureProtocols () |
Properties | |
QString | server |
QString | protocol |
QProgressBar | progressBar |
Constructor & Destructor Documentation
ServerTest::ServerTest | ( | QWidget * | parent = 0 |
) |
ServerTest::~ServerTest | ( | ) |
Member Function Documentation
void ServerTest::setServer | ( | const QString & | server | ) |
QString MailTransport::ServerTest::server | ( | ) |
Get the server to test.
void ServerTest::setFakeHostname | ( | const QString & | fakeHostname | ) |
Sets a fake hostname for the test.
This is currently only used when testing a SMTP server; there, the command for testing the capabilities (called EHLO) needs to have the hostname of the client included. The user can however choose to send a fake hostname instead of the local hostname to work around various problems. This fake hostname needs to be set here.
- Parameters:
-
fakeHostname the fake hostname to send
Definition at line 303 of file servertest.cpp.
QString ServerTest::fakeHostname | ( | ) |
- Returns:
- the fake hostname, as set before with setFakeHostname
Definition at line 308 of file servertest.cpp.
void ServerTest::setProgressBar | ( | QProgressBar * | pb | ) |
Makes pb
the progressbar to use.
This class will call show() and hide() and will count down. It does not take ownership of the progressbar.
Definition at line 318 of file servertest.cpp.
QProgressBar* MailTransport::ServerTest::progressBar | ( | ) |
returns the used progressBar
void ServerTest::setProtocol | ( | const QString & | protocol | ) |
Set proto
the protocol to test, currently supported are "smtp" and "imap".
This will be an enum soon.
Definition at line 323 of file servertest.cpp.
QString MailTransport::ServerTest::protocol | ( | ) |
returns the protocol
void ServerTest::start | ( | ) |
QList< int > ServerTest::normalProtocols | ( | ) |
Get the protocols for the normal connections.
. Call this only after the finished() signals has been sent.
- Returns:
- an enum of the type Transport::EnumAuthenticationType
Definition at line 343 of file servertest.cpp.
QList< int > ServerTest::secureProtocols | ( | ) |
Get the protocols for the secure connections.
. Call this only after the finished() signals has been sent.
- Returns:
- an enum of the type Transport::EnumAuthenticationType
Definition at line 348 of file servertest.cpp.
void MailTransport::ServerTest::finished | ( | QList< int > | ) | [signal] |
This will be emitted when the test is done.
It will contain the values from the enum EnumEncryption which are possible.
The documentation for this class was generated from the following files: