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 ) )
111 void data(
const QString & );
131 #endif // MAILTRANSPORT_SOCKET_H
Responsible for communicating with the server, it's designed to work with the ServerTest class...
This file is part of the KDE documentation.
Documentation copyright © 1996-2013 The KDE developers.
Generated on Tue Nov 26 2013 09:03:01 by
doxygen 1.8.5 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.