| Home · Reference · User Guide · Internals |
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 .pro file:
service.files=$$PWD/myservice.service
service.path=/services
service.hint=nct
service.trtarget=myservice-nct
INSTALLS+=service
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 © 2007 Trolltech | Qtopia Build System Documentation |