X-Git-Url: https://git.sur5r.net/?p=minitube;a=blobdiff_plain;f=lib%2Fupdater%2Fsrc%2Fupdater.h;h=2d25faacad666330d67428dcf070e9370b0f519b;hp=457b1cc50aa984c72d0339d0edc2b1f15c4572d6;hb=9337294c49c89c5cb01db726835da60af566821f;hpb=be5ee6ccd9b29c9d5ca59e4a3d4adf53bac6bc8d diff --git a/lib/updater/src/updater.h b/lib/updater/src/updater.h index 457b1cc..2d25faa 100644 --- a/lib/updater/src/updater.h +++ b/lib/updater/src/updater.h @@ -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;