mirror of https://github.com/aria2/aria2
2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Renamed addTorrentFile as addTorrent * src/XmlRpcMethodFactory.cc * src/XmlRpcMethodImpl.cc * src/XmlRpcMethodImpl.hpull/1/head
parent
bb56bd5bd1
commit
dac269f658
|
@ -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>
|
2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
|
||||||
|
|
||||||
The information for files, URIs, peers are removed from the
|
The information for files, URIs, peers are removed from the
|
||||||
|
|
|
@ -46,8 +46,8 @@ XmlRpcMethodFactory::create(const std::string& methodName)
|
||||||
{
|
{
|
||||||
if(methodName == "aria2.addURI") {
|
if(methodName == "aria2.addURI") {
|
||||||
return SharedHandle<XmlRpcMethod>(new AddURIXmlRpcMethod());
|
return SharedHandle<XmlRpcMethod>(new AddURIXmlRpcMethod());
|
||||||
} else if(methodName == "aria2.addTorrentFile") {
|
} else if(methodName == "aria2.addTorrent") {
|
||||||
return SharedHandle<XmlRpcMethod>(new AddTorrentFileXmlRpcMethod());
|
return SharedHandle<XmlRpcMethod>(new AddTorrentXmlRpcMethod());
|
||||||
} else if(methodName == "aria2.remove") {
|
} else if(methodName == "aria2.remove") {
|
||||||
return SharedHandle<XmlRpcMethod>(new RemoveXmlRpcMethod());
|
return SharedHandle<XmlRpcMethod>(new RemoveXmlRpcMethod());
|
||||||
} else if(methodName == "aria2.tellStatus") {
|
} else if(methodName == "aria2.tellStatus") {
|
||||||
|
|
|
@ -104,7 +104,7 @@ BDE AddURIXmlRpcMethod::process(const XmlRpcRequest& req, DownloadEngine* e)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
BDE AddTorrentFileXmlRpcMethod::process
|
BDE AddTorrentXmlRpcMethod::process
|
||||||
(const XmlRpcRequest& req, DownloadEngine* e)
|
(const XmlRpcRequest& req, DownloadEngine* e)
|
||||||
{
|
{
|
||||||
const BDE& params = req._params;
|
const BDE& params = req._params;
|
||||||
|
|
|
@ -51,7 +51,7 @@ protected:
|
||||||
virtual BDE process(const XmlRpcRequest& req, DownloadEngine* e);
|
virtual BDE process(const XmlRpcRequest& req, DownloadEngine* e);
|
||||||
};
|
};
|
||||||
|
|
||||||
class AddTorrentFileXmlRpcMethod:public XmlRpcMethod {
|
class AddTorrentXmlRpcMethod:public XmlRpcMethod {
|
||||||
protected:
|
protected:
|
||||||
virtual BDE process(const XmlRpcRequest& req, DownloadEngine* e);
|
virtual BDE process(const XmlRpcRequest& req, DownloadEngine* e);
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue