21#include <QAbstractButton> 
   22#include <QCoreApplication> 
   23#include <QDesktopServices> 
   27#include <QNetworkAccessManager> 
   28#include <QNetworkReply> 
   29#include <QNetworkRequest> 
   36class Updater : 
public QWidget {
 
   39  Updater(QWidget *parent = 0);
 
   40  Updater(
const Updater &T) = 
delete;
 
   41  Updater &operator=(
const Updater &T) = 
delete;
 
   42  Updater &operator=(Updater &&T) = 
delete;
 
   43  Updater(Updater &&T) = 
delete;
 
   53  void displayUpdate(
const QByteArray &version, 
const QByteArray &message);
 
   58  QUrl remoteURL = QUrl(QStringLiteral(
"https://www.fasttrack.sh/download/FastTrack/platforms.txt"));
 
   60  void hasUpdate(QByteArray version, QByteArray message);
 
   61  void hasWarning(QByteArray warning);
 
 
updateStatus isUpdate() const
Gets update avaibility.
Definition updater.cpp:156
updateStatus
Definition updater.h:46
@ NoUpdate
Definition updater.h:47
@ NotSupported
Definition updater.h:48
@ HasUpdate
Definition updater.h:46
@ NoNetwork
Definition updater.h:49
void displayWarning(const QByteArray &warning)
Displays a warning box if warning messages are available on the remote server.
Definition updater.cpp:143
void checkForUpdate()
Check if updates are available on an remote server.
Definition updater.cpp:40
void displayUpdate(const QByteArray &version, const QByteArray &message)
Displays a message box to help the user to upgrade FastTrack.
Definition updater.cpp:115