diff options
author | Friedemann Kleint <[email protected]> | 2010-08-20 17:08:09 +0200 |
---|---|---|
committer | Friedemann Kleint <[email protected]> | 2010-08-20 17:08:09 +0200 |
commit | 94babbd9ca5eaf22817a41e2df29f2fc8dcad352 (patch) | |
tree | 69abc82cef309b100a67fdc3bbf634edad0cc39a /src/plugins/cpaster/codepasterprotocol.h | |
parent | a18c8f9e96df59ea7b77ed64927d29fd10ea085d (diff) |
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/codepasterprotocol.h')
-rw-r--r-- | src/plugins/cpaster/codepasterprotocol.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/plugins/cpaster/codepasterprotocol.h b/src/plugins/cpaster/codepasterprotocol.h index e899248ad07..e47481d03f8 100644 --- a/src/plugins/cpaster/codepasterprotocol.h +++ b/src/plugins/cpaster/codepasterprotocol.h @@ -53,7 +53,7 @@ public: bool hasSettings() const; Core::IOptionsPage *settingsPage() const; - virtual bool checkConfiguration(QString *errorMessage = 0) const; + virtual bool checkConfiguration(QString *errorMessage = 0); void fetch(const QString &id); void list(); void paste(const QString &text, @@ -72,6 +72,7 @@ private: QNetworkReply *m_fetchReply; QNetworkReply *m_listReply; QString m_fetchId; + QString m_hostChecked; }; } // namespace CodePaster |