1 #ifndef QTAUTOUPDATER_UPDATECONTROLLER_H
2 #define QTAUTOUPDATER_UPDATECONTROLLER_H
4 #include <QtCore/qobject.h>
5 #include <QtCore/qstringlist.h>
7 #include <QtAutoUpdaterCore/updater.h>
9 #include <QtWidgets/qaction.h>
11 #include "QtAutoUpdaterWidgets/qtautoupdaterwidgets_global.h"
17 class UpdateControllerPrivate;
26 Q_PROPERTY(
DisplayLevel displayLevel READ displayLevel WRITE setDisplayLevel NOTIFY displayLevelChanged)
28 Q_PROPERTY(
QString desktopFileName READ desktopFileName WRITE setDesktopFileName NOTIFY desktopFileNameChanged)
30 Q_PROPERTY(
QtAutoUpdater::
Updater::InstallScope installScope READ installScope WRITE setInstallScope NOTIFY installScopeChanged)
32 Q_PROPERTY(
bool detailedUpdateInfo READ isDetailedUpdateInfo WRITE setDetailedUpdateInfo NOTIFY detailedUpdateInfoChanged)
63 DisplayLevel displayLevel()
const;
65 QString desktopFileName()
const;
71 bool isDetailedUpdateInfo()
const;
75 void setDisplayLevel(DisplayLevel displayLevel);
77 void setDesktopFileName(
QString desktopFileName);
83 void setDetailedUpdateInfo(
bool detailedUpdateInfo);
88 bool start(DisplayLevel displayLevel);
92 void displayLevelChanged(DisplayLevel displayLevel, QPrivateSignal);
94 void desktopFileNameChanged(
const QString &desktopFileName, QPrivateSignal);
100 void detailedUpdateInfoChanged(
bool detailedUpdateInfo, QPrivateSignal);
106 Q_PRIVATE_SLOT(d_func(),
void _q_updaterStateChanged(
Updater::State))
108 Q_PRIVATE_SLOT(d_func(),
void _q_updaterDestroyed())
113 #endif // QTAUTOUPDATER_UPDATECONTROLLER_H