2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>

Renamed addTorrentFile as addTorrent
	* src/XmlRpcMethodFactory.cc
	* src/XmlRpcMethodImpl.cc
	* src/XmlRpcMethodImpl.h
pull/1/head
Tatsuhiro Tsujikawa 2009-05-10 14:44:45 +00:00
parent bb56bd5bd1
commit dac269f658
4 changed files with 11 additions and 4 deletions

View File

@ -1,3 +1,10 @@
2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Renamed addTorrentFile as addTorrent
* src/XmlRpcMethodFactory.cc
* src/XmlRpcMethodImpl.cc
* src/XmlRpcMethodImpl.h
2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
The information for files, URIs, peers are removed from the

View File

@ -46,8 +46,8 @@ XmlRpcMethodFactory::create(const std::string& methodName)
{
if(methodName == "aria2.addURI") {
return SharedHandle<XmlRpcMethod>(new AddURIXmlRpcMethod());
} else if(methodName == "aria2.addTorrentFile") {
return SharedHandle<XmlRpcMethod>(new AddTorrentFileXmlRpcMethod());
} else if(methodName == "aria2.addTorrent") {
return SharedHandle<XmlRpcMethod>(new AddTorrentXmlRpcMethod());
} else if(methodName == "aria2.remove") {
return SharedHandle<XmlRpcMethod>(new RemoveXmlRpcMethod());
} else if(methodName == "aria2.tellStatus") {

View File

@ -104,7 +104,7 @@ BDE AddURIXmlRpcMethod::process(const XmlRpcRequest& req, DownloadEngine* e)
}
}
BDE AddTorrentFileXmlRpcMethod::process
BDE AddTorrentXmlRpcMethod::process
(const XmlRpcRequest& req, DownloadEngine* e)
{
const BDE& params = req._params;

View File

@ -51,7 +51,7 @@ protected:
virtual BDE process(const XmlRpcRequest& req, DownloadEngine* e);
};
class AddTorrentFileXmlRpcMethod:public XmlRpcMethod {
class AddTorrentXmlRpcMethod:public XmlRpcMethod {
protected:
virtual BDE process(const XmlRpcRequest& req, DownloadEngine* e);
};