summaryrefslogtreecommitdiff
path: root/indra/viewer_components/updater/llupdaterservice.h
diff options
context:
space:
mode:
authorAndrew A. de Laix <alain@lindenlab.com>2010-12-01 15:51:10 -0800
committerAndrew A. de Laix <alain@lindenlab.com>2010-12-01 15:51:10 -0800
commit765d939956a0c1f67029d44fd29770aabc36d9b4 (patch)
treeaf350c0fe64495397363cd92ce6ef4ecb23d427c /indra/viewer_components/updater/llupdaterservice.h
parent18dbbb4fa45fae8fc9d74eb040308e96abd9e749 (diff)
state change events for updater service.
Diffstat (limited to 'indra/viewer_components/updater/llupdaterservice.h')
-rw-r--r--indra/viewer_components/updater/llupdaterservice.h16
1 files changed, 14 insertions, 2 deletions
diff --git a/indra/viewer_components/updater/llupdaterservice.h b/indra/viewer_components/updater/llupdaterservice.h
index 1266bcae08..6ee7060d28 100644
--- a/indra/viewer_components/updater/llupdaterservice.h
+++ b/indra/viewer_components/updater/llupdaterservice.h
@@ -44,12 +44,23 @@ public:
static std::string const & pumpName(void);
// Type codes for events posted by this service. Stored the event's 'type' element.
- enum eUpdateEvent {
+ enum eUpdaterEvent {
INVALID,
DOWNLOAD_COMPLETE,
DOWNLOAD_ERROR,
INSTALL_ERROR,
- PROGRESS
+ PROGRESS,
+ STATE_CHANGE
+ };
+
+ enum eUpdaterState {
+ INITIAL,
+ CHECKING_FOR_UPDATE,
+ DOWNLOADING,
+ INSTALLING,
+ UP_TO_DATE,
+ TERMINAL,
+ ERROR
};
LLUpdaterService();
@@ -66,6 +77,7 @@ public:
void startChecking(bool install_if_ready = false);
void stopChecking();
bool isChecking();
+ eUpdaterState getState();
typedef boost::function<void (void)> app_exit_callback_t;
template <typename F>