initial load of upstream version 1.06.32
[xmlrpc-c] / tools / xml-rpc-api2cpp / SystemProxy.cpp
1 // SystemProxy.cc - xmlrpc-c C++ proxy class
2 // Auto-generated by xml-rpc-api2cpp.
3 // But for now, this file is maintained manually.  When someone figures
4 // out how stuff in this directory works, maybe we'll make it an automatically
5 // generated file.  -Bryan 2005.06.05.
6
7 #include <string>
8
9 #include "xmlrpc-c/oldcppwrapper.hpp"
10 #include "SystemProxy.hpp"
11
12 using namespace std;
13
14 XmlRpcValue /*array*/ SystemProxy::listMethods () {
15     XmlRpcValue params = XmlRpcValue::makeArray();
16     XmlRpcValue result = this->mClient.call("system.listMethods", params);
17     return result;
18 }
19
20 XmlRpcValue /*array*/ SystemProxy::methodSignature (string string1) {
21     XmlRpcValue params = XmlRpcValue::makeArray();
22     params.arrayAppendItem(XmlRpcValue::makeString(string1));
23     XmlRpcValue result = this->mClient.call("system.methodSignature", params);
24     return result;
25 }
26
27 string SystemProxy::methodHelp (string string1) {
28     XmlRpcValue params = XmlRpcValue::makeArray();
29     params.arrayAppendItem(XmlRpcValue::makeString(string1));
30     XmlRpcValue result = this->mClient.call("system.methodHelp", params);
31     return result.getString();
32 }
33
34 XmlRpcValue /*array*/ SystemProxy::multicall (XmlRpcValue /*array*/ array1) {
35     XmlRpcValue params = XmlRpcValue::makeArray();
36     params.arrayAppendItem(array1);
37     XmlRpcValue result = this->mClient.call("system.multicall", params);
38     return result;
39 }