diff options
author | Friedemann Kleint <Friedemann.Kleint@nokia.com> | 2010-08-20 17:08:09 +0200 |
---|---|---|
committer | Friedemann Kleint <Friedemann.Kleint@nokia.com> | 2010-08-20 17:08:09 +0200 |
commit | 94babbd9ca5eaf22817a41e2df29f2fc8dcad352 (patch) | |
tree | 69abc82cef309b100a67fdc3bbf634edad0cc39a /src/plugins/cpaster/pastebindotcaprotocol.h | |
parent | a18c8f9e96df59ea7b77ed64927d29fd10ea085d (diff) | |
download | qt-creator-94babbd9ca5eaf22817a41e2df29f2fc8dcad352.tar.gz |
CodePaster: Do better checking on hosts.
Do an initial connection check on the host
(once per host). Add utility function to
NetworkProtocol, displaying connection check
message box.
Move the 'Paste' handling into the PasteView
dialog, such that the checking happens there
and the dialog stays open if something fails.
Task-number: QTCREATORBUG-2117
Diffstat (limited to 'src/plugins/cpaster/pastebindotcaprotocol.h')
-rw-r--r-- | src/plugins/cpaster/pastebindotcaprotocol.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/plugins/cpaster/pastebindotcaprotocol.h b/src/plugins/cpaster/pastebindotcaprotocol.h index 38e1e12abe..9e08b544d1 100644 --- a/src/plugins/cpaster/pastebindotcaprotocol.h +++ b/src/plugins/cpaster/pastebindotcaprotocol.h @@ -56,11 +56,15 @@ public slots: void listFinished(); void pasteFinished(); +protected: + virtual bool checkConfiguration(QString *errorMessage); + private: QNetworkReply *m_fetchReply; QNetworkReply *m_listReply; QNetworkReply *m_pasteReply; QString m_fetchId; + bool m_hostChecked; }; } // namespace CodePaster |