Details
-
Bug
-
Resolution: Done
-
Not Evaluated
-
1.0.0
-
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++)
===