mirror of
https://github.com/aria2/aria2.git
synced 2025-04-06 05:57:36 +03:00
2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Added setEndGamePieceNum() pure virtual function to PieceStorage. * src/DefaultPieceStorage.h * src/PieceStorage.h * src/UnknownLengthPieceStorage.h * test/MockPieceStorage.h
This commit is contained in:
parent
9423f0d29a
commit
03b281f604
5 changed files with 15 additions and 1 deletions
|
@ -1,3 +1,11 @@
|
||||||
|
2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
|
||||||
|
|
||||||
|
Added setEndGamePieceNum() pure virtual function to PieceStorage.
|
||||||
|
* src/DefaultPieceStorage.h
|
||||||
|
* src/PieceStorage.h
|
||||||
|
* src/UnknownLengthPieceStorage.h
|
||||||
|
* test/MockPieceStorage.h
|
||||||
|
|
||||||
2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
|
2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
|
||||||
|
|
||||||
Added markTotalLengthIsKnown().
|
Added markTotalLengthIsKnown().
|
||||||
|
|
|
@ -175,7 +175,7 @@ public:
|
||||||
|
|
||||||
virtual const unsigned char* getBitfield();
|
virtual const unsigned char* getBitfield();
|
||||||
|
|
||||||
void setEndGamePieceNum(size_t num) {
|
virtual void setEndGamePieceNum(size_t num) {
|
||||||
endGamePieceNum = num;
|
endGamePieceNum = num;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -187,6 +187,8 @@ public:
|
||||||
|
|
||||||
virtual bool isEndGame() = 0;
|
virtual bool isEndGame() = 0;
|
||||||
|
|
||||||
|
virtual void setEndGamePieceNum(size_t num) = 0;
|
||||||
|
|
||||||
virtual SharedHandle<DiskAdaptor> getDiskAdaptor() = 0;
|
virtual SharedHandle<DiskAdaptor> getDiskAdaptor() = 0;
|
||||||
|
|
||||||
virtual size_t getPieceLength(size_t index) = 0;
|
virtual size_t getPieceLength(size_t index) = 0;
|
||||||
|
|
|
@ -211,6 +211,8 @@ public:
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
virtual void setEndGamePieceNum(size_t num) {}
|
||||||
|
|
||||||
virtual SharedHandle<DiskAdaptor> getDiskAdaptor();
|
virtual SharedHandle<DiskAdaptor> getDiskAdaptor();
|
||||||
|
|
||||||
virtual size_t getPieceLength(size_t index);
|
virtual size_t getPieceLength(size_t index);
|
||||||
|
|
|
@ -188,6 +188,8 @@ public:
|
||||||
return endGame;
|
return endGame;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
virtual void setEndGamePieceNum(size_t num) {}
|
||||||
|
|
||||||
void setEndGame(bool flag) {
|
void setEndGame(bool flag) {
|
||||||
this->endGame = flag;
|
this->endGame = flag;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue