Qtopia Home · Home · Reference · User Guide · Internals

Register a service provider

Applications must register in order to provide a service.

This is done by creating a file with the same name as the binary and installing it into /services/<service>.

myapp implements Telephony

Here's an example of an app with TARGET=myapp that implements the Telephony service.

Create dist/myapp with the following contents:

    [Extensions]
    [Standard]
    Version = 100

Then install the file by adding the following to myapp.pro:

    service.files=$$PWD/dist/myapp
    service.path=/services/Telephony
    INSTALLS+=service

See also Tasks, Services, and Create a new service.


Copyright © 2008 Nokia Qtopia Build System Documentation