25 #ifndef SRC_GUI_INCLUDE_CORBO_GUI_RPC_CONNECTION_WORKER_H_
26 #define SRC_GUI_INCLUDE_CORBO_GUI_RPC_CONNECTION_WORKER_H_
39 class RpcConnectionWorker :
public QObject
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_