25 #ifndef SRC_GUI_INCLUDE_CORBO_GUI_RPC_CONNECTION_WORKER_H_ 26 #define SRC_GUI_INCLUDE_CORBO_GUI_RPC_CONNECTION_WORKER_H_ 44 explicit RpcConnectionWorker(std::shared_ptr<MasterServiceClient> rpc_client, QObject* parent =
nullptr) : QObject(parent)
49 _rpc_client = std::make_shared<MasterServiceClient>();
79 std::shared_ptr<grpc::Channel> channel = grpc::CreateChannel(
_server_address.toStdString(), grpc::InsecureChannelCredentials());
100 #endif // SRC_GUI_INCLUDE_CORBO_GUI_RPC_CONNECTION_WORKER_H_ void connectRpc(const QString &address)
RpcConnectionWorker(std::shared_ptr< MasterServiceClient > rpc_client, QObject *parent=nullptr)
void connectionResult(std::shared_ptr< MasterServiceClient > client)
std::shared_ptr< MasterServiceClient > _rpc_client