]> git.sur5r.net Git - minitube/blobdiff - lib/updater/src/updater.h
New upstream version 3.8
[minitube] / lib / updater / src / updater.h
index 457b1cc50aa984c72d0339d0edc2b1f15c4572d6..2d25faacad666330d67428dcf070e9370b0f519b 100644 (file)
@@ -40,9 +40,15 @@ public:
     // This should be protected
     void setDisplayVersion(const QString &value) { displayVersion = value; }
 
+    /// true if the app can be stopped and relaunched without user interaction
     virtual bool getImmediateInstallAndRelaunch() const { return immediateInstallAndRelaunch; }
     virtual void setImmediateInstallAndRelaunch(bool value) { immediateInstallAndRelaunch = value; }
 
+    /// true if the app has to be relaunched after the update has completed
+    virtual bool getRelaunchAfterInstall() const { return relaunchAfterInstall; }
+    virtual void setRelaunchAfterInstall(bool value) { relaunchAfterInstall = value; }
+
+    /// when true an available update will be downloaded without user interaction
     virtual bool getAutomaticDownload() const { return automaticDownload; }
     virtual void setAutomaticDownload(bool value) { automaticDownload = value; }
 
@@ -65,6 +71,7 @@ private:
 
     bool automaticDownload = true;
     bool immediateInstallAndRelaunch = false;
+    bool relaunchAfterInstall = false;
     Status status = Status::UpToDate;
     QString version;
     QString displayVersion;