31 #include "tutorial.qpb.h"
32 #include "tutorial_grpc.qpb.h"
35 class EchoClientEngine :
public QObject
38 Q_PROPERTY(qtprotobuf::tutorial::EchoResponse *response READ response CONSTANT)
40 explicit EchoClientEngine(QObject *parent =
nullptr);
42 Q_INVOKABLE
void request(qtprotobuf::tutorial::EchoRequest *req);
44 qtprotobuf::tutorial::EchoResponse *response()
const
46 return m_response.get();
50 std::unique_ptr<qtprotobuf::tutorial::EchoServiceClient> m_client;
51 std::unique_ptr<qtprotobuf::tutorial::EchoResponse> m_response;