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:63
void setUpdateHost(QString)
Sets the update host for the Updater.
Definition: Updater.cpp:43
Q_INVOKABLE void startHulaLoopInstaller()
Opens the HulaLoop installer application.
Definition: Updater.cpp:306
qint64 getNumBytesDownloaded()
Method to check how many bytes have been downloaded.
Definition: Updater.cpp:73
Q_INVOKABLE int downloadUpdate()
Creates the network request using the downloadHostUrl.
Definition: Updater.cpp:236
QList< int > parseTagName(const QString &)
A method to parse the tag name returned from the GitHub Releases API.
Definition: Updater.cpp:94
qint64 getDownloadSize()
Method to check the size of the download.
Definition: Updater.cpp:83
QString getUpdateHost()
Method to check the downloaded file name.
Definition: Updater.cpp:53
Wrapper around translation functions for Qt.
Definition: Controller.h:10
qint64 numBytesDownloaded
Exposes the numBytesDownloaded property to QML.
Definition: Updater.h:29
QString updateHostUrl
Exposes the updateHostUrl property to QML.
Definition: Updater.h:19
Q_INVOKABLE void startHulaLoopApp()
Opens the HulaLoop application.
Definition: Updater.cpp:322
void bytesDownloaded()
A signal emitted when QNetworkReply's readyRead signal is triggered.
qint64 downloadSize
Exposes the downloadSize property to QML.
Definition: Updater.h:24
Q_INVOKABLE QString getErrorMessage()
Method to check the descriptive error message.
Definition: Updater.cpp:125
Q_INVOKABLE int checkForUpdate()
Creates the network request using the updateHostUrl.
Definition: Updater.cpp:136