Qt: Add automatic updater

This commit is contained in:
Connor McLaughlin
2020-08-06 22:08:22 +10:00
parent 070b16e611
commit c09bfc4d2b
13 changed files with 705 additions and 3 deletions

View File

@@ -71,6 +71,7 @@ public:
ALWAYS_INLINE const HotkeyInfoList& getHotkeyInfoList() const { return GetHotkeyInfoList(); }
ALWAYS_INLINE ControllerInterface* getControllerInterface() const { return GetControllerInterface(); }
ALWAYS_INLINE bool inBatchMode() const { return InBatchMode(); }
ALWAYS_INLINE void requestExit() { RequestExit(); }
ALWAYS_INLINE bool isOnWorkerThread() const { return QThread::currentThread() == m_worker_thread; }
@@ -99,6 +100,9 @@ public:
/// Returns a list of supported languages and codes (suffixes for translation files).
static std::vector<std::pair<QString, QString>> getAvailableLanguageList();
/// Returns program directory as a QString.
QString getProgramDirectory() const;
Q_SIGNALS:
void errorReported(const QString& message);
void messageReported(const QString& message);