Planeshift
UpdaterConfig Class Reference

#include <updaterconfig.h>

Public Member Functions

bool CheckForIntegrity () const
 Returns true if a integrity check (repair) needs to be done. More...
 
iConfigFile * GetConfigFile () const
 Returns the configfile for the app. More...
 
ConfigGetCurrentConfig () const
 Returns the current/old config from updaterinfo.xml. More...
 
ConfigGetNewConfig () const
 Returns the new/downloaded config from updaterinfo.xml. More...
 
const char * GetNewMirrorAddress () const
 Returns the new mirror address. More...
 
Proxy GetProxy ()
 Returns the proxy struct. More...
 
int IsSelfUpdating () const
 Returns true if the updater is self updating. More...
 
bool IsUpdateEnabled () const
 True if we want to use the updater. More...
 
bool KeepingRepaired () const
 Returns true if we want a repair to keep the old file (*.bak). More...
 
bool RepairFailed () const
 Returns true if we want to perform a repair when files fail after an update. More...
 
bool RepairingInZip () const
 Returns true if we want to do in-zip repairs. More...
 
void SetSelfUpdating (bool t)
 
bool SwitchMirror () const
 Returns true if a mirror switch needs to be done. More...
 
bool UpdatePlatform () const
 Returns true if we want the updater to update platform specific files. More...
 
 UpdaterConfig (csStringArray &args, iObjectRegistry *_object_reg, iVFS *_vfs)
 
bool WasCleanUpdate () const
 Returns true if the last update was successful. More...
 
 ~UpdaterConfig ()
 
- Public Member Functions inherited from Singleton< UpdaterConfig >
 Singleton (UpdaterConfig *ptr)
 
 Singleton (void)
 
 ~Singleton ()
 

Additional Inherited Members

- Static Public Member Functions inherited from Singleton< UpdaterConfig >
static UpdaterConfigGetSingleton (void)
 
static UpdaterConfigGetSingletonPtr (void)
 

Detailed Description

Definition at line 221 of file updaterconfig.h.

Constructor & Destructor Documentation

UpdaterConfig::UpdaterConfig ( csStringArray &  args,
iObjectRegistry *  _object_reg,
iVFS *  _vfs 
)
UpdaterConfig::~UpdaterConfig ( )

Member Function Documentation

bool UpdaterConfig::CheckForIntegrity ( ) const
inline

Returns true if a integrity check (repair) needs to be done.

Definition at line 235 of file updaterconfig.h.

iConfigFile* UpdaterConfig::GetConfigFile ( ) const
inline

Returns the configfile for the app.

Definition at line 291 of file updaterconfig.h.

Config* UpdaterConfig::GetCurrentConfig ( ) const
inline

Returns the current/old config from updaterinfo.xml.

Definition at line 250 of file updaterconfig.h.

Config* UpdaterConfig::GetNewConfig ( ) const
inline

Returns the new/downloaded config from updaterinfo.xml.

Definition at line 255 of file updaterconfig.h.

const char* UpdaterConfig::GetNewMirrorAddress ( ) const
inline

Returns the new mirror address.

Definition at line 298 of file updaterconfig.h.

Proxy UpdaterConfig::GetProxy ( )
inline

Returns the proxy struct.

Definition at line 245 of file updaterconfig.h.

int UpdaterConfig::IsSelfUpdating ( ) const
inline

Returns true if the updater is self updating.

Definition at line 230 of file updaterconfig.h.

bool UpdaterConfig::IsUpdateEnabled ( ) const
inline

True if we want to use the updater.

This could be turned of when third-party updater is used.

Definition at line 286 of file updaterconfig.h.

bool UpdaterConfig::KeepingRepaired ( ) const
inline

Returns true if we want a repair to keep the old file (*.bak).

Definition at line 275 of file updaterconfig.h.

bool UpdaterConfig::RepairFailed ( ) const
inline

Returns true if we want to perform a repair when files fail after an update.

Definition at line 280 of file updaterconfig.h.

bool UpdaterConfig::RepairingInZip ( ) const
inline

Returns true if we want to do in-zip repairs.

Definition at line 270 of file updaterconfig.h.

void UpdaterConfig::SetSelfUpdating ( bool  t)
inline

Definition at line 293 of file updaterconfig.h.

bool UpdaterConfig::SwitchMirror ( ) const
inline

Returns true if a mirror switch needs to be done.

Definition at line 240 of file updaterconfig.h.

bool UpdaterConfig::UpdatePlatform ( ) const
inline

Returns true if we want the updater to update platform specific files.

Definition at line 265 of file updaterconfig.h.

bool UpdaterConfig::WasCleanUpdate ( ) const
inline

Returns true if the last update was successful.

Definition at line 260 of file updaterconfig.h.


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