|
Qt Utilities 6.22.1
Common Qt related C++ classes and routines used by my applications such as dialogs, widgets and models
|
The Updater class allows downloading and applying an update. More...
#include <updater.h>
Classes | |
| struct | Update |
Public Types | |
| using | VerifyFunction = std::function<QString(const Update &)> |
Public Slots | |
| bool | performUpdate (const QString &downloadUrl, const QString &signatureUrl) |
| void | abortUpdate () |
Signals | |
| void | inProgressChanged (bool inProgress) |
| void | updateFailed (const QString &error) |
| void | updateStored () |
| void | updatePercentageChanged (qint64 bytesReceived, qint64 bytesTotal) |
| void | updateStatusChanged (const QString &statusMessage) |
Public Member Functions | |
| Updater (const QString &executableName, QObject *parent=nullptr) | |
| Updater (const QString &executableName, const QString &signatureExtension, QObject *parent=nullptr) | |
| ~Updater () override | |
| bool | isInProgress () const |
| QString | overallStatus () const |
| const QString & | error () const |
| const QString & | statusMessage () const |
| const QString & | storedPath () const |
| void | setNetworkAccessManager (QNetworkAccessManager *nm) |
| void | setVerifier (VerifyFunction &&verifyFunction) |
Properties | |
| bool | inProgress |
| QString | overallStatus |
| QString | error |
| QString | statusMessage |
| QString | storedPath |
The Updater class allows downloading and applying an update.
| using QtUtilities::Updater::VerifyFunction = std::function<QString(const Update &)> |
|
explicit |
Definition at line 764 of file updater.cpp.
|
explicit |
Definition at line 769 of file updater.cpp.
|
override |
Definition at line 789 of file updater.cpp.
|
slot |
Definition at line 876 of file updater.cpp.
| const QString & QtUtilities::Updater::error | ( | ) | const |
Definition at line 811 of file updater.cpp.
|
signal |
| bool QtUtilities::Updater::isInProgress | ( | ) | const |
Definition at line 793 of file updater.cpp.
| QString QtUtilities::Updater::overallStatus | ( | ) | const |
Definition at line 802 of file updater.cpp.
|
slot |
Definition at line 860 of file updater.cpp.
| void QtUtilities::Updater::setNetworkAccessManager | ( | QNetworkAccessManager * | nm | ) |
Definition at line 835 of file updater.cpp.
| void QtUtilities::Updater::setVerifier | ( | VerifyFunction && | verifyFunction | ) |
Definition at line 844 of file updater.cpp.
| const QString & QtUtilities::Updater::statusMessage | ( | ) | const |
Definition at line 816 of file updater.cpp.
| const QString & QtUtilities::Updater::storedPath | ( | ) | const |
Definition at line 825 of file updater.cpp.
|
signal |
|
signal |
|
signal |
|
signal |