AdminUtilsFace.h 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. /**
  2. * This file is generated by jsonrpcstub, DO NOT CHANGE IT MANUALLY!
  3. */
  4. #ifndef JSONRPC_CPP_STUB_DEV_RPC_ADMINUTILSFACE_H_
  5. #define JSONRPC_CPP_STUB_DEV_RPC_ADMINUTILSFACE_H_
  6. #include "ModularServer.h"
  7. namespace dev {
  8. namespace rpc {
  9. class AdminUtilsFace : public ServerInterface<AdminUtilsFace>
  10. {
  11. public:
  12. AdminUtilsFace()
  13. {
  14. this->bindAndAddMethod(jsonrpc::Procedure("admin_setVerbosity", jsonrpc::PARAMS_BY_POSITION, jsonrpc::JSON_BOOLEAN, "param1",jsonrpc::JSON_INTEGER,"param2",jsonrpc::JSON_STRING, NULL), &dev::rpc::AdminUtilsFace::admin_setVerbosityI);
  15. this->bindAndAddMethod(jsonrpc::Procedure("admin_verbosity", jsonrpc::PARAMS_BY_POSITION, jsonrpc::JSON_BOOLEAN, "param1",jsonrpc::JSON_INTEGER, NULL), &dev::rpc::AdminUtilsFace::admin_verbosityI);
  16. this->bindAndAddMethod(jsonrpc::Procedure("admin_exit", jsonrpc::PARAMS_BY_POSITION, jsonrpc::JSON_BOOLEAN, "param1",jsonrpc::JSON_STRING, NULL), &dev::rpc::AdminUtilsFace::admin_exitI);
  17. }
  18. inline virtual void admin_setVerbosityI(const Json::Value &request, Json::Value &response)
  19. {
  20. response = this->admin_setVerbosity(request[0u].asInt(), request[1u].asString());
  21. }
  22. inline virtual void admin_verbosityI(const Json::Value &request, Json::Value &response)
  23. {
  24. response = this->admin_verbosity(request[0u].asInt());
  25. }
  26. inline virtual void admin_exitI(const Json::Value &request, Json::Value &response)
  27. {
  28. response = this->admin_exit(request[0u].asString());
  29. }
  30. virtual bool admin_setVerbosity(int param1, const std::string& param2) = 0;
  31. virtual bool admin_verbosity(int param1) = 0;
  32. virtual bool admin_exit(const std::string& param1) = 0;
  33. };
  34. }
  35. }
  36. #endif //JSONRPC_CPP_STUB_DEV_RPC_ADMINUTILSFACE_H_