QGrpcCallReply Class
The QGrpcCallReply class implements logic to handle gRPC calls from the gRPC client side. More...
| Header: | #include <QGrpcCallReply> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS Grpc)target_link_libraries(mytarget PRIVATE Qt6::Grpc) |
| Since: | Qt 6.5 |
| Inherits: | QGrpcOperation |
| Status: | Technical Preview |
Public Functions
| void | subscribe(const QObject *receiver, FinishCallback &&finishCallback, Qt::ConnectionType type = Qt::AutoConnection) |
Detailed Description
The QGrpcCallReply object is owned by the client object that created it.
Member Function Documentation
template <typename FinishCallback> void QGrpcCallReply::subscribe(const QObject *receiver, FinishCallback &&finishCallback, Qt::ConnectionType type = Qt::AutoConnection)
Convenience function to connect the finishCallback of receiver to the QGrpcCallReply::finished signal with given connection type.
Calling this function is equivalent to the following:
QObject::connect(this, &QGrpcCallReply::finished, receiver, std::forward<FinishCallback>(finishCallback), type);