| 1 |
|
| 2 |
|
| 3 |
#ifndef QTGRPCGEN_CLIENT_GRPC_QPB_H |
| 4 |
#define QTGRPCGEN_CLIENT_GRPC_QPB_H |
| 5 |
|
| 6 |
#include "qtgrpcgen.qpb.h" |
| 7 |
|
| 8 |
#include <QtGrpc/qgrpccallreply.h> |
| 9 |
#include <QtGrpc/qgrpcclientbase.h> |
| 10 |
#include <QtGrpc/qgrpcstream.h> |
| 11 |
|
| 12 |
#include <memory> |
| 13 |
|
| 14 |
namespace qtgrpc::tests { |
| 15 |
namespace TestService { |
| 16 |
|
| 17 |
class Client : public QGrpcClientBase |
| 18 |
{ |
| 19 |
Q_OBJECT |
| 20 |
|
| 21 |
public: |
| 22 |
explicit Client(QObject *parent = nullptr); |
| 23 |
~Client() override; |
| 24 |
|
| 25 |
[[nodiscard]] |
| 26 |
std::unique_ptr<QGrpcCallReply> testMethod(const qtgrpc::tests::IntMessage &arg); |
| 27 |
[[nodiscard]] |
| 28 |
std::unique_ptr<QGrpcCallReply> testMethod(const qtgrpc::tests::IntMessage &arg, const QGrpcCallOptions &options); |
| 29 |
|
| 30 |
[[nodiscard]] |
| 31 |
std::unique_ptr<QGrpcServerStream> testMethodServerStream(const qtgrpc::tests::IntMessage &arg); |
| 32 |
[[nodiscard]] |
| 33 |
std::unique_ptr<QGrpcServerStream> testMethodServerStream(const qtgrpc::tests::IntMessage &arg, const QGrpcCallOptions &options); |
| 34 |
|
| 35 |
[[nodiscard]] |
| 36 |
std::unique_ptr<QGrpcClientStream> testMethodClientStream(const qtgrpc::tests::IntMessage &arg); |
| 37 |
[[nodiscard]] |
| 38 |
std::unique_ptr<QGrpcClientStream> testMethodClientStream(const qtgrpc::tests::IntMessage &arg, const QGrpcCallOptions &options); |
| 39 |
|
| 40 |
[[nodiscard]] |
| 41 |
std::unique_ptr<QGrpcBidiStream> testMethodBiStream(const qtgrpc::tests::IntMessage &arg); |
| 42 |
[[nodiscard]] |
| 43 |
std::unique_ptr<QGrpcBidiStream> testMethodBiStream(const qtgrpc::tests::IntMessage &arg, const QGrpcCallOptions &options); |
| 44 |
|
| 45 |
|
| 46 |
}; |
| 47 |
} |
| 48 |
} |
| 49 |
|
| 50 |
#endif |