/* */ #ifndef _D_DOWNLOAD_COMMAND_H_ #define _D_DOWNLOAD_COMMAND_H_ #include "AbstractCommand.h" #include "TransferEncoding.h" #include #include using namespace std; class DownloadCommand : public AbstractCommand { private: struct timeval sw; long long int lastSize; protected: bool executeInternal(Segment segment); bool prepareForRetry(int wait); bool prepareForNextSegment(); public: DownloadCommand(int cuid, Request* req, DownloadEngine* e, const Socket* s); virtual ~DownloadCommand(); virtual TransferEncoding* getTransferEncoding(string transferEncoding) = 0; string transferEncoding; }; #endif // _D_DOWNLOAD_COMMAND_H_