4 #include <HulaVersion.h> 7 #include <QNetworkAccessManager> 8 #include <QNetworkReply> 32 QNetworkAccessManager *manager;
37 QString downloadHostUrl;
38 QString downloadFileName;
44 explicit
Updater(QObject *parent =
nullptr);
47 void setUpdateHost(QString);
74 #endif // HL_UPDATER_H QString getDownloadFileName()
Method to check the downloaded file name.
Definition: Updater.cpp:60
void setUpdateHost(QString)
Sets the update host for the Updater.
Definition: Updater.cpp:40
Q_INVOKABLE bool checkForUpdate()
Creates the network request using the updateHostUrl.
Definition: Updater.cpp:123
Q_INVOKABLE void startHulaLoopInstaller()
Opens the HulaLoop installer application.
Definition: Updater.cpp:278
qint64 getNumBytesDownloaded()
Method to check how many bytes have been downloaded.
Definition: Updater.cpp:70
QList< int > parseTagName(const QString &)
A method to parse the tag name returned from the GitHub Releases API.
Definition: Updater.cpp:91
qint64 getDownloadSize()
Method to check the size of the download.
Definition: Updater.cpp:80
QString getUpdateHost()
Method to check the downloaded file name.
Definition: Updater.cpp:50
Wrapper around translation functions for Qt.
Definition: Controller.h:10
qint64 numBytesDownloaded
Exposes the numBytesDownloaded property to QML.
Definition: Updater.h:29
Q_INVOKABLE bool downloadUpdate()
Creates the network request using the downloadHostUrl.
Definition: Updater.cpp:217
QString updateHostUrl
Exposes the updateHostUrl property to QML.
Definition: Updater.h:19
Q_INVOKABLE void startHulaLoopApp()
Opens the HulaLoop application.
Definition: Updater.cpp:294
void bytesDownloaded()
A signal emitted when QNetworkReply's readyRead signal is triggered.
qint64 downloadSize
Exposes the downloadSize property to QML.
Definition: Updater.h:24