FastTrack 6.1.0
Tracks multiples objects dealing with occlusion and identities.
Loading...
Searching...
No Matches
Updater Class Reference

This class checks if updates are available on an remote host. Support Linux, MacOs and WIndows. More...

Inheritance diagram for Updater:

Public Types

enum  updateStatus { HasUpdate , NoUpdate , NotSupported , NoNetwork }
 

Signals

void hasUpdate (QByteArray version, QByteArray message)
 
void hasWarning (QByteArray warning)
 

Public Member Functions

 Updater (QWidget *parent=0)
 
 Updater (const Updater &T)=delete
 
Updateroperator= (const Updater &T)=delete
 
Updateroperator= (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.
 

Private Attributes

updateStatus status
 
QUrl remoteURL = QUrl(QStringLiteral("https://www.fasttrack.sh/download/FastTrack/platforms.txt"))
 

Detailed Description

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

Member Enumeration Documentation

◆ 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.

Member Function Documentation

◆ displayUpdate()

void Updater::displayUpdate ( const QByteArray & version,
const QByteArray & message )

Displays a message box to help the user to upgrade FastTrack.

Parameters
[in]versionThe version number.
[in]messageChangelog 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]warningWarning message.

◆ isUpdate()

Updater::updateStatus Updater::isUpdate ( ) const

Gets update avaibility.

Returns
Updates status.

The documentation for this class was generated from the following files: