2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>

Added 'errorCode' to the reponse of tellStatus xml-rpc method.
	This key is only available for stopped/completed downloads and its
	value is the error code defined in EXIT STATUS in man page.
	* src/XmlRpcMethodImpl.cc
pull/1/head
Tatsuhiro Tsujikawa 2009-07-15 12:39:52 +00:00
parent de23f72818
commit d17d7631e1
2 changed files with 8 additions and 0 deletions

View File

@ -1,3 +1,10 @@
2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Added 'errorCode' to the reponse of tellStatus xml-rpc method.
This key is only available for stopped/completed downloads and its
value is the error code defined in EXIT STATUS in man page.
* src/XmlRpcMethodImpl.cc
2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net> 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Fixed the bug that session download length is not updated when Fixed the bug that session download length is not updated when

View File

@ -345,6 +345,7 @@ static void gatherStoppedDownload
(BDE& entryDict, const SharedHandle<DownloadResult>& ds) (BDE& entryDict, const SharedHandle<DownloadResult>& ds)
{ {
entryDict["gid"] = Util::itos(ds->gid); entryDict["gid"] = Util::itos(ds->gid);
entryDict["errorCode"] = Util::itos(static_cast<int>(ds->result));
if(ds->result == downloadresultcode::IN_PROGRESS) { if(ds->result == downloadresultcode::IN_PROGRESS) {
entryDict["status"] = BDE_REMOVED; entryDict["status"] = BDE_REMOVED;
} else if(ds->result == downloadresultcode::FINISHED) { } else if(ds->result == downloadresultcode::FINISHED) {