aboutsummaryrefslogtreecommitdiff
path: root/launcher/UpdateController.h
diff options
context:
space:
mode:
Diffstat (limited to 'launcher/UpdateController.h')
-rw-r--r--launcher/UpdateController.h44
1 files changed, 0 insertions, 44 deletions
diff --git a/launcher/UpdateController.h b/launcher/UpdateController.h
deleted file mode 100644
index 715554e5..00000000
--- a/launcher/UpdateController.h
+++ /dev/null
@@ -1,44 +0,0 @@
-#pragma once
-
-#include <QString>
-#include <QList>
-#include <updater/GoUpdate.h>
-
-class QWidget;
-
-class UpdateController
-{
-public:
- UpdateController(QWidget * parent, const QString &root, const QString updateFilesDir, GoUpdate::OperationList operations);
- void installUpdates();
-
-private:
- void fail();
- bool rollback();
-
-private:
- QString m_root;
- QString m_updateFilesDir;
- GoUpdate::OperationList m_operations;
- QWidget * m_parent;
-
- struct BackupEntry
- {
- // path where we got the new file from
- QString update;
- // path of what is being actually updated
- QString original;
- // path where the backup of the updated file was placed
- QString backup;
- };
- QList <BackupEntry> m_replace_backups;
- QList <BackupEntry> m_delete_backups;
- enum Failure
- {
- Replace,
- Delete,
- Start,
- Nothing
- } m_failedOperationType = Nothing;
- QString m_failedFile;
-};