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

QtBluetooth: extend error enums to handle missing permission errors

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Done
    • P3: Somewhat important
    • 6.4.0 Beta1
    • 6.3.0 RC
    • None
    • Android, iOS/tvOS/watchOS
    • 3
    • d58d134d25 (qt/qtconnectivity/dev) d58d134d25 (qt/tqtc-qtconnectivity/dev)
    • Team A Foundation Sprint 57

    Description

      More and more permissions are required on Android (and iOS?) devices to perform different bluetooth-related actions.

      Currently if the user does not provide the permissions, we usually report it as an UnknownError. Some classes also have a way to provide an error string, but in some cases we can only write some message to a debug log.

      This can be very misleading to the users, so I suggest to extend the error enums with new error codes.

      Here is the list of enums to check:

      • QBluetoothDeviceDiscoveryAgent::Error
      • QBluetoothLocalDevice::Error
      • QBluetoothServer::Error
      • QBluetoothServiceDiscoveryAgent::Error
      • QLowEnergyController::Error

      Attachments

        Issue Links

          For Gerrit Dashboard: QTBUG-102373
          # Subject Branch Project Status CR V

          Activity

            People

              ivan.solovev Ivan Solovev
              ivan.solovev Ivan Solovev
              Vladimir Minenko Vladimir Minenko
              Alex Blasche Alex Blasche
              Votes:
              1 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes