4
1
mirror of https://github.com/QuasarApp/qTbot.git synced 2025-05-07 10:49:38 +00:00

fix file interface

This commit is contained in:
Andrei Yankovich 2023-10-11 19:21:57 +02:00
parent 2f204ef710
commit 30edcdaba7
2 changed files with 5 additions and 5 deletions
src/qTbot/src/public/qTbot

@ -52,6 +52,10 @@ const QSharedPointer<QNetworkReply> &iFile::replay() const {
return _replay;
}
bool iFile::isFinished() const {
return _finished;
}
void iFile::handleError(QNetworkReply::NetworkError error) {
setError(error);
setUploadProgress(0);
@ -67,10 +71,6 @@ void iFile::handleDownloadProgressChanged(qint64 bytesReceived, qint64 bytesTota
setDownloadProgress(bytesReceived / static_cast<float>(bytesTotal));
}
bool iFile::finished() const {
return _finished;
}
void iFile::setDownloadRequest(const QSharedPointer<QNetworkReply> &replay) {
if (_replay) {

@ -86,7 +86,7 @@ public:
* @brief finished return true if the request was finished else false.
* @return true if the request was finished else false
*/
bool finished() const;
bool isFinished() const;
/**
* @brief setDownloadRequest This method sets replay for the file.