ADTF  v2.14.3
ADTF System Services

Services within ADTF

The ADTF System is defined by a set of System Services. We divide into two kinds of ADTF System Services:

Kind of Service Base Classes of SDK Examples provided
ADTF Services ucom::cService
adtf::cADTFService
Demo for a service
ADTF GUI Service adtf_graphics::cUIService Demo for Simple UI Service

Common Service Overview

Services are used as building blocks which provide functionality for an ADTF application.

A service has to export the ucom::IService interface. A basic implementation of this interface is provided by the class ucom::cService or adtf::cADTFService.

ServiceEvents:

The ucom runtime communicates with the service through the ucom::IService::ServiceEvent method. The following event identifiers are used by the runtime:

nEventId

Description

SE_Starting ui32Param1 0
ui32Param2 0
pvData NULL terminated char array of the Service Instance Name
szData size of the Service Object Instance Name

This Event is signaled by a ucom::IRuntime. It is called while runtime is about to initialize a service.

SE_Ready ui32Param1 0
ui32Param2 0
pvData NULL terminated char array of the Service Instance Name
szData size of the Service Object Instance Name

This Event is signaled by a ucom::IRuntime. It is called after runtime initialized a service.

SE_Stopping ui32Param1 0
ui32Param2 0
pvData NULL terminated char array of the Service Instance Name
szData size of the Service Object Instance Name

This Event is signaled by a ucom::IRuntime. It is called while runtime is about to shutdown a service.

SE_Stopped ui32Param1 0
ui32Param2 0
pvData NULL terminated char array of the Service Instance Name
szData size of the Service Object Instance Name

This Event is signaled by a ucom::IRuntime. It is called after runtime shutdown a service.

SE_ChangeRunLevel ui32Param1 Number of ucom::IRuntime::tRunLevel
ui32Param2 Flags set with ucom::IRuntime::tChangeRunLevelFlags (pre-post condition)
pvData NULL
szData 0
This Event is signaled by a ucom::IRuntime. It is called while runtime is doing run level changes

How to create an own service:

In the examples section several examples can be found. Have a look at:

References:
ADTF Services ADTF GUI Service

Copyright © Audi Electronics Venture GmbH. All rights reserved. (Generated on Fri Mar 22 2019 by doxygen 1.8.10)