FME Server C++ API 3.0

ifmeservertransfercallback.h

Go to the documentation of this file.
00001 #ifndef _IFMESERVERTRANSFERCALLBACK_H
00002 #define _IFMESERVERTRANSFERCALLBACK_H
00003 
00052 //===========================================================================
00053 // Abstract Interface Class -- all methods are virtual and it has no data
00054 class IFMEServerTransferCallback
00055 {
00056 public:
00057    // -----------------------------------------------------------------------
00059    virtual void start() = 0;
00060 
00061    // -----------------------------------------------------------------------
00063    virtual void stop() = 0;
00064 
00065    // -----------------------------------------------------------------------
00069    virtual void setTotalBytes(int totalBytes) = 0;
00070 
00071    // -----------------------------------------------------------------------
00076    virtual void callback(int transferredBytes) = 0;
00077 
00078 protected:
00079 
00080    // -----------------------------------------------------------------------
00081    // No one should be creating an instance of this directly, so we
00082    // make the constructor protected.
00083    IFMEServerTransferCallback() {}
00084 
00085    // -----------------------------------------------------------------------
00086    // No one should be destroying an instance of this directly, so we
00087    // make the destructor protected.
00088    virtual ~IFMEServerTransferCallback() {}
00089 
00090 private:
00091 
00092    // -----------------------------------------------------------------------
00093    // The copy constructor is not implemented.
00094    IFMEServerTransferCallback(const IFMEServerTransferCallback &other);
00095 
00096    //---------------------------------------------------------------
00097    // The assignment operator is not implemented. 
00098    IFMEServerTransferCallback &operator=(const IFMEServerTransferCallback &other);
00099 
00100 };
00101 
00102 #endif
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Defines