class CFeatureInfoPlugin : public CBase |
Feature Manager ECOM Plugin interface class to be implemented by adaptation. As it is an adaptation interface implementations are only loaded from ROM.
Implementations of this interface are created by the Feature Manager server during start up in it's main thread where an Active Scheduler is installed. Implementations must perform minmial work in ProcessCommandL() and return. Plugin work and calls to ProcessResponseL() must be performed asynchronsly in an active object callback running in the server's main thread.
For the command Ids and types used with this interface see definitions in the FeatureInfoCommand namespace.
Public Member Functions | |
---|---|
~CFeatureInfoPlugin () | |
CFeatureInfoPlugin * | NewL ( TUid , MFeatureInfoPluginCallback &) |
void | ProcessCommandL (const FeatureInfoCommand::TFeatureInfoCmd , const TUint8 , TDesC8 &) |
Protected Attributes | |
---|---|
MFeatureInfoPluginCallback * | iResponseCallback |
Private Attributes | |
---|---|
TUid | iDestructorIDKey |
CFeatureInfoPlugin * | NewL | ( | TUid | aImplementationUid, |
MFeatureInfoPluginCallback & | aResponseCallback | |||
) | [static, inline] |
Constructor method for instance. Uses ECom to find correct instance.
TUid aImplementationUid | UID of the interface implementation to instantiate. |
MFeatureInfoPluginCallback & aResponseCallback | Reference to plugin callback handler. |
void | ProcessCommandL | ( | const FeatureInfoCommand::TFeatureInfoCmd | aCommandId, |
const TUint8 | aTransId, | |||
TDesC8 & | aData | |||
) | [pure virtual] |
Method to invoke a particular command in the plugin. Response to method is returned via separate ProcessResponseL call. Call to ProcessResponseL is done after the call to ProcessCommandL returns. Leaves with error code KErrNotSupported if command ID is not supported by the plug-in. If ProcessCommandL leaves, no corresponding ProcessResponseL is expected.
TUid | iDestructorIDKey | [private] |
Destructor identifier to be used with ECom framework.
MFeatureInfoPluginCallback * | iResponseCallback | [protected] |
Callback pointer to be used with responses to commands. This pointer is not owned by this class.
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.