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