KDECore
ktcpsocket.cpp
Go to the documentation of this file.
66 KTcpSocket::SslVersions validVersions (KTcpSocket::SslV2 | KTcpSocket::SslV3 | KTcpSocket::TlsV1);
184 return i18nc("SSL error","The root certificate authority's certificate is not trusted for this purpose");
186 return i18nc("SSL error","The certificate authority's certificate is marked to reject this certificate's purpose");
403 connect(&d->sock, SIGNAL(encryptedBytesWritten(qint64)), this, SIGNAL(encryptedBytesWritten(qint64)));
523 void KTcpSocket::connectToHost(const QHostAddress &hostAddress, quint16 port, ProxyPolicy policy)
694 void KTcpSocket::connectToHostEncrypted(const QString &hostName, quint16 port, OpenMode openMode)
void connectToHostEncrypted(const QString &hostName, quint16 port, OpenMode openMode=ReadWrite)
Definition: ktcpsocket.cpp:694
Definition: ktcpsocket.h:173
Definition: ktcpsocket.h:111
QString authenticationMethod() const
Definition: ktcpsocket.cpp:1035
Definition: ktcpsocket.h:44
void setCaCertificates(const QList< QSslCertificate > &certificates)
Definition: ktcpsocket.cpp:727
Definition: ktcpsocket.h:176
Definition: ktcpsocket.h:105
Definition: ktcpsocket.h:162
Definition: ktcpsocket.h:164
Definition: ktcpsocket.h:107
Definition: ktcpsocket.h:49
Definition: ktcpsocket.h:152
static KSslCertificateManager * self()
Definition: ksslcertificatemanager.cpp:466
Definition: ktcpsocket.h:46
void stateChanged(KTcpSocket::State)
void connectToHost(const QString &hostName, quint16 port, ProxyPolicy policy=AutoProxy)
Definition: ktcpsocket.cpp:507
Definition: ktcpsocket.h:70
virtual qint64 readData(char *data, qint64 maxSize)
Definition: ktcpsocket.cpp:488
Definition: ktcpsocket.h:155
Definition: ktcpsocket.h:50
static QList< KSslCipher > supportedCiphers()
Definition: ktcpsocket.cpp:1085
Definition: ktcpsocket.h:165
QString i18nc(const char *ctxt, const char *text)
Returns a localized version of a string and a context.
Definition: klocalizedstring.h:797
Definition: ktcpsocket.h:174
Definition: ktcpsocket.h:41
Definition: ktcpsocket.h:170
Definition: ktcpsocket.h:114
Definition: ktcpsocket.h:144
Definition: ktcpsocket.h:160
Definition: ktcpsocket.h:166
void setLocalCertificate(const QSslCertificate &certificate)
Definition: ktcpsocket.cpp:745
QVariant socketOption(QAbstractSocket::SocketOption options) const
Returns the state of the socket option.
Definition: ktcpsocket.cpp:807
static KTcpSocket::SslVersion kSslVersionFromQ(QSsl::SslProtocol protocol)
Definition: ktcpsocket.cpp:36
virtual bool waitForBytesWritten(int msecs)
Definition: ktcpsocket.cpp:476
bool waitForDisconnected(int msecs=30000)
Definition: ktcpsocket.cpp:646
Definition: ktcpsocket.h:102
Definition: ktcpsocket.h:149
Definition: ktcpsocket.h:108
KSslError(KSslError::Error error=NoError, const QSslCertificate &cert=QSslCertificate())
Definition: ktcpsocket.cpp:206
void setSslConfiguration(const QSslConfiguration &configuration)
Sets the socket's SSL configuration.
Definition: ktcpsocket.cpp:822
void setCiphers(const QList< KSslCipher > &ciphers)
Definition: ktcpsocket.cpp:734
void setSocketOption(QAbstractSocket::SocketOption options, const QVariant &value)
Sets the socket option to value.
Definition: ktcpsocket.cpp:812
Definition: ktcpsocket.h:175
KSslErrorUiData & operator=(const KSslErrorUiData &)
Definition: ktcpsocket.cpp:1146
void addCaCertificates(const QList< QSslCertificate > &certificates)
Definition: ktcpsocket.cpp:674
This class can hold all the necessary data from a KTcpSocket to ask the user to continue connecting i...
Definition: ktcpsocket.h:397
Definition: ktcpsocket.h:112
static QSsl::SslProtocol qSslProtocolFromK(KTcpSocket::SslVersion sslVersion)
Definition: ktcpsocket.cpp:59
Definition: ktcpsocket.h:113
Definition: ktcpsocket.h:45
Definition: ktcpsocket.h:150
void setVerificationPeerName(const QString &hostName)
Definition: ktcpsocket.cpp:757
Definition: ktcpsocket.h:151
Definition: ktcpsocket.h:214
virtual qint64 writeData(const char *data, qint64 maxSize)
Definition: ktcpsocket.cpp:494
void setAdvertisedSslVersion(SslVersion version)
Definition: ktcpsocket.cpp:851
QList< QSslCertificate > peerCertificateChain() const
Definition: ktcpsocket.cpp:709
Definition: ktcpsocket.h:216
Definition: ktcpsocket_p.h:23
Definition: ktcpsocket.h:215
Definition: ktcpsocket.h:103
void disconnected()
Use the proxy that KProtocolManager suggests for the connection parameters given. ...
Definition: ktcpsocket.h:220
QList< QSslCertificate > caCertificates() const
Definition: ktcpsocket.cpp:681
void encryptedBytesWritten(qint64 written)
unsigned int version()
Returns the encoded number of KDE's version, see the KDE_VERSION macro.
Definition: kdeversion.cpp:24
Definition: ktcpsocket.h:159
void encrypted()
void addCaCertificate(const QSslCertificate &certificate)
Definition: ktcpsocket.cpp:657
QString negotiatedSslVersionName() const
Definition: ktcpsocket.cpp:872
Definition: ktcpsocket.h:115
Definition: ktcpsocket.h:98
QList< QSslCertificate > certificateChain
Definition: ktcpsocket_p.h:29
Definition: ktcpsocket.h:161
Definition: ktcpsocket.h:109
virtual bool waitForReadyRead(int msecs=30000)
Definition: ktcpsocket.cpp:482
void hostFound()
void proxyAuthenticationRequired(const QNetworkProxy &proxy, QAuthenticator *authenticator)
void connected()
QSslConfiguration sslConfiguration() const
Returns the socket's SSL configuration.
Definition: ktcpsocket.cpp:817
SslVersion advertisedSslVersion() const
Definition: ktcpsocket.cpp:857
SslVersion negotiatedSslVersion() const
Definition: ktcpsocket.cpp:863
Definition: ktcpsocket.h:177
Definition: kaboutdata.h:33
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:47:09 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:47:09 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.