VizKit  3.0
Static Public Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes | Static Private Attributes
VizKit::VisualUpdateManager Class Reference

#include <VisualUpdateManager.h>

List of all members.

Static Public Member Functions

static void dispose (void)
static void checkForUpdate (void)
static void getMoreInfoAboutAvailableUpdate (void)
static void doDownloadAvailableUpdate (void)
static bool evaluateUpdateInformation (void)

Private Member Functions

 VisualUpdateManager ()
 ~VisualUpdateManager ()
 VisualUpdateManager (const VisualUpdateManager &other)
VisualUpdateManageroperator= (const VisualUpdateManager &other)
void launchBrowserToOpenURL (const char *const URL)

Static Private Member Functions

static VisualUpdateManagergetInstance (void)

Private Attributes

VisualStringupdateInformation
VisualString currentVersionString
VisualString infoURL
VisualString downloadURL

Static Private Attributes

static VisualUpdateManagertheVisualUpdateManager = NULL

Detailed Description

Checking for, prompting for, and downloading available updates for this visualizer.


Constructor & Destructor Documentation

The constructor. VisualUpdateManager is a singleton class. The constructor is private. New instance of class can only be created internally.

The destructor. VisualUpdateManager is a singleton class. The destructor is private. Instance of class can only be destructed internally.

Copy constructor.

Parameters:
otherAnother VisualNetwork.
Remarks:
Explicitely declared in private section and not implemented to enforce uniqueness of singleton pattern.

Member Function Documentation

void VisualUpdateManager::checkForUpdate ( void  ) [static]

Checks to see whether an update for the current visualizer is available online.

Remarks:
The check is not performed if preference VisualPreferences::kCheckForUpdate is set to false.
void VisualUpdateManager::dispose ( void  ) [static]

Disposes the VisualUpdateManager.

Launches external application to download available update.

Evaluates the update information.

Returns:
True if update is available, false if not.
VisualUpdateManager * VisualUpdateManager::getInstance ( void  ) [static, private]

Constructs a VisualUpdateManager. The VisualUpdateManager acts as a singleton. Returns a pointer to the initialised VisualUpdateManager.

Returns:
A pointer to the singleton instance.

Launches external application to display more information about available update.

void VisualUpdateManager::launchBrowserToOpenURL ( const char *const  URL) [private]

Launches browser application to open remote URL.

VisualUpdateManager& VizKit::VisualUpdateManager::operator= ( const VisualUpdateManager other) [private]

Assignment operator.

Remarks:
Explicitely declared in private section and not implemented to enforce uniqueness of singleton pattern.

Member Data Documentation

The complete string of the current version.

Download URL.

URL pointing to more information about visualizer.

VisualUpdateManager is a singleton class. Pointer to private instance is handled internally.

String containing the update information (fetched from VisualConfiguration::kCurrentVersionInformationURL).


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

Generated on Sun Mar 25 2012 14:27:43 for VizKit by doxygen 1.8.0