aboutsummaryrefslogtreecommitdiff
path: root/src/protocols/webclient.cpp
diff options
context:
space:
mode:
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;