11#include "qnetworkreply.h"
35 iFile(
const QSharedPointer<QNetworkReply>& replay);
41 float uploadProgress()
const;
47 void setUploadProgress(
float newUploadProgress);
53 float downloadProgress()
const;
59 void setDownloadProgress(
float newDownloadProgress);
71 void setError(
int newError);
77 const QSharedPointer<QNetworkReply>& replay()
const;
89 bool isFinished()
const;
95 void setDownloadRequest(
const QSharedPointer<QNetworkReply>& replay);
102 void setFinished(
bool newFinished);
113 virtual void handleFinished();
119 virtual void handleError(QNetworkReply::NetworkError error);
128 void handleUploadProgressChanged(qint64 bytesSent, qint64 bytesTotal);
135 void handleDownloadProgressChanged(qint64 bytesReceived, qint64 bytesTotal);
164 float _uploadProgress = 0;
165 float _downloadProgress = 0;
167 bool _finished =
false;
169 QSharedPointer<QNetworkReply> _replay;
The ITelegramBot class This is base implementation of the all telegramm bots.
The iFile class This is main interface for all implementations of the files.
void errorChanged()
Signal emitted when the error code changes.
void uploadProgressChanged()
Signal emitted when the upload progress changes.
Type
The Type enum is type of the file object.
@ Local
This is local file, all receive bytes will be save directed into file.
virtual Type type() const =0
type This is type of the file object.
void downloadProgressChanged()
Signal emitted when the download progress changes.
virtual void handleReadReady()=0
Slot to handle when data is ready to be read.
void finishedChanged()
Signal emitted when the associated finished changes.
void replayChanged()
Signal emitted when the associated QNetworkReply changes.