QGrpcClientBase Class

The QGrpcClientBase class serves as base for generated client interfaces. More...

Header: #include <QGrpcClientBase>
CMake: find_package(Qt6 REQUIRED COMPONENTS Grpc)
target_link_libraries(mytarget PRIVATE Qt6::Grpc)
Since: Qt 6.5
Inherits: QObject

Public Functions

virtual ~QGrpcClientBase() override
bool attachChannel(int channel)
(since 6.7) int channel() const

Signals

(since 6.7) void channelChanged()

Detailed Description

The QGrpcClientBase class provides a common set of functionalities for the generated client interface of the gRPC service definition.

The RPC methods of this class should not be called directly.

Note: Thread safety is enforced for the non-const member functions. These functions must be called from the same thread in which the object was created.

Member Function Documentation

[override virtual noexcept] QGrpcClientBase::~QGrpcClientBase()

Destroys the QGrpcClientBase.

[since 6.7] int QGrpcClientBase::channel() const

Returns the channel attached to this client.

Note: Getter function for property channel.

This function was introduced in Qt 6.7.

[signal, since 6.7] void QGrpcClientBase::channelChanged()

Indicates that a new channel got attached to the client.

Note: Notifier signal for property channel.

This function was introduced in Qt 6.7.