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