Uploaded image for project: 'Qt Mobility'
  1. Qt Mobility
  2. QTMOBILITY-1765

QBluetoothServiceDiscoveryAgent should have a constructor taking a QBluetoothDeviceInfo

    XMLWordPrintable

Details

    • Bug
    • Resolution: Moved
    • Not Evaluated
    • None
    • 1.2.0
    • None
    • Tested on Maemo/QtMobility 1.2

    Description

      Currently QBluetoothServiceDiscoveryAgent can be optionally started with a QBluetoothAddress parameter to limit the service discovery to one device/address.
      When operating in this manner, the serviceDiscovered(const QBluetoothServiceInfo& info) signal carries an incomplete 'info' obj
      (e.g. info.device().name() will return an empty string).
      This doesn't happen when QBluetoothServiceDiscoveryAgent is started without the QBluetoothAddress - info.device().name() will be correctly assigned.

      A common use case is to use a QBluetoothServiceDiscoveryAgent only for specific/selected results from a previous QBluetoothDeviceDiscoveryAgent. In this scenario, passing QBluetoothDeviceInfo to QBluetoothServiceDiscoveryAgent's constructor would be logical and would prevent this "information loss".

      Adding a minimal patch.

      Attachments

        Activity

          People

            stanleyj Andrew Stanley-Jones (closed Nokia identity) (Inactive)
            cpscotti Clovis Scotti
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: