summaryrefslogtreecommitdiffstats
path: root/examples/network/securesocketclient/sslclient.h
diff options
context:
space:
mode:
authorKai Koehne <kai.koehne@theqtcompany.com>2014-10-21 15:24:37 +0200
committerKai Koehne <kai.koehne@theqtcompany.com>2014-10-23 17:12:48 +0200
commita133cea211b77a98f0d35b0b3e3c214bac1dc6b8 (patch)
treeeeaeddab9f84ffbbf620a98105f9fff00330097c /examples/network/securesocketclient/sslclient.h
parent343d538727ccff3bea625ffc8068f4aeae60c751 (diff)
SecureSocketClient: Show general connection errors
So far the example didn't show any errors when the connection to the server couldn't be established (e.g. because the host/port number was wrong, but also because the SSL handshake already failed). The fix shows a modal error dialog in this case. Change-Id: Ia517bf79c5fb2ccdb1edabded28f86759f3e6dcf Reviewed-by: Richard J. Moore <rich@kde.org>
Diffstat (limited to 'examples/network/securesocketclient/sslclient.h')
-rw-r--r--examples/network/securesocketclient/sslclient.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/network/securesocketclient/sslclient.h b/examples/network/securesocketclient/sslclient.h
index 8ebf2cc536..efc3569743 100644
--- a/examples/network/securesocketclient/sslclient.h
+++ b/examples/network/securesocketclient/sslclient.h
@@ -1,6 +1,6 @@
/****************************************************************************
**
-** Copyright (C) 2013 Digia Plc and/or its subsidiary(-ies).
+** Copyright (C) 2014 Digia Plc and/or its subsidiary(-ies).
** Contact: http://www.qt-project.org/legal
**
** This file is part of the examples of the Qt Toolkit.
@@ -65,6 +65,7 @@ private slots:
void socketEncrypted();
void socketReadyRead();
void sendData();
+ void socketError(QAbstractSocket::SocketError error);
void sslErrors(const QList<QSslError> &errors);
void displayCertificateInfo();