5#ifndef ICE_PATCH2_CLIENT_UTIL_H
6#define ICE_PATCH2_CLIENT_UTIL_H
10#include <IcePatch2/FileServer.h>
22class ICEPATCH2_API PatcherFeedback :
public IceUtil::Shared
26 virtual ~PatcherFeedback();
33 virtual bool noFileSummary(
const std::string& reason) = 0;
42 virtual bool checksumStart() = 0;
43 virtual bool checksumProgress(
const std::string&) = 0;
44 virtual bool checksumEnd() = 0;
53 virtual bool fileListStart() = 0;
54 virtual bool fileListProgress(
Ice::Int) = 0;
55 virtual bool fileListEnd() = 0;
66 virtual bool patchEnd() = 0;
68typedef IceUtil::Handle<PatcherFeedback> PatcherFeedbackPtr;
74class ICEPATCH2_API Patcher :
public IceUtil::Shared
91 virtual bool prepare() = 0;
100 virtual bool patch(
const std::string&) = 0;
107 virtual void finish() = 0;
109typedef IceUtil::Handle<Patcher> PatcherPtr;
115class ICEPATCH2_API PatcherFactory :
public IceUtil::noncopyable
132 static PatcherPtr create(
const Ice::CommunicatorPtr&,
const PatcherFeedbackPtr&);
138 static PatcherPtr create(
const FileServerPrx&,
const PatcherFeedbackPtr&,
const std::string&,
bool,
Ice::Int,
Ice::Int);
int Int
The mapping for the Slice int type.
Definition Config.h:54
long long int Long
The mapping for the Slice long type.
Definition Config.h:57