Change arguments for the private channel-rpc interface


The new interface provides the operationContext as a raw pointer and
also contains the initial serialized argument to start the call.

We observed that having shared ownership of the context between the
channel and the QGrpcOperation is problematic. The latter is owned by
the user, and if the QGrpcOperation is destroyed, there is no point in
keeping the context alive any longer. Channel implementations should
also treat the context as a weak reference and either connect to its
destroyed signal or check for validity.

This patch provides a better lifetime contract and prepares to remove
the unneeded storage overhead of QGrpcOperationContext::argument.

[ChangeLog][Important Behavior Changes][QAbstractGrpcChannel] The
abstract interface of private RPC functions has changed. Users of this
private, undocumented API must adapt their code.

Change-Id: I0baa7dc8639ec49fd28ce122476981545a36a0b4
Reviewed-by: Alexey Edelev <semlanik@gmail.com>
commita05480093d5f1e2eb87a212c9ac706265293803a
parent2bccf14f841bca476a6f90242b30368742de4a66
authorDennis Oberst <dennis.oberst@qt.io>
committerDennis Oberst <dennis.oberst@qt.io>
commit timeSat, 6 Dec 2025 00:34:13 +0100