/* */ #ifndef _D_COPY_DISK_ADAPTOR_H_ #define _D_COPY_DISK_ADAPTOR_H_ #include "AbstractSingleDiskAdaptor.h" class CopyDiskAdaptor : public AbstractSingleDiskAdaptor { private: string tempFilename; string topDir; void fixFilename(); public: CopyDiskAdaptor() {} virtual ~CopyDiskAdaptor() {} virtual string getFilePath(); virtual void onDownloadComplete(); // tempFilename is relative to storeDir void setTempFilename(const string& tempFilename) { this->tempFilename = tempFilename; } const string& getTempFile() const { return this->tempFilename; } void setTopDir(const string& topDir) { this->topDir = topDir; } const string& getTopDir() const { return topDir; } }; typedef SharedHandle CopyDiskAdaptorHandle; #endif // _D_COPY_DISK_ADAPTOR_H_