Windows: show progress in taskbar

Windows: show progress in taskbar
Closes #132

Implemented in ImageWriter class instead of qml for practical
reasons. GUI stuff does not really belong there, but there is no
easy way to have platform specific stuff in qml, lacking #ifdef
This commit is contained in:
Floris Bos 2020-12-09 14:23:40 +01:00
parent 1e73123ca9
commit 1d0087929c
4 changed files with 65 additions and 11 deletions

View file

@ -18,6 +18,7 @@
class QQmlApplicationEngine;
class DownloadThread;
class QNetworkReply;
class QWinTaskbarButton;
class ImageWriter : public QObject
{
@ -106,6 +107,8 @@ signals:
protected slots:
void startProgressPolling();
void stopProgressPolling();
void pollProgress();
void pollNetwork();
void syncTime();
@ -130,6 +133,9 @@ protected:
DownloadThread *_thread;
bool _verifyEnabled, _multipleFilesInZip, _cachingEnabled, _embeddedMode, _online;
QSettings _settings;
#ifdef Q_OS_WIN
QWinTaskbarButton *_taskbarButton;
#endif
void _parseCompressedFile();
};