summaryrefslogtreecommitdiff
path: root/src/aria2api.h
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2013-04-30 22:42:23 +0900
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2013-04-30 22:42:23 +0900
commit1df4adefb58cf904caa1fea55ca35944b847a820 (patch)
treed7e12d76177eb8fb15c5ec9625d5e56610ead10c /src/aria2api.h
parentd1252dcc5f7ff889f1bb6e331f214a1f30049693 (diff)
Add accessors for DownloadHandle
Added downloadGetBitfield, downloadGetNumPieces, downloadGetConnections, downloadGetErrorCode, downloadGetFollowedBy, downloadGetBelongsTo and downloadGetDir functions.
Diffstat (limited to 'src/aria2api.h')
-rw-r--r--src/aria2api.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/aria2api.h b/src/aria2api.h
index 82fb7436..51217d49 100644
--- a/src/aria2api.h
+++ b/src/aria2api.h
@@ -56,8 +56,15 @@ struct DownloadHandle {
virtual int64_t getTotalLength() = 0;
virtual int64_t getCompletedLength() = 0;
virtual int64_t getUploadLength() = 0;
+ virtual std::string getBitfield() = 0;
virtual int getDownloadSpeed() = 0;
virtual int getUploadSpeed() = 0;
+ virtual size_t getNumPieces() = 0;
+ virtual int getConnections() = 0;
+ virtual int getErrorCode() = 0;
+ virtual const std::vector<A2Gid>& getFollowedBy() = 0;
+ virtual A2Gid getBelongsTo() = 0;
+ virtual const std::string& getDir() = 0;
};
} // namespace aria2