summaryrefslogtreecommitdiff
path: root/cpp/include/IcePatch/ClientUtil.h
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/include/IcePatch/ClientUtil.h')
-rw-r--r--cpp/include/IcePatch/ClientUtil.h39
1 files changed, 39 insertions, 0 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