IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)

QGrpcCallReply Class

The QGrpcCallReply class contains data for asynchronous call of gRPC client API.

This class was introduced in Qt 6.5.

Article lu   fois.

L'auteur

Liens sociaux

Viadeo Twitter Facebook Share on Google+   

QGrpcCallReply Class

  • Header: QGrpcCallReply

  • Since: Qt 6.5

  • CMake:

    find_package(Qt6 REQUIRED COMPONENTS Grpc)

    target_link_libraries(mytarget PRIVATE Qt6::Grpc)

  • Inherits: QGrpcOperation

I. Detailed Description

The QGrpcCallReply object is owned by the client object that created it. QGrpcCallReply can be used by QAbstractGrpcChannel implementations to control call workflow and abort calls if possible in the event of QGrpcCallReply::abort being called by a library user.

II. Member Function Documentation

 

II-1. [override virtual] void QGrpcCallReply::abort()

Aborts this reply and try to abort call in channel.

II-2. 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:

 
Sélectionnez
QObject::connect(this, &QGrpcCallReply::finished, receiver,
                 std::forward<Func1>(finishCallback), type);
QObject::connect(this, &QGrpcCallReply::errorOccurred, receiver,
                 std::forward<Func2>(errorCallback), type);

II-3. 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:

 
Sélectionnez
QObject::connect(this, &QGrpcCallReply::finished, receiver,
                 std::forward<Func1>(finishCallback), type);

Vous avez aimé ce tutoriel ? Alors partagez-le en cliquant sur les boutons suivants : Viadeo Twitter Facebook Share on Google+