23 #include <ktorrent_export.h>
24 #include <util/constants.h>
25 #include <diskio/piecedata.h>
73 PieceData::Ptr
getPiece(Uint32 off,Uint32 len,
bool read_only);
101 void setPriority(Priority newpriority = NORMAL_PRIORITY) {priority = newpriority;}
110 void setExclude(
bool yes) {priority = yes ? EXCLUDED : NORMAL_PRIORITY;}
Priority getPriority() const
get chunk priority
bool isExcludedForDownloading() const
Is this a seed only chunk.
Keep track of a piece of the file.
Uint32 getIndex() const
Get the chunk's index.
bool checkHash(const SHA1Hash &h)
bool readPiece(Uint32 off, Uint32 len, Uint8 *data)
PieceData::Ptr getPiece(Uint32 off, Uint32 len, bool read_only)
Status getStatus() const
Get the chunks status.
Uint32 getSize() const
Get the chunk's size.
Manages the temporary data.
void setExclude(bool yes)
In/Exclude chunk.
void savePiece(PieceData::Ptr piece)
bool isExcluded() const
Is chunk excluded.
void setPriority(Priority newpriority=NORMAL_PRIORITY)
set chunk priority