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

Binary breaks between QtMobility 1.1 and 1.2 QML APIs

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Done
    • Affects Version/s: 1.1.3, 1.2.1
    • Fix Version/s: None
    • Component/s: Other
    • Labels:
    • Environment:
      Ubuntu Oneiric 11.10, 32bit

      Description

      A number of QtMobility QML APIs have changed in a non-backwards compatible way when moving from 1.1 to 1.2:

      • Maps API imports (also in another bugreport, QTMOBILITY-1793 which improved the documentation but then further handled in this bugreport (see below comments))
      • DeviceInfo.startBatteryLevelChanged() removed
      • DeviceInfo.startBatteryStatusChanged() removed
      • DeviceInfo.startPowerStateChanged() removed
      • DeviceInfo.startCurrentProfileChanged() removed
      • DeviceInfo.startBluetoothStateChanged() removed
      • NetworkInfo.startStatusChanged() removed
      • NetworkInfo.signalStrengthChanged() removed
      • NetworkInfo.modeChanged() removed
      • NetworkInfo.currentMobileCountryCodeChanged() removed
      • NetworkInfo.currentMobileNetworkCodeChanged() removed
      • NetworkInfo.mode() removed
      • DocumentGalleryModel.onCancelled signal removed
      • DocumentGalleryModel.onFailed signal removed
      • DocumentGalleryModel.onFinished signal removed
      • DocumentGalleryModel.onSucceeded signal removed

      Types that became uncreatable (developers were arguably 'doing it wrong' if they manually instantiated any of these, but it's still a compatibility break as these were listed and declared in both source and documentation)

      • SensorReading
      • AccelerometerReading
      • AmbientLightReading
      • CompassReading
      • MagnetometerReading
      • OrientationRe(ading
      • ProximityReading
      • RotationReading
      • TapReading

      The breaks were identified 'synthetically', by diffing the actual 1.1 and 1.2 sources for changes in property/method/type/signal declarations, i.e.

      diff qt-mobility-qt-mobility-1.1 qt-mobility-qt-mobility-1.2 -r |grep -E "Q_PROPERTY|diff" > property_changes
      diff qt-mobility-qt-mobility-1.1 qt-mobility-qt-mobility-1.2 -r |grep -E "egisterType|diff" > versioning_change
      diff qt-mobility-qt-mobility-1.1 qt-mobility-qt-mobility-1.2 -r |grep -E "egisterU|diff" > versioning_change
      ...

      and then manually checking the potential candidates (using 1.1 imports).

      Please review this situation and provide a full/official list of changes, which then should also be reflected in Qt Mobility's documentation.

        Attachments

          Issue Links

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

            Activity

              People

              Assignee:
              alex Alex (closed Nokia identity) (Inactive)
              Reporter:
              achipa Attila Csipa
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes