From: Claudio Cambra Date: Thu, 23 Feb 2023 15:10:47 +0000 (+0100) Subject: Clean up declaration in SparkleUpdater header X-Git-Tag: archive/raspbian/3.16.7-1_deb13u1+rpi1~1^2~92^2^2~77^2~1 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=ff1fbdacf24bf6b0244f7086164c16bc02c27e1f;p=nextcloud-desktop.git Clean up declaration in SparkleUpdater header Signed-off-by: Claudio Cambra --- diff --git a/src/gui/updater/sparkleupdater.h b/src/gui/updater/sparkleupdater.h index c3ccc5f01..518e808cf 100644 --- a/src/gui/updater/sparkleupdater.h +++ b/src/gui/updater/sparkleupdater.h @@ -24,8 +24,11 @@ namespace OCC { class SparkleUpdater : public Updater { Q_OBJECT + Q_PROPERTY(QString statusString READ statusString NOTIFY statusChanged) + Q_PROPERTY(State state READ state NOTIFY statusChanged) public: + class SparkleInterface; enum class State { Unknown = 0, Idle, @@ -33,22 +36,19 @@ public: AwaitingUserInput }; - SparkleUpdater(const QUrl &appCastUrl); - ~SparkleUpdater(); + explicit SparkleUpdater(const QUrl &appCastUrl); + ~SparkleUpdater() override; - static bool autoUpdaterAllowed(); + [[nodiscard]] static bool autoUpdaterAllowed(); - void setUpdateUrl(const QUrl &url); + [[nodiscard]] bool handleStartup() override { return false; } + [[nodiscard]] QString statusString() const; + [[nodiscard]] State state() const; - // unused in this updater +public slots: + void setUpdateUrl(const QUrl &url); void checkForUpdate() override; void backgroundCheckForUpdate() override; - bool handleStartup() override { return false; } - - QString statusString() const; - State state() const; - - class SparkleInterface; signals: void statusChanged();