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:
parent
2f204ef710
commit
30edcdaba7
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user