/* */ #ifndef _D_FILE_ALLOCATION_MONITOR_H_ #define _D_FILE_ALLOCATION_MONITOR_H_ #include "FileProgressMonitor.h" typedef FileProgressMonitor FileAllocationMonitor; typedef SharedHandle FileAllocationMonitorHandle; class FileAllocationMonitorFactory; typedef SharedHandle FileAllocationMonitorFactoryHandle; class FileAllocationMonitorFactory { private: static FileAllocationMonitorFactoryHandle factory; protected: FileAllocationMonitorFactory() {} public: static FileAllocationMonitorFactoryHandle getFactory() { return factory; } virtual ~FileAllocationMonitorFactory() {} static void setFactory(const FileAllocationMonitorFactoryHandle& factory) { FileAllocationMonitorFactory::factory = factory; } virtual FileAllocationMonitorHandle createNewMonitor() = 0; }; #endif // _D_FILE_ALLOCATION_MONITOR_H_