diff options
author | Liang Qi <liang.qi@theqtcompany.com> | 2015-02-16 14:51:41 +0100 |
---|---|---|
committer | Liang Qi <liang.qi@theqtcompany.com> | 2015-02-17 12:59:47 +0000 |
commit | 1bbba5b9e8761fabe79a212e221102503fb0ac25 (patch) | |
tree | 2819879f98063497e9961166ee456227323c0c9f /examples/websockets/echoclient/echoclient.h | |
parent | e0521c794bd1a4325d0c59e8f75aa263efa671d5 (diff) | |
download | qtwebsockets-1bbba5b9e8761fabe79a212e221102503fb0ac25.tar.gz |
Examples: add an option for debug outputs in echoclient
Change-Id: I9bec2324b666c00212135ef6c9d5a69594cda050
Reviewed-by: Topi Reiniƶ <topi.reinio@digia.com>
Diffstat (limited to 'examples/websockets/echoclient/echoclient.h')
-rw-r--r-- | examples/websockets/echoclient/echoclient.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/websockets/echoclient/echoclient.h b/examples/websockets/echoclient/echoclient.h index 2ddef4c..dc005dc 100644 --- a/examples/websockets/echoclient/echoclient.h +++ b/examples/websockets/echoclient/echoclient.h @@ -40,7 +40,7 @@ class EchoClient : public QObject { Q_OBJECT public: - explicit EchoClient(const QUrl &url, QObject *parent = Q_NULLPTR); + explicit EchoClient(const QUrl &url, bool debug = false, QObject *parent = Q_NULLPTR); Q_SIGNALS: void closed(); @@ -52,6 +52,7 @@ private Q_SLOTS: private: QWebSocket m_webSocket; QUrl m_url; + bool m_debug; }; #endif // ECHOCLIENT_H |