initial load of upstream version 1.06.32
[xmlrpc-c] / tools / xml-rpc-api2cpp / SystemProxy.hpp
1 // SystemProxy.h - xmlrpc-c C++ proxy class
2 // Auto-generated by xml-rpc-api2cpp.
3
4 #ifndef _SystemProxy_H_
5 #define _SystemProxy_H_ 1
6
7 #include <string>
8
9 #include "xmlrpc-c/oldcppwrapper.hpp"
10
11 class SystemProxy {
12     XmlRpcClient mClient;
13
14 public:
15     SystemProxy (const XmlRpcClient& client)
16         : mClient(client) {}
17     SystemProxy (const std::string& server_url)
18         : mClient(XmlRpcClient(server_url)) {}
19     SystemProxy (const SystemProxy& o)
20         : mClient(o.mClient) {}
21
22     SystemProxy& operator= (const SystemProxy& o) {
23         if (this != &o) mClient = o.mClient;
24         return *this;
25     }
26
27     /* Return an array of all available XML-RPC methods on this server. */
28     XmlRpcValue /*array*/ listMethods ();
29
30     /* Given the name of a method, return an array of legal
31        signatures. Each signature is an array of strings. The first item of
32        each signature is the return type, and any others items are
33        parameter types. */
34     XmlRpcValue /*array*/ methodSignature (std::string string1);
35
36     /* Given the name of a method, return a help string. */
37     std::string methodHelp (std::string string1);
38
39     /* Process an array of calls, and return an array of results. Calls
40        should be structs of the form {'methodName': string, 'params':
41        array}. Each result will either be a single-item array containg the
42        result value, or a struct of the form {'faultCode': int,
43        'faultString': string}. This is useful when you need to make lots of
44        small calls without lots of round trips. */
45     XmlRpcValue /*array*/ multicall (XmlRpcValue /*array*/ array1);
46 };
47
48 #endif /* _SystemProxy_H_ */