浏览代码

2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>

	Moved setStatusRealtime() from FileAllocationDispatcherCommand
	to SequentialDispatcherCommand.
	* src/FileAllocationDispatcherCommand.cc
	* src/SequentialDispatcherCommand.h
Tatsuhiro Tsujikawa 16 年之前
父节点
当前提交
5da58fe01d
共有 3 个文件被更改,包括 12 次插入5 次删除
  1. 7 0
      ChangeLog
  2. 1 4
      src/FileAllocationDispatcherCommand.cc
  3. 4 1
      src/SequentialDispatcherCommand.h

+ 7 - 0
ChangeLog

@@ -1,3 +1,10 @@
+2009-01-24  Tatsuhiro Tsujikawa  <t-tujikawa@users.sourceforge.net>
+
+	Moved setStatusRealtime() from FileAllocationDispatcherCommand to
+	SequentialDispatcherCommand.
+	* src/FileAllocationDispatcherCommand.cc
+	* src/SequentialDispatcherCommand.h
+	
 2009-01-24  Tatsuhiro Tsujikawa  <t-tujikawa@users.sourceforge.net>
 
 	Rewritten FileAllocationDispatcherCommand using brand new

+ 1 - 4
src/FileAllocationDispatcherCommand.cc

@@ -44,10 +44,7 @@ FileAllocationDispatcherCommand::FileAllocationDispatcherCommand
 (int32_t cuid,
  const SharedHandle<FileAllocationMan>& fileAllocMan,
  DownloadEngine* e):SequentialDispatcherCommand<FileAllocationEntry>
-		    (cuid, fileAllocMan, e)
-{
-  setStatusRealtime();
-}
+		    (cuid, fileAllocMan, e) {}
 
 Command* FileAllocationDispatcherCommand::createCommand
 (const SharedHandle<FileAllocationEntry>& entry)

+ 4 - 1
src/SequentialDispatcherCommand.h

@@ -55,7 +55,10 @@ public:
   SequentialDispatcherCommand(int32_t cuid,
 			      const SharedHandle<SequentialPicker<T> >& picker,
 			      DownloadEngine* e):
-    Command(cuid), _picker(picker), _e(e) {}
+    Command(cuid), _picker(picker), _e(e)
+  {
+    setStatusRealtime();
+  }
   
   virtual bool execute()
   {