4 #include <HulaVersion.h> 7 #include <QNetworkAccessManager> 8 #include <QNetworkReply> 20 QNetworkAccessManager *manager;
24 QString updateHostUrl;
25 QString downloadHostUrl;
26 QString downloadFileName;
28 qint64 numBytesDownloaded;
32 explicit Updater(QObject *parent =
nullptr);
51 void bytesDownloaded();
56 #endif // HL_UPDATER_H Updater(QObject *parent=nullptr)
Construct a new instance of the Updater class.
Definition: Updater.cpp:22
QString getDownloadFileName()
Method to check the downloaded file name.
Definition: Updater.cpp:61
void setUpdateHost(QString)
Sets the update host for the Updater.
Definition: Updater.cpp:41
Q_INVOKABLE bool checkForUpdate()
Creates the network request using the updateHostUrl.
Definition: Updater.cpp:124
Q_INVOKABLE void startHulaLoopInstaller()
Opens the HulaLoop installer application.
Definition: Updater.cpp:296
qint64 getNumBytesDownloaded()
Method to check how many bytes have been downloaded.
Definition: Updater.cpp:71
QList< int > parseTagName(const QString &)
A method to parse the tag name returned from the GitHub Releases API.
Definition: Updater.cpp:92
qint64 getDownloadSize()
Method to check the size of the download.
Definition: Updater.cpp:81
QString getUpdateHost()
Method to check the downloaded file name.
Definition: Updater.cpp:51
Definition: Controller.h:11
Q_INVOKABLE bool downloadUpdate()
Creates the network request using the downloadHostUrl.
Definition: Updater.cpp:232
Q_INVOKABLE void startHulaLoopApp()
Opens the HulaLoop application.
Definition: Updater.cpp:314
~Updater()
Destroys the Updater object.
Definition: Updater.cpp:331