| Home · All Classes · Grouped Classes · Annotated · Functions |
The QDSServices class provides a filtered list of available Qtopia Data Sharing (QDS) services. More...
#include <QDSServices>
Inherits QList<QDSServiceInfo>.
The QDSServices class provides a filtered list of available Qtopia Data Sharing (QDS) services.
QDSServices can used to search for available QDS services. The search can be filtered on a combination of request data types, response data types, attributes, and Qtopia service names.
For example if you wanted to find a QDS service which could convert a jpeg image into a bitmap image you would do the following:
QDSServices service( "image/jpeg", "image/bmp" )
if ( service.count() == 0 )
qWarning() << "No jpeg to bitmap image conversion service available";
The data types can include a wildcard to match across multiple types, i.e. for a request data type filter of "text*" the search would find services which had a request data type of "text/plain", "text/html", and so on. A null data type is used to identify no request or response data.
Qtopia service names may also use wildcards, e.g. "MyApp*", but attributes do not support wildcards.
See also QDSServiceInfo and Qtopia Data Sharing (QDS).
Finds all QDS services available on the device which have a request data type of requestDataType, have a response data type of responseDataType (both case insensitive), contain all the attributes listed in attributes (case insensitive), and use Qtopia services which match service (case sensitive).
Finds and returns the first QDS service with name name (case sensitive) in the list. If no such service exists an invalid QDSServiceInfo is returned.
| Copyright © 2008 Trolltech | Trademarks | Qtopia 4.3.2 |