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

QNetworkConfiguration used in public headers in QtMultimedia

    XMLWordPrintable

Details

    Description

      This is caught by headersclean, since headers aren't allowed to have any warnings.

      This API needs to be redesigned.

      /home/tjmaciei/src/qt/qt5/qtmultimedia/src/multimedia/playback/qmediaplayer.h:159:57: error: ‘QNetworkConfiguration’ is deprecated [-Werror=deprecated-declarations]
        159 |     QNetworkConfiguration currentNetworkConfiguration() const;
            |                                                         ^~~~~
      In file included from /home/tjmaciei/obj/qt/qt5-release/qtbase/include/QtNetwork/qnetworkconfiguration.h:1,
                       from /home/tjmaciei/src/qt/qt5/qtmultimedia/src/multimedia/playback/qmediaplayer.h:48:
      /home/tjmaciei/obj/qt/qt5-release/qtbase/include/QtNetwork/../../../../../../src/qt/qt5/qtbase/src/network/bearer/qnetworkconfiguration.h:60:56: note: declared here
         60 | class QT_DEPRECATED_BEARER_MANAGEMENT Q_NETWORK_EXPORT QNetworkConfiguration
            |                                                        ^~~~~~~~~~~~~~~~~~~~~
      /home/tjmaciei/src/qt/qt5/qtmultimedia/src/multimedia/playback/qmediaplayer.h:184:47: error: ‘QNetworkConfiguration’ is deprecated [-Werror=deprecated-declarations]
        184 |     void setNetworkConfigurations(const QList<QNetworkConfiguration> &configurations);
            |                                               ^~~~~~~~~~~~~~~~~~~~~
      In file included from /home/tjmaciei/obj/qt/qt5-release/qtbase/include/QtNetwork/qnetworkconfiguration.h:1,
                       from /home/tjmaciei/src/qt/qt5/qtmultimedia/src/multimedia/playback/qmediaplayer.h:48:
      /home/tjmaciei/obj/qt/qt5-release/qtbase/include/QtNetwork/../../../../../../src/qt/qt5/qtbase/src/network/bearer/qnetworkconfiguration.h:60:56: note: declared here
         60 | class QT_DEPRECATED_BEARER_MANAGEMENT Q_NETWORK_EXPORT QNetworkConfiguration
            |                                                        ^~~~~~~~~~~~~~~~~~~~~
      /home/tjmaciei/src/qt/qt5/qtmultimedia/src/multimedia/playback/qmediaplayer.h:211:80: error: ‘QNetworkConfiguration’ is deprecated [-Werror=deprecated-declarations]
        211 |     void networkConfigurationChanged(const QNetworkConfiguration &configuration);
            |                                                                                ^
      

      Attachments

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

        Activity

          People

            thiago Thiago Macieira
            thiago Thiago Macieira
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes