This class checks if updates are available on an remote host. Support Linux, MacOs and WIndows.
More...
|
void | hasUpdate (QByteArray version, QByteArray message) |
|
void | hasWarning (QByteArray warning) |
|
|
| Updater (QWidget *parent=0) |
|
| Updater (const Updater &T)=delete |
|
Updater & | operator= (const Updater &T)=delete |
|
Updater & | operator= (Updater &&T)=delete |
|
| Updater (Updater &&T)=delete |
|
void | checkForUpdate () |
| Check if updates are available on an remote server.
|
|
updateStatus | isUpdate () const |
| Gets update avaibility.
|
|
void | displayUpdate (const QByteArray &version, const QByteArray &message) |
| Displays a message box to help the user to upgrade FastTrack.
|
|
void | displayWarning (const QByteArray &warning) |
| Displays a warning box if warning messages are available on the remote server.
|
|
|
updateStatus | status |
|
QUrl | remoteURL = QUrl(QStringLiteral("https://www.fasttrack.sh/download/FastTrack/platforms.txt")) |
|
This class checks if updates are available on an remote host. Support Linux, MacOs and WIndows.
- Author
- Benjamin Gallois
- Version
- Revision
- 6.2.6
Contact: benja.nosp@m.min..nosp@m.gallo.nosp@m.is@f.nosp@m.asttr.nosp@m.ack..nosp@m.sh
◆ updateStatus
Updates availability status.
Enumerator |
---|
HasUpdate | a new version of FastTrack is available.
|
NoUpdate | no new version of FastTrack is available.
|
NotSupported | this platform is not Linux, Windows or MacOS.
|
NoNetwork | connection to the remote server is no possible.
|
◆ displayUpdate()
void Updater::displayUpdate |
( |
const QByteArray & | version, |
|
|
const QByteArray & | message ) |
Displays a message box to help the user to upgrade FastTrack.
- Parameters
-
[in] | version | The version number. |
[in] | message | Changelog associated with the version. |
◆ displayWarning()
void Updater::displayWarning |
( |
const QByteArray & | warning | ) |
|
Displays a warning box if warning messages are available on the remote server.
- Parameters
-
[in] | warning | Warning message. |
◆ isUpdate()
Gets update avaibility.
- Returns
- Updates status.
The documentation for this class was generated from the following files: