Creating State Adaptation plug-in

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.

Required background

Before you start, you must know:

  • First ordinal: used to identify an item in an ordered set.

  • An understanding on System State Manager (SSM).

Introduction

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:

Procedure

  1. Define a class from MStateAdaptation interface.

  2. 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.

Results

The state adaptation plug-in is created.

Next Steps

The following table depicts the interfaces and their description used in the Adaptation Server plug-in.

Interfaces Description

MEmergencyCallRfAdaptation

Client interface for EmergencyCallRf Adaptation part of the adaptation server.

MMiscAdaptation

Client interface for Miscellaneous Adaptation part of the adaptation server.

MRtcAdaptation

Client interface for RTC Adaptation part of the Adaptation server.

MSimAdaptation

Client interface for SIM Adaptation part of the Adaptation server.