Selaa lähdekoodia

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

	Renamed addTorrentFile as addTorrent
	* src/XmlRpcMethodFactory.cc
	* src/XmlRpcMethodImpl.cc
	* src/XmlRpcMethodImpl.h
Tatsuhiro Tsujikawa 16 vuotta sitten
vanhempi
commit
dac269f658
4 muutettua tiedostoa jossa 11 lisäystä ja 4 poistoa
  1. 7 0
      ChangeLog
  2. 2 2
      src/XmlRpcMethodFactory.cc
  3. 1 1
      src/XmlRpcMethodImpl.cc
  4. 1 1
      src/XmlRpcMethodImpl.h

+ 7 - 0
ChangeLog

@@ -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

+ 2 - 2
src/XmlRpcMethodFactory.cc

@@ -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") {

+ 1 - 1
src/XmlRpcMethodImpl.cc

@@ -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;

+ 1 - 1
src/XmlRpcMethodImpl.h

@@ -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);
 };