UpdateInstaller Class Reference
+ Inheritance diagram for UpdateInstaller:

Public Types

enum  ErrorCode { EC_Ok, EC_NothingToUpdate, EC_UpdatePackageMissing, EC_ProcessStartFailure }
 
enum  ProcessErrorCode {
  PEC_Ok, PEC_UnableToReadUpdateScript = 1, PEC_NoInstallationDirectorySpecified = 2, PEC_UnableToDeterminePathOfUpdater = 3,
  PEC_GeneralFailure = 10000
}
 "--update-failed" values. More...
 

Public Member Functions

 UpdateInstaller (QObject *pParent=NULL)
 
ErrorCode startInstallation ()
 Starts update process. More...
 

Static Public Member Functions

static QString errorCodeToStr (ErrorCode code)
 
static QString processErrorCodeToStr (ProcessErrorCode code)
 

Detailed Description

Definition at line 29 of file updateinstaller.h.

Member Enumeration Documentation

Enumerator
EC_Ok 

Update started properly.

EC_NothingToUpdate 

No update needed.

Definition at line 46 of file updateinstaller.h.

"--update-failed" values.

Definition at line 37 of file updateinstaller.h.

Member Function Documentation

UpdateInstaller::ErrorCode UpdateInstaller::startInstallation ( )

Starts update process.

Checks if UPDATER_SCRIPT_FILENAME exists and launches updater program.

  • If EC_Ok is returned then current program should shut down itself.
  • If EC_NothingToUpdate is returned then program should continue normally.
  • If anything else is returned then program should notify user of error.
Returns
EC_Ok if update process was successfully started. EC_NothingToUpdate is returned if no update packages were detected. Everything else is an error.

Definition at line 137 of file updateinstaller.cpp.


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