Planeshift
Public Member Functions

UpdaterConfig Class Reference

#include <updaterconfig.h>

List of all members.

Public Member Functions

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

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: