+ typedef struct
+ {
+ const char* name;
+ const char* hash;
+ const bool exec;
+ }
+ binary_t;
+
+ static const int READY_TO_INSTALL_UPDATE = 42;
+ static const binary_t BINARIES[];
+
+ inline bool getSuccess(void) { return m_success; }
+
+protected:
+ virtual bool event(QEvent *e);
+ virtual void showEvent(QShowEvent *event);
+ virtual void closeEvent(QCloseEvent *e);
+ virtual void keyPressEvent(QKeyEvent *event);
+
+private slots:
+ void initUpdate(void);
+ void checkForUpdates(void);
+ void threadStatusChanged(int status);
+ void threadMessageLogged(const QString &message);
+ void threadFinished(void);
+ void updateFinished(void);
+ void openUrl(const QString &url);
+ void installUpdate(void);
+