diff options
author | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2008-06-05 07:33:12 +0000 |
---|---|---|
committer | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2008-06-05 07:33:12 +0000 |
commit | 9f35cb7602c55d43ab598145cfcd0703ec1c5059 (patch) | |
tree | 2ed8b59c11557289bfe06479687971ea6781c43a /src/gui/updatewindow.h | |
parent | ef11f1b7f9c1ce48df0eff7acd3886768886449a (diff) | |
download | mana-client-9f35cb7602c55d43ab598145cfcd0703ec1c5059.tar.gz mana-client-9f35cb7602c55d43ab598145cfcd0703ec1c5059.tar.bz2 mana-client-9f35cb7602c55d43ab598145cfcd0703ec1c5059.tar.xz mana-client-9f35cb7602c55d43ab598145cfcd0703ec1c5059.zip |
Added command line argument to specify the update host (-H). Also, to avoid
problems when files with the same name are served by different update hosts,
the updates are now stored in an update host specific directory. Based on a
patch by Sanga.
Diffstat (limited to 'src/gui/updatewindow.h')
-rw-r--r-- | src/gui/updatewindow.h | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/src/gui/updatewindow.h b/src/gui/updatewindow.h index b5f6a6df..61ea4a27 100644 --- a/src/gui/updatewindow.h +++ b/src/gui/updatewindow.h @@ -49,9 +49,14 @@ class UpdaterWindow : public Window, public gcn::ActionListener { public: /** - * Constructor + * Constructor. + * + * @param updateHost Host where to get the updated files. + * @param updatesDir Directory where to store updates (should be absolute + * and already created). */ - UpdaterWindow(); + UpdaterWindow(const std::string &updateHost, + const std::string &updatesDir); /** * Destructor @@ -124,15 +129,15 @@ class UpdaterWindow : public Window, public gcn::ActionListener /** Host where we get the updated files. */ std::string mUpdateHost; + /** Place where the updates are stored (absolute path). */ + std::string mUpdatesDir; + /** The file currently downloading. */ std::string mCurrentFile; /** The Adler32 checksum of the file currently downloading. */ unsigned long mCurrentChecksum; - /** Absolute path to locally save downloaded files. */ - std::string mBasePath; - /** A flag to indicate whether to use a memory buffer or a regular file. */ bool mStoreInMemory; |