add method to NetworkRequest to fetch the underlying url string
This commit is contained in:
@@ -143,6 +143,11 @@ void NetworkRequest::execute()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
QString NetworkRequest::urlString() const
|
||||||
|
{
|
||||||
|
return this->data->request_.url().toString();
|
||||||
|
}
|
||||||
|
|
||||||
Outcome NetworkRequest::tryLoadCachedFile()
|
Outcome NetworkRequest::tryLoadCachedFile()
|
||||||
{
|
{
|
||||||
QFile cachedFile(getPaths()->cacheDirectory() + "/" +
|
QFile cachedFile(getPaths()->cacheDirectory() + "/" +
|
||||||
|
|||||||
@@ -56,6 +56,8 @@ public:
|
|||||||
|
|
||||||
void execute();
|
void execute();
|
||||||
|
|
||||||
|
QString urlString() const;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
// "invalid" data "invalid" is specified by the onSuccess callback
|
// "invalid" data "invalid" is specified by the onSuccess callback
|
||||||
Outcome tryLoadCachedFile();
|
Outcome tryLoadCachedFile();
|
||||||
|
|||||||
Reference in New Issue
Block a user