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

QGrpcOperation Class

The QGrpcOperation class implements common logic to handle communication in Grpc channel.

This class was introduced in Qt 6.5.

Article lu   fois.

L'auteur

Liens sociaux

Viadeo Twitter Facebook Share on Google+   

QGrpcOperation Class

  • Header: QGrpcOperation

  • Since: Qt 6.5

  • CMake:

    find_package(Qt6 REQUIRED COMPONENTS Grpc)

    target_link_libraries(mytarget PRIVATE Qt6::Grpc)

  • Inherits: QObject

  • Inherited By: QGrpcCallReply and QGrpcStream

Detailed Description

 

Member Function Documentation

 

void QGrpcOperation::errorOccurred(const QGrpcStatus &status)

This signal indicates the error occurred during serialization.

This signal is emitted when error with status occurs in channel or during serialization.

See Also

void QGrpcOperation::finished()

This signal indicates the end of communication for this call.

If signal emitted by stream this means that stream is successfully closed either by client or server.

QGrpcMetadata QGrpcOperation::metadata() const

Getter of the metadata received from the channel. For the HTTP2 channels it usually contains the HTTP headers received from the server.

See Also

See also setMetadata()

T QGrpcOperation::read() const

Reads message from raw byte array stored in QGrpcCallReply.

Returns a copy of the deserialized message or, on failure, a default-constructed message.

void QGrpcOperation::setData(const QByteArray &data)

Interface for implementation of QAbstractGrpcChannel.

Should be used to write raw data from channel to reply data raw data received from channel.

void QGrpcOperation::setData(QByteArray &&data)

Interface for implementation of QAbstractGrpcChannel.

Should be used to write raw data from channel to reply data raw data received from channel.

void QGrpcOperation::setMetadata(const QGrpcMetadata &metadata)

Interface for implementation of QAbstractGrpcChannel.

Should be used to write metadata from channel to reply metadata received from channel. For the HTTP2 channels it usually contains the HTTP headers received from the server.

See Also

See also metadata()

void QGrpcOperation::setMetadata(QGrpcMetadata &&metadata)

Interface for implementation of QAbstractGrpcChannel.

Should be used to write metadata from channel to reply metadata received from channel. For the HTTP2 channels it usually contains the HTTP headers received from the server.

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