]> git.sur5r.net Git - minitube/blobdiff - lib/updater/src/impl/runinstaller.h
New upstream version 3.5
[minitube] / lib / updater / src / impl / runinstaller.h
diff --git a/lib/updater/src/impl/runinstaller.h b/lib/updater/src/impl/runinstaller.h
new file mode 100644 (file)
index 0000000..fbcc7ac
--- /dev/null
@@ -0,0 +1,27 @@
+#ifndef UPDATER_IMPL_RUNINSTALLER_H
+#define UPDATER_IMPL_RUNINSTALLER_H
+
+#include <QObject>
+
+#include "installer.h"
+
+namespace updater {
+
+/**
+ * Installer implementation that simply runs the downloaded update
+ */
+class RunInstaller : public Installer {
+    Q_OBJECT
+
+public:
+    RunInstaller();
+    void setArguments(const QStringList &value) { arguments = value; };
+    void start(const QString &filename);
+
+private:
+    QStringList arguments;
+};
+
+} // namespace updater
+
+#endif // UPDATER_IMPL_RUNINSTALLER_H