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>