Skip to content

Commit

Permalink
Trying out automaticallyDownloadsUpdates as well
Browse files Browse the repository at this point in the history
  • Loading branch information
vadi2 committed Nov 1, 2017
1 parent 29688fd commit b3954e1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions AutoUpdater.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ class AutoUpdater
virtual void setAutomaticallyChecksForUpdates(bool on) = 0;
virtual bool automaticallyChecksForUpdates() = 0;

virtual void setAutomaticallyDownloadsUpdates(bool on) = 0;
virtual bool automaticallyDownloadsUpdates() = 0;

virtual QDateTime lastUpdateCheckDate() = 0;

static AutoUpdater *instance() { return sInstance; }
Expand Down
1 change: 1 addition & 0 deletions main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ int main(int argc, char* argv[])
if (updater) {
updater->checkForUpdates();
qDebug() << updater->lastUpdateCheckDate();
qDebug() << "automaticallyChecksForUpdates" << updater->automaticallyChecksForUpdates();
qDebug() << "automaticallyDownloadsUpdates" << updater->automaticallyDownloadsUpdates();
}
return app.exec();
Expand Down

0 comments on commit b3954e1

Please sign in to comment.