text: // Copyright (c) 2016 The Karbowanec developers
  // Copyright (c) 2018-2021 Fandom Gold Society
  // Distributed under the MIT/X11 software license, see the accompanying
  // file COPYING or http://www.opensource.org/licenses/mit-license.php.
  #ifndef UPDATE_H
  #define UPDATE_H
  
  #include <QObject>
  #include <QNetworkAccessManager>
  #include <QNetworkRequest>
  #include <QNetworkReply>
  #include <QUrl>
  
  const static QString FANGO_UPDATE_URL = "https://raw.githubusercontent.com/FandomGold/fango-wallet/master/update.txt";
  
  class Updater : public QObject
  {
      Q_OBJECT
  public:
      explicit Updater(QObject *parent = 0);
  
      void checkForUpdate();
  
  signals:
      
  public slots:
      void replyFinished (QNetworkReply *reply);
  
  private:
     QNetworkAccessManager *manager;
  
  };
  
  #endif // UPDATE_H
  