QGrpcCallReply Class▲
-
Header: QGrpcCallReply
-
Since: Qt 6.5
-
CMake:
find_package(Qt6 REQUIRED COMPONENTS Grpc)
target_link_libraries(mytarget PRIVATE Qt6::Grpc)
-
Inherits: QGrpcOperation
Detailed Description▲
The QGrpcCallReply object is owned by the client object that created it.
Member Function Documentation▲
void QGrpcCallReply::subscribe(QObject *receiver, Func1 &&finishCallback, Func2 &&errorCallback, Qt::ConnectionType type = Qt::AutoConnection)▲
Convenience function to connect the finishCallback and errorCallback of receiver to the QGrpcCallReply::finished and the QGrpcCallReply::errorOccurred signals with the given connection type.
Calling this function is equivalent to the following:
QObject::
connect(this
, &
amp;QGrpcCallReply::
finished, receiver,
std::
forward&
lt;Func1&
gt;(finishCallback), type);
QObject::
connect(this
, &
amp;QGrpcCallReply::
errorOccurred, receiver,
std::
forward&
lt;Func2&
gt;(errorCallback), type);
void QGrpcCallReply::subscribe(QObject *receiver, Func1 &&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
, &
amp;QGrpcCallReply::
finished, receiver,
std::
forward&
lt;Func1&
gt;(finishCallback), type);