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

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

#include <VisualUpdateManager.h>

List of all members.

Static Public Member Functions

static void dispose (void)
 Disposes the VisualUpdateManager.
static void checkForUpdate (void)
 Checks to see whether an update for the current visualizer is available online.
static void getMoreInfoAboutAvailableUpdate (void)
 Launches external application to display more information about available update.
static void doDownloadAvailableUpdate (void)
 Launches external application to download available update.
static bool evaluateUpdateInformation (void)
 Evaluates the update information.

Private Member Functions

 VisualUpdateManager ()
 The constructor.
 ~VisualUpdateManager ()
 The destructor.
 VisualUpdateManager (const VisualUpdateManager &other)
 Copy constructor.
VisualUpdateManageroperator= (const VisualUpdateManager &other)
 Assignment operator.
void launchBrowserToOpenURL (const char *const URL)
 Launches browser application to open remote URL.

Static Private Member Functions

static VisualUpdateManagergetInstance (void)
 Constructs a VisualUpdateManager.

Private Attributes

VisualStringupdateInformation
 String containing the update information (fetched from VisualConfiguration::kCurrentVersionInformationURL).
VisualString currentVersionString
 The complete string of the current version.
VisualString infoURL
 URL pointing to more information about visualizer.
VisualString downloadURL
 Download URL.

Static Private Attributes

static VisualUpdateManagertheVisualUpdateManager = NULL
 VisualUpdateManager is a singleton class.

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 May 3 2015 20:26:31 for VizKit by doxygen 1.8.0