summaryrefslogtreecommitdiffstats
path: root/installerbuilder/libinstaller/3rdparty/kdtools/KDUpdater/kdupdaterfiledownloader.h
diff options
context:
space:
mode:
Diffstat (limited to 'installerbuilder/libinstaller/3rdparty/kdtools/KDUpdater/kdupdaterfiledownloader.h')
-rw-r--r--installerbuilder/libinstaller/3rdparty/kdtools/KDUpdater/kdupdaterfiledownloader.h19
1 files changed, 18 insertions, 1 deletions
diff --git a/installerbuilder/libinstaller/3rdparty/kdtools/KDUpdater/kdupdaterfiledownloader.h b/installerbuilder/libinstaller/3rdparty/kdtools/KDUpdater/kdupdaterfiledownloader.h
index 00ca58c1a..c66470588 100644
--- a/installerbuilder/libinstaller/3rdparty/kdtools/KDUpdater/kdupdaterfiledownloader.h
+++ b/installerbuilder/libinstaller/3rdparty/kdtools/KDUpdater/kdupdaterfiledownloader.h
@@ -80,10 +80,15 @@ namespace KDUpdater
virtual void onSuccess() = 0;
Q_SIGNALS:
- void downloadProgress(double);
void downloadStarted();
void downloadCanceled();
+ void downloadProgress(double progress);
+ void estimatedDownloadTime(int seconds);
+ void downloadSpeed(qint64 bytesPerSecond);
+ void downloadStatus(const QString &status);
+ void downloadProgress(qint64 bytesReceived, qint64 bytesToReceive);
+
#ifndef Q_MOC_RUN
private:
#endif
@@ -94,6 +99,18 @@ namespace KDUpdater
void setDownloadCompleted( const QString& filepath );
void setDownloadAborted( const QString& error );
+ void runDownloadSpeedTimer();
+ void stopDownloadSpeedTimer();
+
+ void addSample(qint64 sample);
+ int downloadSpeedTimerId() const;
+ void setProgress(qint64 bytesReceived, qint64 bytesToReceive);
+
+ void emitDownloadSpeed();
+ void emitDownloadStatus();
+ void emitDownloadProgress();
+ void emitEstimatedDownloadTime();
+
private Q_SLOTS:
virtual void doDownload() = 0;