diff options
| author | Felix (xq) Queißner <git@mq32.de> | 2020-06-19 19:23:50 +0200 |
|---|---|---|
| committer | Felix (xq) Queißner <git@mq32.de> | 2020-06-19 19:23:50 +0200 |
| commit | 5f6fbb575905455238465b425a2662a9c0de0e4e (patch) | |
| tree | 3754cb104df4093f0bd55ccf261200a7f6ee250e /src/browsertab.hpp | |
| parent | 6fb1b63b670fae0e0fbd77794c4d30c5c0ca74bc (diff) | |
| download | kristall-5f6fbb575905455238465b425a2662a9c0de0e4e.tar.gz | |
Implements network timeouts.
Diffstat (limited to 'src/browsertab.hpp')
| -rw-r--r-- | src/browsertab.hpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/browsertab.hpp b/src/browsertab.hpp index 47a9871..41126f2 100644 --- a/src/browsertab.hpp +++ b/src/browsertab.hpp @@ -8,6 +8,7 @@ #include <QTextDocument> #include <QNetworkAccessManager> #include <QElapsedTimer> +#include <QTimer> #include "documentoutlinemodel.hpp" #include "tabbrowsinghistory.hpp" @@ -106,6 +107,8 @@ private: // network slots void on_networkError(ProtocolHandler::NetworkError error, QString const & reason); void on_certificateRequired(QString const & info); + void on_networkTimeout(); + private: void setErrorMessage(QString const & msg); @@ -155,6 +158,8 @@ public: bool is_internal_location; DocumentStats current_stats; + + QTimer network_timeout_timer; }; #endif // BROWSERTAB_HPP |
