Преглед изворни кода

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

	Call setStatusRealtime() in constructor.
	* src/RealtimeCommand.cc
	* src/RealtimeCommand.h
Tatsuhiro Tsujikawa пре 17 година
родитељ
комит
281319e8cd
3 измењених фајлова са 16 додато и 5 уклоњено
  1. 6 0
      ChangeLog
  2. 9 0
      src/RealtimeCommand.cc
  3. 1 5
      src/RealtimeCommand.h

+ 6 - 0
ChangeLog

@@ -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>
 
 	Call Download::setNoWait(true) to execute newly created command without

+ 9 - 0
src/RealtimeCommand.cc

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

+ 1 - 5
src/RealtimeCommand.h

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