33 void start() { started =
true; }
34 virtual void iterate() = 0;
36 void setUrl(
const char *newUrl);
37 bool isStarted() {
return started; }
38 bool isFinished() {
return finished; }
39 bool isAborted() {
return abort; }
40 void useBeta() { beta =
true; }
41 void setSkipCert() { skipCert =
true; }
43 bool isCheckUpdateAndAbort()
const {
return checkUpdateAndAbort; }
44 void setCheckUpdateAndAbort() { checkUpdateAndAbort =
true; }
46 const char *getUrl()
const {
return updateUrl; }
47 const char *getNewVersion()
const {
return newVersion; }
48 const char *getChangelogUrl()
const {
return changelogUrl; }
50 bool isSecurityOnly()
const {
return securityOnly; }
51 void setSecurityOnly() { securityOnly =
true; }
57 bool skipCert =
false;
58 bool securityOnly =
false;
60 bool checkUpdateAndAbort =
false;
61 bool finished =
false;
64 char *updateUrl =
nullptr;
65 char *newVersion =
nullptr;
66 char *changelogUrl =
nullptr;
68 char url[SUPLA_MAX_URL_LENGTH] = {};