diff --git a/src/common/NetworkRequest.cpp b/src/common/NetworkRequest.cpp index 024f11a4b..3fbfa7d97 100644 --- a/src/common/NetworkRequest.cpp +++ b/src/common/NetworkRequest.cpp @@ -143,6 +143,11 @@ void NetworkRequest::execute() } } +QString NetworkRequest::urlString() const +{ + return this->data->request_.url().toString(); +} + Outcome NetworkRequest::tryLoadCachedFile() { QFile cachedFile(getPaths()->cacheDirectory() + "/" + diff --git a/src/common/NetworkRequest.hpp b/src/common/NetworkRequest.hpp index f1940621d..e6f122bbd 100644 --- a/src/common/NetworkRequest.hpp +++ b/src/common/NetworkRequest.hpp @@ -56,6 +56,8 @@ public: void execute(); + QString urlString() const; + private: // "invalid" data "invalid" is specified by the onSuccess callback Outcome tryLoadCachedFile();