Clients of a plug-in framework use the C++ APIs provided by the framework for interaction with the framework. Client calls to the interface definition are translated directly through REComSession into loading and unloading of the correct implementation library together with construction and destruction of an appropriate interface implementation.
The code below depicts the steps involved in using the framework:
LOCAL_C void doExample() { // object creation CExampleInterfaceDefinition* ex1 = CExampleInterfaceDefinition::NewL(); // calling the required methods ex1->DoMethodL(); // deleting the object after use delete ex1; // memory clean-up REcomSession:;FinalClose(); }