Qt Extended Home · Build System Home · Reference · User Guide · Internals codeless banner

Create a new service

Services are defined by files located in /services.

Here is an example, myservice.service:

    [Translation]
    File=myservice-nct
    Context=MyService
    [Service]
    Actions = "doSomething()"
    Icon = MyServiceIcon
    Name[]=Do Something

Install the file with this code in the qbuild.pro file:

    service.hint=image nct
    service.files=$$PWD/myservice.service
    service.path=/services
    service.trtarget=myservice-nct

An application would register as providing this service by installing the file /services/myservice/<appname>.

See also Tasks, Services, and Register a service provider.


Copyright © 2009 Nokia
Qt Extended - Build System Documentation