text: //Copyright (c) 2019 The PIVX developers
  //Copyright (c) 2020 The BinJit developers
  // Distributed under the MIT software license, see the accompanying
  // file COPYING or http://www.opensource.org/licenses/mit-license.php.
  
  #ifndef SPLASH_H
  #define SPLASH_H
  
  #include <QWidget>
  
  class NetworkStyle;
  
  namespace Ui {
  class Splash;
  }
  
  class Splash : public QWidget
  {
      Q_OBJECT
  
  public:
      explicit Splash(Qt::WindowFlags f, const NetworkStyle* networkStyle);
      ~Splash();
  
  public Q_SLOTS:
      /** Slot to call finish() method as it's not defined as slot */
      void slotFinish(QWidget* mainWin);
  
      /** Show message and progress */
      void showMessage(const QString& message, int alignment, const QColor& color);
  
  protected:
      void closeEvent(QCloseEvent* event);
  
  private:
      Ui::Splash *ui;
  
      /** Connect core signals to splash screen */
      void subscribeToCoreSignals();
      /** Disconnect core signals to splash screen */
      void unsubscribeFromCoreSignals();
  };
  
  #endif // SPLASH_H
  