SystemProxy.hpp 1.6 KB

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