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

[Doc] misspelled method name in docs

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Not Evaluated
    • 1.0.2
    • 1.0.0
    • Service Framework
    • None
    • df694a8c0fc9c6b97e3befee82d0112247cd3e92

    Description

      Bug in documentation.

      package: qt-mobility-1.0.0~git20100429

      In the main page of service framework docs, in the "Identifying Services" section there is an example code snippet which uses setInterfaceName() method for QServiceFilter object. But, there is no such method in the class, there should be setInterface() instead.

      cite:
      ===
      Identifying Services
      Each implementation is identified by a service name, an interface name and its version. This information is encapsulated by QServiceInterfaceDescriptor which can be used to request references to service objects.
      QServiceFilter simplifies the lookup of already installed services. Developers specifies the criteria used during the meta data lookup. The subsequent example demonstrates the interaction between QServiceInterfaceDescriptor and QServiceFilter by creating references to all services that implement the interface com.nokia.qt.ILocation:
      QServiceManager mgr;
      QServiceFilter filter;
      filter.setInterfaceName("com.nokia.qt.ILocation");
      QList<QServiceInterfaceDescriptor> list = mgr.findInterfaces(filter);
      for(int i = 0; i < list.size(); i++)

      { QObject *serviceObject; serviceObject = mgr.loadInterface(list[i]); // returned object owned by client if (serviceObject) serviceObject->setParent(this); }

      ===

      Attachments

        Activity

          People

            alex Alex (closed Nokia identity) (Inactive)
            igagis Ivan
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: