diff options
author | Marc Laukien <marc@zeroc.com> | 2002-09-04 20:51:53 +0000 |
---|---|---|
committer | Marc Laukien <marc@zeroc.com> | 2002-09-04 20:51:53 +0000 |
commit | 19cfeafcaa8d74e597a1a47cdedbf7b71661703d (patch) | |
tree | b9246e3ec619f8cda002f36c0282dc4a9a23aaba /cpp/include | |
parent | more IcePatch work (diff) | |
download | ice-19cfeafcaa8d74e597a1a47cdedbf7b71661703d.tar.bz2 ice-19cfeafcaa8d74e597a1a47cdedbf7b71661703d.tar.xz ice-19cfeafcaa8d74e597a1a47cdedbf7b71661703d.zip |
more IcePatch work
Diffstat (limited to 'cpp/include')
-rw-r--r-- | cpp/include/IcePatch/ClientUtil.h | 39 | ||||
-rw-r--r-- | cpp/include/IcePatch/Util.h | 15 |
2 files changed, 41 insertions, 13 deletions
diff --git a/cpp/include/IcePatch/ClientUtil.h b/cpp/include/IcePatch/ClientUtil.h new file mode 100644 index 00000000000..4797ab5f6da --- /dev/null +++ b/cpp/include/IcePatch/ClientUtil.h @@ -0,0 +1,39 @@ +// ********************************************************************** +// +// Copyright (c) 2002 +// Mutable Realms, Inc. +// Huntsville, AL, USA +// +// All Rights Reserved +// +// ********************************************************************** + +#ifndef ICE_PATCH_CLIENT_UTIL_H +#define ICE_PATCH_CLIENT_UTIL_H + +#include <Ice/Ice.h> +#include <IcePatch/IcePatch.h> + +namespace IcePatch +{ + +ICE_PATCH_API std::string pathToName(const std::string&); + +class ICE_PATCH_API ProgressCB +{ +public: + + virtual void startDownload(Ice::Int, Ice::Int) = 0; + virtual void updateDownload(Ice::Int, Ice::Int) = 0; + virtual void finishedDownload(Ice::Int) = 0; + + virtual void startUncompress(Ice::Int, Ice::Int) = 0; + virtual void updateUncompress(Ice::Int, Ice::Int) = 0; + virtual void finishedUncompress(Ice::Int) = 0; +}; + +ICE_PATCH_API void getRegular(const IcePatch::RegularPrx&, ProgressCB&); + +} + +#endif diff --git a/cpp/include/IcePatch/Util.h b/cpp/include/IcePatch/Util.h index 200cd9c1b9e..d5a62f75668 100644 --- a/cpp/include/IcePatch/Util.h +++ b/cpp/include/IcePatch/Util.h @@ -52,19 +52,8 @@ ICE_PATCH_API Ice::ByteSeq calcPartialMD5(const std::string&, Ice::Int); ICE_PATCH_API Ice::ByteSeq getBZ2(const std::string&, Ice::Int, Ice::Int); ICE_PATCH_API void createBZ2(const std::string&); -class ICE_PATCH_API ProgressCB -{ -public: - - virtual void startDownload(Ice::Int, Ice::Int) = 0; - virtual void updateDownload(Ice::Int, Ice::Int) = 0; - virtual void finishedDownload(Ice::Int) = 0; - - virtual void startUncompress(Ice::Int, Ice::Int) = 0; - virtual void updateUncompress(Ice::Int, Ice::Int) = 0; - virtual void finishedUncompress(Ice::Int) = 0; -}; -ICE_PATCH_API void getRegular(const IcePatch::RegularPrx&, ProgressCB&); +ICE_PATCH_API Ice::Long readStamp(); +ICE_PATCH_API void writeStamp(Ice::Long stamp); } |