supla-device
Loading...
Searching...
No Matches
Supla::Device::SwUpdate Class Referenceabstract
Collaboration diagram for Supla::Device::SwUpdate:

Public Member Functions

void start ()
 
void setObserver (SwUpdateObserver *newObserver)
 
virtual void iterate ()=0
 
void setUrl (const char *newUrl)
 
bool isStarted ()
 
bool isFinished ()
 
bool isAborted ()
 
void useBeta ()
 
void setSkipCert ()
 
bool isRetryAllowed ()
 
const char * getUrl () const
 
const char * getNewVersion () const
 
const char * getChangelogUrl () const
 
bool isSecurityOnly () const
 
void setSecurityOnly ()
 

Static Public Member Functions

static SwUpdateCreate (SuplaDeviceClass *sdc, const char *newUrl, Supla::SwUpdateMode mode)
 

Protected Member Functions

 SwUpdate (SuplaDeviceClass *sdc, const char *newUrl, Supla::SwUpdateMode mode)
 
void notifyProgress (uint32_t downloadedBytes, uint32_t totalBytes)
 
void notifyFinished (bool success, const char *reason=nullptr)
 
void notifyFinished (SwUpdateResult result, const char *reason=nullptr)
 

Protected Attributes

bool beta = false
 
bool skipCert = false
 
bool securityOnly = false
 
bool started = false
 
bool finished = false
 
bool abort = false
 
SuplaDeviceClasssdc = nullptr
 
SwUpdateObserverobserver = nullptr
 
char * updateUrl = nullptr
 
char * newVersion = nullptr
 
char * changelogUrl = nullptr
 
bool retryAllowed = false
 
Supla::SwUpdateMode mode = Supla::SwUpdateMode::NotSet
 
char url [SUPLA_MAX_URL_LENGTH] = {}
 

The documentation for this class was generated from the following files: