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

Service can't provide the same interface with different attributes

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Invalid
    • Icon: P2: Important P2: Important
    • 1.0.2
    • 1.0.0
    • Service Framework
    • None

      If a service provider wishes to implement a certain interface multiple times (e.g. parametrized by available hardware or software at installation time), it can't provide them all (unless they have different implementation versions, but that is a hack).

      Basically each interface will have different QServiceInterfaceDescriptors (e.g. operator== returns false, since it considers custom attributes), and these descriptors are passed into the service's createInstance methods, so it's just the XML parser that decides that this is not allowed (since it only checks interface name and version, and implementation version).

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

            alex Alex (closed Nokia identity) (Inactive)
            mgoddard Michael Goddard (closed Nokia identity) (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes