summaryrefslogtreecommitdiffstats
path: root/libktorrent/torrent/chunk.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-28 20:34:15 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-28 20:34:15 +0000
commit1c1403293485f35fd53db45aaa77a01cdd9627e7 (patch)
tree38559cd68cd4f63023fb5f6375def9db3b8b491e /libktorrent/torrent/chunk.h
parent894f94545727610df22c4f73911d62d58266f695 (diff)
downloadktorrent-1c1403293485f35fd53db45aaa77a01cdd9627e7.tar.gz
ktorrent-1c1403293485f35fd53db45aaa77a01cdd9627e7.zip
TQt4 port ktorrent
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/ktorrent@1238733 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
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 0896e96..08d63c3 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 Status
+ enum tqStatus
{
MMAPPED,
BUFFERED,
@@ -54,13 +54,13 @@ namespace bt
};
/// Get the chunks status.
- Status getStatus() const;
+ tqStatus gettqStatus() const;
/**
* Set the chunks status
* @param s
*/
- void setStatus(Status s);
+ void settqStatus(tqStatus 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,Status nstatus);
+ void setData(Uint8* d,tqStatus nstatus);
/// Clear the chunk (delete data depending on the mode)
void clear();
@@ -118,7 +118,7 @@ namespace bt
virtual void unmapped();
private:
- Status status;
+ tqStatus status;
Uint32 index;
Uint8* data;
Uint32 size;
@@ -126,12 +126,12 @@ namespace bt
Priority priority;
};
- inline Chunk::Status Chunk::getStatus() const
+ inline Chunk::tqStatus Chunk::gettqStatus() const
{
return status;
}
- inline void Chunk::setStatus(Chunk::Status s)
+ inline void Chunk::settqStatus(Chunk::tqStatus s)
{
status = s;
}