33 #include "qgrpcstatus.h"
34 #include "qgrpccredentials.h"
35 #include "qtgrpcglobal.h"
39 namespace QtProtobuf {
41 class QGrpcAsyncReply;
42 class QGrpcSubscription;
43 class QAbstractGrpcClient;
44 class QAbstractProtobufSerializer;
45 struct QAbstractGrpcChannelPrivate;
65 virtual QGrpcStatus call(
const QString &method,
const QString &service,
const QByteArray &args, QByteArray &ret) = 0;
90 virtual std::shared_ptr<QAbstractProtobufSerializer> serializer()
const = 0;
92 const QThread *thread()
const;
118 std::unique_ptr<QAbstractGrpcChannelPrivate> dPtr;
The QAbstractGrpcChannel class is interface that represents common gRPC channel functionality.
Definition: qabstractgrpcchannel.h:52
virtual void subscribe(QGrpcSubscription *subscription, const QString &service, QAbstractGrpcClient *client)=0
Subscribes to server-side stream to receive updates for given method.
virtual void call(const QString &method, const QString &service, const QByteArray &args, QtProtobuf::QGrpcAsyncReply *ret)=0
Calls method asynchronously with given serialized messge args.
virtual QGrpcStatus call(const QString &method, const QString &service, const QByteArray &args, QByteArray &ret)=0
Calls method synchronously with given serialized message args and write result of call to ret.
The QAbstractGrpcClient class is bridge between gRPC clients and channels.
Definition: qabstractgrpcclient.h:67
The QGrpcAsyncReply class contains data for asynchronous call of gRPC client API.
Definition: qgrpcasyncreply.h:47
The QGrpcStatus class contains information about last gRPC operation.
Definition: qgrpcstatus.h:58
The QGrpcSubscription class.
Definition: qgrpcsubscription.h:47