1 #ifndef QTAUTOUPDATER_UPDATEBUTTON_H
2 #define QTAUTOUPDATER_UPDATEBUTTON_H
4 #include "QtAutoUpdaterWidgets/qtautoupdaterwidgets_global.h"
6 #include <QtAutoUpdaterCore/updater.h>
8 #include <QtWidgets/qwidget.h>
13 class UpdateButtonPrivate;
22 Q_PROPERTY(Mode mode READ mode WRITE setMode NOTIFY modeChanged)
24 Q_PROPERTY(
QString animationFile READ animationFile WRITE setAnimationFile RESET resetAnimationFile NOTIFY animationFileChanged)
26 Q_PROPERTY(
QtAutoUpdater::
Updater::InstallMode installMode READ installMode WRITE setInstallMode NOTIFY installModeChanged)
28 Q_PROPERTY(
QtAutoUpdater::
Updater::InstallScope installScope READ installScope WRITE setInstallScope NOTIFY installScopeChanged)
39 AllowAndShowAll = (ShowResult | ShowStatus | AllowInstall | AllowCancel)
41 Q_DECLARE_FLAGS(Mode, ModeFlag)
56 Updater::InstallMode installMode()
const;
62 void setUpdater(
Updater* updater);
64 void setMode(Mode mode);
66 void setAnimationFile(
const QString &animationFile,
int speed = 100);
68 void setAnimationDevice(
QIODevice *animationDevice,
int speed = 100);
70 void resetAnimationFile();
72 void setInstallMode(QtAutoUpdater::Updater::InstallMode installMode);
80 void modeChanged(Mode mode, QPrivateSignal);
82 void animationFileChanged(
const QString &animationFile, QPrivateSignal);
84 void installModeChanged(QtAutoUpdater::Updater::InstallMode installMode, QPrivateSignal);
91 Q_PRIVATE_SLOT(d_func(),
void _q_changeUpdaterState(
Updater::State))
92 Q_PRIVATE_SLOT(d_func(),
void _q_updateStatus(
double,
const QString &))
93 Q_PRIVATE_SLOT(d_func(),
void _q_updaterDestroyed())
94 Q_PRIVATE_SLOT(d_func(),
void _q_clicked())
101 #endif // QTAUTOUPDATER_UPDATEBUTTON_H