CommsFW::CCFModuleChannelHandler Class Reference
class CommsFW::CCFModuleChannelHandler : public CActive |
Utility class to help holding a channelpair, listening for incoming messages and sending responses for CPMs needing a quick way to implement support for the basic messages Discover, Bind, Unbind and Shutdown. All the virtuals have default bodies so only those that require special treatment needs implementation.
Inherits from
- CommsFW::CCFModuleChannelHandler
Private Member Functions |
---|
IMPORT_C void | DoCancel() |
IMPORT_C void | RunL() |
Constructor & Destructor Documentation
CCFModuleChannelHandler(TInt)
IMPORT_C | CCFModuleChannelHandler | ( | TInt | aPriority | ) | [protected] |
C'tor. Initialise the parent CActive.
~CCFModuleChannelHandler()
IMPORT_C | ~CCFModuleChannelHandler | ( | ) | [protected] |
D'tor. Dequeues this instance from the active scheduler.
Member Functions Documentation
CFChannelError(TInt)
IMPORT_C void | CFChannelError | ( | TInt | aError | ) | [protected, virtual] |
Called when errors are encountered on using the channels. Does nothing but creating a log entry for [CommsFw,Warning]. Should be overridden if the module wants to supports handling of errors.
Parameters
TInt aError | The errorcode. |
CFMessageBind(const CommsFW::TCFBindMsg &)
Default implementation of the TCFBindMsg message. It will send a response indicating there is no submodules to bind to in this module. Should be overridden if sub-modules are present in the module.
Parameters
const CommsFW::TCFBindMsg & aMessage | The Bind message which has been received from the Rootserver. |
CFMessageDiscover(const CommsFW::TCFDiscoverMsg &)
Default implementation of the TCFDiscoverMsg message. It will send a response indicating there is no sub-modules in this module. Should be overridden if sub-modules are present in the module.
CFMessageForward(const CommsFW::TCFForwardMsg &)
Default implementation of the CFMessageForward message. it will do nothing. Should be overridden if the module supports Message Forwarding.
CFMessageShutdown(const CommsFW::TCFShutdownMsg &)
Default implementation of the TCFShutdownMsg message. it will do nothing. Should be overridden if the module supports Shutdown.
CFMessageUnbind(const CommsFW::TCFUnbindMsg &)
Default implementation of the TCFUnbindMsg message. It will send a response indicating there is no submodules to unbind from in this module. Should be overridden if sub-modules are present in the module.
CFMessageUnknown(const CommsFW::TCFMessage &)
Default implementation for handling unknown messages. it will do nothing. Should be overridden if the module wants to implement some handling for receiving unknown messages.
ConstructL(CommsFW::RCFChannel::TMsgQueues &, CommsFW::RCFChannel::TMsgQueues &)
Second level constructor, must be called from derived implementations or the module will PANIC when attempting to use the channels.
DoCancel()
IMPORT_C void | DoCancel | ( | ) | [private, virtual] |
Cancel function, will be called during destruction. Closes the channels contained.
RunL()
IMPORT_C void | RunL | ( | ) | [private, virtual] |
Receive a message and register for listening for more data on the incoming channel. wants to supports handling of errors.
Send(const CommsFW::TCFMessage &)
Send a message on the outgoing channel, blocks until the message has been sent. The rootserver is expected to run at high priority and retrieve pending messages quickly, also this exchange usually only happens at module startup and shutdown so it can usually be considered safe to block here.
Member Data Documentation
CommsFW::RCFChannelPair
iChannelPair
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.