/* */ #ifndef _D_DOWNLOAD_COMMAND_H_ #define _D_DOWNLOAD_COMMAND_H_ #include "AbstractCommand.h" #include "TransferEncoding.h" #include "Time.h" using namespace std; class DownloadCommand : public AbstractCommand { private: Time 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(const string& transferEncoding) = 0; string transferEncoding; }; #endif // _D_DOWNLOAD_COMMAND_H_