ClientGuide Example: Misc cleanups and automatic completion tracking


The example is meant to showcase the most basic QtGrpc client-side usage
and should finish automatically when the last RPC finishes.

Introduce a transparent wrapper class for the grpc client that tracks
inactivity to shut-down the client when its finished.

Furthermore this patch applies the following cleanups:
* Use a ExpectedResult enum to avoid the boolean-trap for createRequest
* Use connect without the QObject namespace to be consistent
* Improve printing of server messages using higher-level helpers
  (e.g. canReadLine() and trimmed())
* Handle application shutdown more reliably for the server

Pick-to: 6.11
Change-Id: Ida4e73e9c67cd2342cd8c75764cfac5d4131f30a
Reviewed-by: Tatiana Borisova <tatiana.borisova@qt.io>
commit8be61985ee34a0c388986fb10bc05a7b7f727079
parent7063d9d07322af8925d2f230e70b7ba8c26871e0
authorDennis Oberst <dennis.oberst@qt.io>
committerDennis Oberst <dennis.oberst@qt.io>
commit timeThu, 26 Mar 2026 11:42:13 +0100