Skip to content

Commit

Permalink
Clean up declaration in SparkleUpdater header
Browse files Browse the repository at this point in the history
Signed-off-by: Claudio Cambra <[email protected]>
  • Loading branch information
claucambra committed Feb 23, 2023
1 parent cb77e9c commit a1365fc
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions src/gui/updater/sparkleupdater.h
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -34,21 +37,18 @@ class SparkleUpdater : public Updater
};

SparkleUpdater(const QUrl &appCastUrl);
~SparkleUpdater();
~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();
Expand Down

0 comments on commit a1365fc

Please sign in to comment.