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

qtprotobufgen: oneof fields provide mutable accessors

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P2: Important P2: Important
    • None
    • 6.9
    • Protocol Buffers
    • None

      E.g.:

      message ChatMessage {
          string username = 1;
          int64 timestamp = 2;
          oneof content {
              TextMessage text = 3;
              FileMessage file = 4;
              UserStatus user_status = 5;
          }
      } 

       

          QPB_QTCHAT_CLIENT_PROTO_EXPORT bool hasText() const;
          QPB_QTCHAT_CLIENT_PROTO_EXPORT TextMessage &text() const;    QPB_QTCHAT_CLIENT_PROTO_EXPORT bool hasFile() const;
          QPB_QTCHAT_CLIENT_PROTO_EXPORT FileMessage &file() const; 

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

            semlanik Alexey Edelev
            dennisoberst Dennis Oberst
            Vladimir Minenko Vladimir Minenko
            Alex Blasche Alex Blasche
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes