OpenStudioCore:utilities
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Pages
Public Slots | Signals | Public Member Functions | List of all members
openstudio::UpdateManager Class Reference

#include <UpdateManager.hpp>

+ Inheritance diagram for openstudio::UpdateManager:

Public Slots

void replyFinished (QNetworkReply *reply)
 
virtual void replyProcessed ()
 

Signals

void processed ()
 

Public Member Functions

std::string appName () const
 returns the application name More...
 
bool error () const
 returns true if an error occurred while checking for updates, must call after update manager is finished More...
 
bool finished () const
 returns true when the manager is finished checking for updates More...
 
std::string mostRecentDownloadUrl () const
 returns url for the most recent download, manager must have finished checking for updates with no errors More...
 
std::string mostRecentVersion () const
 returns most recent version, manager must have finished checking for updates with no errors More...
 
bool newMajorRelease () const
 returns true if a new major release is available, manager must have finished checking for updates with no errors More...
 
bool newMinorRelease () const
 returns true if a new minor release is available, manager must have finished checking for updates with no errors More...
 
bool newPatchRelease () const
 returns true if a new patch release is available, manager must have finished checking for updates with no errors More...
 
 UpdateManager (const std::string &appName)
 Constructor with application name. More...
 
 UpdateManager (const std::string &appName, const std::string &url)
 Constructor with application name and alternate test Url. More...
 
std::vector< std::string > updateMessages () const
 returns the description of each update since the current release with the most recent first, manager must have finished checking for updates with no errors More...
 
virtual ~UpdateManager ()
 

Detailed Description

Class for checking whether a new version of OpenStudio is available for download.

Constructor & Destructor Documentation

openstudio::UpdateManager::UpdateManager ( const std::string &  appName)

Constructor with application name.

openstudio::UpdateManager::UpdateManager ( const std::string &  appName,
const std::string &  url 
)

Constructor with application name and alternate test Url.

virtual openstudio::UpdateManager::~UpdateManager ( )
inlinevirtual

Member Function Documentation

std::string openstudio::UpdateManager::appName ( ) const

returns the application name

bool openstudio::UpdateManager::error ( ) const

returns true if an error occurred while checking for updates, must call after update manager is finished

bool openstudio::UpdateManager::finished ( ) const

returns true when the manager is finished checking for updates

std::string openstudio::UpdateManager::mostRecentDownloadUrl ( ) const

returns url for the most recent download, manager must have finished checking for updates with no errors

std::string openstudio::UpdateManager::mostRecentVersion ( ) const

returns most recent version, manager must have finished checking for updates with no errors

bool openstudio::UpdateManager::newMajorRelease ( ) const

returns true if a new major release is available, manager must have finished checking for updates with no errors

bool openstudio::UpdateManager::newMinorRelease ( ) const

returns true if a new minor release is available, manager must have finished checking for updates with no errors

bool openstudio::UpdateManager::newPatchRelease ( ) const

returns true if a new patch release is available, manager must have finished checking for updates with no errors

void openstudio::UpdateManager::processed ( )
signal
void openstudio::UpdateManager::replyFinished ( QNetworkReply *  reply)
slot
virtual void openstudio::UpdateManager::replyProcessed ( )
virtualslot
std::vector<std::string> openstudio::UpdateManager::updateMessages ( ) const

returns the description of each update since the current release with the most recent first, manager must have finished checking for updates with no errors