aboutsummaryrefslogtreecommitdiff
path: root/src/protocols/webclient.cpp
diff options
context:
space:
mode:
authorMike Skec <skec@protonmail.ch>2021-01-09 15:55:52 +1100
committerFelix Queißner <felix@ib-queissner.de>2021-01-10 13:40:46 +0100
commitc635094a6bdfcf2f081eb3c0ed9a1454ae2933fb (patch)
treeb41aca9c2803ad3acbe89c027b340b15ac473eee /src/protocols/webclient.cpp
parentdd3e8716b276f9f1646338f8801ca9a2f688fc46 (diff)
downloadkristall-c635094a6bdfcf2f081eb3c0ed9a1454ae2933fb.tar.gz
status bar: show request status when loading pages
status text for loading HTTP/S is only a simple 'loading webpage'. The other protocols display more information
Diffstat (limited to 'src/protocols/webclient.cpp')
-rw-r--r--src/protocols/webclient.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/protocols/webclient.cpp b/src/protocols/webclient.cpp
index e4a2036..58b3365 100644
--- a/src/protocols/webclient.cpp
+++ b/src/protocols/webclient.cpp
@@ -9,6 +9,8 @@ WebClient::WebClient() :
current_reply(nullptr)
{
manager.setRedirectPolicy(QNetworkRequest::NoLessSafeRedirectPolicy);
+
+ emit this->requestStateChange(RequestState::None);
}
WebClient::~WebClient()
@@ -29,6 +31,8 @@ bool WebClient::startRequest(const QUrl &url, RequestOptions options)
if(this->current_reply != nullptr)
return true;
+ emit this->requestStateChange(RequestState::StartedWeb);
+
this->options = options;
this->body.clear();
@@ -101,6 +105,8 @@ void WebClient::on_data()
void WebClient::on_finished()
{
+ emit this->requestStateChange(RequestState::None);
+
emit this->hostCertificateLoaded(this->current_reply->sslConfiguration().peerCertificate());
auto * const reply = this->current_reply;