The File class is implementations for local files.
More...
#include <file.h>
|
| File (const QSharedPointer< QNetworkReply > &replay, const QString &filePath) |
|
| File (const QString &filePath) |
|
const QFile & | localFile () const |
|
Type | type () const override |
| type This is type of the file object.
|
|
| iFile (const QSharedPointer< QNetworkReply > &replay) |
|
float | uploadProgress () const |
| Get the current upload progress.
|
|
void | setUploadProgress (float newUploadProgress) |
| Set the upload progress.
|
|
float | downloadProgress () const |
| Get the current download progress.
|
|
void | setDownloadProgress (float newDownloadProgress) |
| Set the download progress.
|
|
int | error () const |
| Get the error code associated with this file.
|
|
void | setError (int newError) |
| Set the error code for this file.
|
|
const QSharedPointer< QNetworkReply > & | replay () const |
| Get the shared pointer to the associated QNetworkReply.
|
|
bool | isFinished () const |
| finished return true if the request was finished else false.
|
|
void | setDownloadRequest (const QSharedPointer< QNetworkReply > &replay) |
| setDownloadRequest This method sets replay for the file.
|
|
The File class is implementations for local files.
Definition at line 19 of file file.h.
◆ File() [1/2]
qTbot::File::File |
( |
const QSharedPointer< QNetworkReply > & |
replay, |
|
|
const QString & |
filePath |
|
) |
| |
◆ File() [2/2]
qTbot::File::File |
( |
const QString & |
filePath | ) |
|
◆ handleError
void qTbot::File::handleError |
( |
QNetworkReply::NetworkError |
error | ) |
|
|
overrideprotectedslot |
◆ handleFinished
void qTbot::File::handleFinished |
( |
| ) |
|
|
overrideprotectedslot |
◆ handleReadReady
void qTbot::File::handleReadReady |
( |
| ) |
|
|
overrideprotectedslot |
◆ localFile()
const QFile & qTbot::File::localFile |
( |
| ) |
const |
◆ type()
type This is type of the file object.
- Returns
- type of the file object.
Implements qTbot::iFile.
Definition at line 30 of file file.cpp.
The documentation for this class was generated from the following files: