diff options
author | Marc Laukien <marc@zeroc.com> | 2002-04-05 03:45:23 +0000 |
---|---|---|
committer | Marc Laukien <marc@zeroc.com> | 2002-04-05 03:45:23 +0000 |
commit | c92972c738d538caca10fe31921d577c1f70ea4f (patch) | |
tree | de87b66756095437699460c062a4f8f91ab6a239 /cpp/include/IcePatch/Util.h | |
parent | more IcePatch stuff (diff) | |
download | ice-c92972c738d538caca10fe31921d577c1f70ea4f.tar.bz2 ice-c92972c738d538caca10fe31921d577c1f70ea4f.tar.xz ice-c92972c738d538caca10fe31921d577c1f70ea4f.zip |
more IcePatch stuff
Diffstat (limited to 'cpp/include/IcePatch/Util.h')
-rw-r--r-- | cpp/include/IcePatch/Util.h | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/cpp/include/IcePatch/Util.h b/cpp/include/IcePatch/Util.h index 6c080ecc65e..159e79055b4 100644 --- a/cpp/include/IcePatch/Util.h +++ b/cpp/include/IcePatch/Util.h @@ -17,6 +17,8 @@ namespace IcePatch { +extern const std::string tmpName; + std::string identityToPath(const Ice::Identity&); Ice::Identity pathToIdentity(const std::string&); @@ -36,14 +38,26 @@ void removeRecursive(const std::string&); void createDirectory(const std::string&); Ice::ByteSeq getMD5(const std::string&); -std::string MD5ToString(const Ice::ByteSeq&); +void createMD5(const std::string&); +void createMD5Recursive(const std::string&); void writeBZ2(const std::string&, const Ice::ByteSeq&); Ice::ByteSeq readBZ2(const std::string&); +Ice::Int getSizeBZ2(const std::string&); Ice::ByteSeq getBytesBZ2(const std::string&, Ice::Int, Ice::Int); +void createBZ2(const std::string&); +void createBZ2Recursive(const std::string&); + +class ProgressCB +{ +public: -void getFile(const IcePatch::FilePrx&); + virtual void start(Ice::Int) = 0; + virtual void update(Ice::Int, Ice::Int) = 0; + virtual void finished(Ice::Int) = 0; +}; +void getFile(const IcePatch::FilePrx&, ProgressCB&); } |