expose update available method.

master
Andrew A. de Laix 2010-12-02 11:37:26 -08:00
parent 765d939956
commit c767276ce6
2 changed files with 8 additions and 0 deletions

View File

@ -504,6 +504,11 @@ std::string const & LLUpdaterService::pumpName(void)
return name;
}
bool LLUpdaterService::updateReadyToInstall(void)
{
return LLFile::isfile(update_marker_path());
}
LLUpdaterService::LLUpdaterService()
{
if(gUpdater.expired())

View File

@ -43,6 +43,9 @@ public:
// Name of the event pump through which update events will be delivered.
static std::string const & pumpName(void);
// Returns true if an update has been completely downloaded and is now ready to install.
static bool updateReadyToInstall(void);
// Type codes for events posted by this service. Stored the event's 'type' element.
enum eUpdaterEvent {
INVALID,