mailtransport
20 #ifndef MAILTRANSPORT_SOCKET_H
21 #define MAILTRANSPORT_SOCKET_H
23 #include <mailtransport/mailtransport_export.h>
25 #include <QtNetwork/QSslSocket>
27 namespace MailTransport {
37 class MAILTRANSPORT_EXPORT
Socket :
public QObject
48 explicit Socket( QObject *parent );
59 virtual void reconnect();
64 virtual void write(
const QString &text );
69 virtual bool available();
74 void setProtocol(
const QString &proto );
79 void setServer(
const QString &server );
85 void setPort(
int port );
90 void setSecure(
bool what );
98 Q_DECLARE_PRIVATE(
Socket )
99 SocketPrivate *
const d;
101 Q_PRIVATE_SLOT( d,
void slotConnected() )
102 Q_PRIVATE_SLOT( d,
void slotStateChanged( QAbstractSocket::SocketState state ) )
103 Q_PRIVATE_SLOT( d,
void slotModeChanged( QSslSocket::SslMode state ) )
104 Q_PRIVATE_SLOT( d,
void slotSocketRead() )
105 Q_PRIVATE_SLOT( d,
void slotSslErrors(
const QList<QSslError> &errors ) )
131 #endif // MAILTRANSPORT_SOCKET_H
void connected()
emitted when there is a connection (ready to send something).
Responsible for communicating with the server, it's designed to work with the ServerTest class.
void failed()
emitted when not connected.
void tlsDone()
emitted when startShake() is completed.
void data(const QString &)
emits the incoming data
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Tue Jul 27 2021 06:50:51 by
doxygen 1.8.20 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.