SystemProxy.cpp 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839
  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. #include <string>
  7. #include "xmlrpc-c/oldcppwrapper.hpp"
  8. #include "SystemProxy.hpp"
  9. using namespace std;
  10. XmlRpcValue /*array*/ SystemProxy::listMethods () {
  11. XmlRpcValue params = XmlRpcValue::makeArray();
  12. XmlRpcValue result = this->mClient.call("system.listMethods", params);
  13. return result;
  14. }
  15. XmlRpcValue /*array*/ SystemProxy::methodSignature (string string1) {
  16. XmlRpcValue params = XmlRpcValue::makeArray();
  17. params.arrayAppendItem(XmlRpcValue::makeString(string1));
  18. XmlRpcValue result = this->mClient.call("system.methodSignature", params);
  19. return result;
  20. }
  21. string SystemProxy::methodHelp (string string1) {
  22. XmlRpcValue params = XmlRpcValue::makeArray();
  23. params.arrayAppendItem(XmlRpcValue::makeString(string1));
  24. XmlRpcValue result = this->mClient.call("system.methodHelp", params);
  25. return result.getString();
  26. }
  27. XmlRpcValue /*array*/ SystemProxy::multicall (XmlRpcValue /*array*/ array1) {
  28. XmlRpcValue params = XmlRpcValue::makeArray();
  29. params.arrayAppendItem(array1);
  30. XmlRpcValue result = this->mClient.call("system.multicall", params);
  31. return result;
  32. }