SSM adaptation plug-ins provides interfaces that allows custom commands and other components in the device with appropriate capabilities to access the functionality provided in the adaptation interfaces.
Before you start, you must know:
First ordinal: used to identify an item in an ordered set.
An understanding on System State Manager (SSM).
This is an SPI, MStateAdaptation, which allows customization of the functionality of SSM adaptation interface. The SSM adaptation server creates MStateAdaptation class by calling the first ordinal in the DLL that is susstateadaptation.dll.
The function prototype of the first ordinal is MStateAdaptation * CreateCExampleStateAdaptation();
Follow the procedure given below to create a state adaptation plug-in:
Define a class from MStateAdaptation interface.
Export the static method to create new state adaptation plug-in as shown in the code snippet:
EXPORT_C MStateAdaptation* CreateStateAdaptationL() { CStateAdaptation* stateAdaptation = CStateAdaptation::NewL(); return ( static_cast<MStateAdaptation*>(stateAdaptation )); }
The code returns a new plugin object for state adaptation.
The state adaptation plug-in is created.
The following table depicts the interfaces and their description used in the Adaptation Server plug-in.
Interfaces | Description |
---|---|
Client interface for EmergencyCallRf Adaptation part of the adaptation server. |
|
Client interface for Miscellaneous Adaptation part of the adaptation server. |
|
Client interface for RTC Adaptation part of the Adaptation server. |
|
Client interface for SIM Adaptation part of the Adaptation server. |
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.