Add DownloadRequest::destFileName

This commit is contained in:
jagannatharjun 2021-08-29 12:20:56 +05:30
parent 615b76f78c
commit 8b5db328ec
3 changed files with 29 additions and 1 deletions

View file

@ -348,6 +348,17 @@ Net::DownloadRequest &Net::DownloadRequest::saveToFile(const bool value)
return *this;
}
QString Net::DownloadRequest::destFileName() const
{
return m_destFileName;
}
Net::DownloadRequest &Net::DownloadRequest::destFileName(const QString &value)
{
m_destFileName = value;
return *this;
}
Net::ServiceID Net::ServiceID::fromURL(const QUrl &url)
{
return {url.host(), url.port(80)};