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

Refactoring the driver class (backend source-incompatible)

    XMLWordPrintable

    Details

    • Type: User Story
    • Status: Withdrawn
    • Priority: P3: Somewhat important
    • Resolution: Out of scope
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Sensors
    • Labels:
      None

      Description

      Overview

      A factory is creating instances of the driver class. Either it should be a sub-class of QSensor or it (or the factory) should create the QSensor instance. This is to help facilitate hacks where the client knows what driver is being used and accesses driver-specific stuff.

      Implementation Plan

      Update the API bits.

      Update the unit test to verify the API bits.

      Update the Qt Simulator backend.

      Notes

      I think the Qt Simulator backend lives in a QtSimulator repo.

      Research Questions

      Is a sub-class of the appropriate type the most suitable way of doing this? Is some other system more suitable?

      Can the system cope when driver classes stop being sub-classes of QSensorBackend?

        Attachments

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

          Activity

            People

            Assignee:
            lpotter Lorn Potter
            Reporter:
            lramsay Lincoln Ramsay (closed Nokia identity) (Inactive)
            PM Owner:
            Veli-Pekka Heinonen Veli-Pekka Heinonen
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes