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

Suggestion: Qt6 Mqtt class "QMqttSubscription" add signals

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 6.5.2
    • MQTT
    • None
    • All

    Description

      In class "QMqttClient", it has:

      enum ClientState {
          Disconnected = 0,
          Connecting,
          Connected
      };
      Q_ENUM(ClientState)
      
      Q_SIGNALS:
          void connected();
          void disconnected();
          // ...
          void stateChanged(ClientState state);
      

      But in class "QMqttSubscription", it only has:

      enum SubscriptionState {
          Unsubscribed = 0,
          SubscriptionPending,
          Subscribed,
          UnsubscriptionPending,
          Error
      };
      
      Q_SIGNALS:
          void stateChanged(SubscriptionState state);
      

      I think adding signals "void subscribed();" and "void unsubscribed();" in class "QMqttSubscription" will make it more useful.

      Attachments

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

        Activity

          People

            mkalinow Maurice Kalinowski
            roachlin Lin Lin
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes