summaryrefslogtreecommitdiffstats
path: root/libktorrent/torrent/chunk.h
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-18 18:13:41 -0600
committerSlávek Banko <slavek.banko@axis.cz>2012-06-06 03:48:48 +0200
commit1d7c126b63cbc97bba847f61e7c9ee89b80a390c (patch)
tree7e3767afd7f1d73a50f07236dc19f49b7cec287d /libktorrent/torrent/chunk.h
parent5fae492e67ad058cae62c9e58d33645472157067 (diff)
downloadktorrent-1d7c126b63cbc97bba847f61e7c9ee89b80a390c.tar.gz
ktorrent-1d7c126b63cbc97bba847f61e7c9ee89b80a390c.zip
Rename old tq methods that no longer need a unique name
(cherry picked from commit a90eb215f53c95d81f95b32255098066d90556d9)
Diffstat (limited to 'libktorrent/torrent/chunk.h')
-rw-r--r--libktorrent/torrent/chunk.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/libktorrent/torrent/chunk.h b/libktorrent/torrent/chunk.h
index 08d63c3..0896e96 100644
--- a/libktorrent/torrent/chunk.h
+++ b/libktorrent/torrent/chunk.h
@@ -45,7 +45,7 @@ namespace bt
Chunk(unsigned int index,Uint32 size);
~Chunk();
- enum tqStatus
+ enum Status
{
MMAPPED,
BUFFERED,
@@ -54,13 +54,13 @@ namespace bt
};
/// Get the chunks status.
- tqStatus gettqStatus() const;
+ Status getStatus() const;
/**
* Set the chunks status
* @param s
*/
- void settqStatus(tqStatus s);
+ void setStatus(Status s);
/// Get the data
const Uint8* getData() const;
@@ -69,7 +69,7 @@ namespace bt
Uint8* getData();
/// Set the data and the new status
- void setData(Uint8* d,tqStatus nstatus);
+ void setData(Uint8* d,Status nstatus);
/// Clear the chunk (delete data depending on the mode)
void clear();
@@ -118,7 +118,7 @@ namespace bt
virtual void unmapped();
private:
- tqStatus status;
+ Status status;
Uint32 index;
Uint8* data;
Uint32 size;
@@ -126,12 +126,12 @@ namespace bt
Priority priority;
};
- inline Chunk::tqStatus Chunk::gettqStatus() const
+ inline Chunk::Status Chunk::getStatus() const
{
return status;
}
- inline void Chunk::settqStatus(Chunk::tqStatus s)
+ inline void Chunk::setStatus(Chunk::Status s)
{
status = s;
}