diff options
author | Andrew A. de Laix <alain@lindenlab.com> | 2010-11-04 15:49:19 -0700 |
---|---|---|
committer | Andrew A. de Laix <alain@lindenlab.com> | 2010-11-04 15:49:19 -0700 |
commit | 191e164a503b72c7feae0a46ad0422740b365556 (patch) | |
tree | e4f8d565e81bbe22fde904a67d2afa95eb9189e9 /indra/viewer_components/updater/llupdatedownloader.h | |
parent | 070fe9ed262da5c990a5129474489647a0369fc9 (diff) |
some better error handling.
Diffstat (limited to 'indra/viewer_components/updater/llupdatedownloader.h')
-rw-r--r-- | indra/viewer_components/updater/llupdatedownloader.h | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/indra/viewer_components/updater/llupdatedownloader.h b/indra/viewer_components/updater/llupdatedownloader.h index 6118c4338e..8754ea329c 100644 --- a/indra/viewer_components/updater/llupdatedownloader.h +++ b/indra/viewer_components/updater/llupdatedownloader.h @@ -27,7 +27,6 @@ #define LL_UPDATE_DOWNLOADER_H -#include <stdexcept> #include <string> #include <boost/shared_ptr.hpp> #include "lluri.h" @@ -39,20 +38,20 @@ class LLUpdateDownloader { public: - class BusyError; class Client; class Implementation; + // Returns the path to the download marker file containing details of the + // latest download. + static std::string downloadMarkerPath(void); + LLUpdateDownloader(Client & client); // Cancel any in progress download; a no op if none is in progress. void cancel(void); // Start a new download. - // - // This method will throw a BusyException instance if a download is already - // in progress. - void download(LLURI const & uri); + void download(LLURI const & uri, std::string const & hash); // Returns true if a download is in progress. bool isDownloading(void); |