2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>

Call setStatusRealtime() in constructor.
	* src/RealtimeCommand.cc
	* src/RealtimeCommand.h
pull/1/head
Tatsuhiro Tsujikawa 2008-09-13 15:57:23 +00:00
parent 369aff31c2
commit 281319e8cd
3 changed files with 16 additions and 5 deletions

View File

@ -1,3 +1,9 @@
2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
Call setStatusRealtime() in constructor.
* src/RealtimeCommand.cc
* src/RealtimeCommand.h
2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com> 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
Call Download::setNoWait(true) to execute newly created command without Call Download::setNoWait(true) to execute newly created command without

View File

@ -38,6 +38,15 @@
namespace aria2 { namespace aria2 {
RealtimeCommand::RealtimeCommand(int cuid, RequestGroup* requestGroup,
DownloadEngine* e):
Command(cuid),
RequestGroupAware(requestGroup),
_e(e)
{
setStatusRealtime();
}
bool RealtimeCommand::execute() bool RealtimeCommand::execute()
{ {
setStatusRealtime(); setStatusRealtime();

View File

@ -47,11 +47,7 @@ class RealtimeCommand : public Command, public RequestGroupAware {
protected: protected:
DownloadEngine* _e; DownloadEngine* _e;
public: public:
RealtimeCommand(int cuid, RequestGroup* requestGroup, DownloadEngine* e): RealtimeCommand(int cuid, RequestGroup* requestGroup, DownloadEngine* e);
Command(cuid),
RequestGroupAware(requestGroup),
_e(e)
{}
virtual ~RealtimeCommand() {} virtual ~RealtimeCommand() {}