Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-128743

Extend QGrpcOperation API to get the result metatype

    XMLWordPrintable

Details

    • Task
    • Resolution: Fixed
    • P2: Important
    • None
    • 6.9
    • GRPC
    • None

    Description

      As a user I want to know the underlying metatype for the QGrpcOperation result.
      Current QGrpcOperation::read method allows reading the result message to any protobuf message, without the possibility for preliminary check for the result metatype.

      Suggest adding API as such:

      QMetaType QGrpcOperation::resultMetaType() const;
      

      That will store the metatype of the RPC result. This also will unlock deserialization of messages to a pre-allocated by metatype QProtobufMessage without the need of strict typification in user code.

      As a side task we may probably add the argument counter part for consistency:

      QMetaType QGrpcOperation::argumentMetaType() const;
      

      Extension:
      QGrpcClientBase may also allow reading the resultMetaType(int methodIndex) by index for the respective methods in it's implementations.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            semlanik Alexey Edelev
            semlanik Alexey Edelev
            Vladimir Minenko Vladimir Minenko
            Alex Blasche Alex Blasche
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes