Home · All Classes · Grouped Classes · Annotated · Functions

OTA Support

Built-in OTA message types

Qtopia provides built-in support for:

Other OTA messages are handled on a type-by-type basis by vendor-supplied applications, via the QDS system.

Handling incoming SMS datagrams

SMS datagrams arrive associated with a port number. This port number can be used with QDS to dispatch the datagram to the application that handles it.

For example, vcard messages on port 226 are handled by a QDS service called push with the MIME type application/x-smsapp-226. When such an SMS message arrives, Qtopia will look up the associated application and forward it on.

If we wanted vcard messages to be processed by the ContactsPhone service, we would place a file such as the following in the etc/qds directory:

    [Translation]
    File=QtopiaServices
    Context=ContactsPhone
    [pushVCard]
    RequestDataType=application/x-smsapp-226
    ResponseDataType=
    Attributes="push"
    Description[]=Receive a vcard via SMS push on port 226

When the message arrives, the QCop message pushVCard(QDSActionRequest) will be sent to the ContactsPhone service, with the vcard data as the payload within the QDSActionRequest object. The QDSActionRequest::auxiliaryData() will contain the complete SMS message, including headers. Normally this auxiliary data can be ignored, but some applications may need to know the sender's phone number, or other information.

If the OTA message consists of several parts, the parts will be concatenated before the message is delivered to the application.

See the documentation of QSMSMessage::destinationPort() for more information.

Handling incoming WAP Push messages

WAP Push messages are handled in a similar fashion. The difference being the MIME type in the QDS definition:

    [Translation]
    File=QtopiaServices
    Context=ContactsPhone
    [pushVCard]
    RequestDataType=text/x-vcard
    ResponseDataType=
    Attributes="push"
    Description[]=Receive a vcard via WAP push


Copyright © 2007 Trolltech Trademarks
Qtopia 4.3.0