class CStartupAdaptationAdapter : public CActive |
Provides a class for managing the adaptation of the 5 adaptation interfaces used by the adaptation server to the Core OS single interface adaptation
Public Member Functions | |
---|---|
~CStartupAdaptationAdapter() | |
void | CancelDispatchedL(CAdaptationBase *) |
void | Destroy() |
void | EventL(const StartupAdaptation::TEvent, TDesC8 &) |
CStartupAdaptationAdapter * | GetL() |
IMPORT_C MEmergencyCallRfAdaptation * | NewEmergencyCallRfAdaptationL() |
IMPORT_C MMiscAdaptation * | NewMiscAdaptationL() |
IMPORT_C MRtcAdaptation * | NewRtcAdaptationL() |
IMPORT_C MSimAdaptation * | NewSimAdaptationL() |
IMPORT_C MStateAdaptation * | NewStateAdaptationL() |
void | QueueDispatchL(CAdaptationBase *) |
void | RemoveFromDispatchQueue(CAdaptationBase *) |
void | ResponseL(const StartupAdaptation::TCommand, TDesC8 &) |
Protected Member Functions | |
---|---|
void | DoCancel() |
TInt | RunError(TInt) |
void | RunL() |
Private Member Functions | |
---|---|
CStartupAdaptationAdapter() | |
void | ConstructL() |
void | DispatchQueued() |
CStartupAdaptation * | GetAdaptationL() |
CStartupAdaptationAdapter * | NewLC() |
void | SelfComplete(TInt) |
Inherited Enumerations | |
---|---|
CActive:TPriority |
Inherited Attributes | |
---|---|
CActive::iStatus |
void | CancelDispatchedL | ( | CAdaptationBase * | aAdaptation | ) |
Cancels an already dispatched adaptation request
This should not be called if the response for this request has already been received.
CAdaptationBase * aAdaptation |
void | DispatchQueued | ( | ) | [private] |
Dispatches the next adaptation request in the queue and removes it from the queue
void | DoCancel | ( | ) | [protected, virtual] |
Implements cancellation of an outstanding request.
This function is called as part of the active object's Cancel().
It must call the appropriate cancel function offered by the active object's asynchronous service provider. The asynchronous service provider's cancel is expected to act immediately.
DoCancel() must not wait for event completion; this is handled by Cancel().
void | EventL | ( | const StartupAdaptation::TEvent | aEventId, |
TDesC8 & | aData | |||
) | [virtual] |
Handles events from the adaptation.
Defined in MStartupAdaptationObserver.
const StartupAdaptation::TEvent aEventId | |
TDesC8 & aData |
CStartupAdaptation * | GetAdaptationL | ( | ) | [private] |
Returns a pointer to the adaptation class, creating and loading it if necessary
CStartupAdaptationAdapter * | GetL | ( | ) | [static] |
Returns the singleton CStartupAdaptationAdapter.
IMPORT_C MEmergencyCallRfAdaptation * | NewEmergencyCallRfAdaptationL | ( | ) | [static] |
Returns an object conforming to the MEmergencyCallRfAdaptation interface.
The objects returned from this method may be reference counted. This may mean that consecutive calls to this method will return the same address.
CStartupAdaptationAdapter * | NewLC | ( | ) | [private, static] |
Creates a new CStartupAdaptationAdapter.
The CStartupAdaptationAdapter class should be accessed via a singleton pattern. GetL() is provided to manage a thread level singleton for this class.
IMPORT_C MMiscAdaptation * | NewMiscAdaptationL | ( | ) | [static] |
Returns an object conforming to the MMiscAdaptation interface.
The objects returned from this method may be reference counted. This may mean that consecutive calls to this method will return the same address.
IMPORT_C MRtcAdaptation * | NewRtcAdaptationL | ( | ) | [static] |
Returns an object conforming to the MRtcAdaptation interface.
The objects returned from this method may be reference counted. This may mean that consecutive calls to this method will return the same address.
IMPORT_C MSimAdaptation * | NewSimAdaptationL | ( | ) | [static] |
Returns an object conforming to the MSimAdaptation interface.
The objects returned from this method may be reference counted. This may mean that consecutive calls to this method will return the same address.
IMPORT_C MStateAdaptation * | NewStateAdaptationL | ( | ) | [static] |
Returns an object conforming to the MStateAdaptation interface.
The objects returned from this method may be reference counted. This may mean that consecutive calls to this method will return the same address.
void | QueueDispatchL | ( | CAdaptationBase * | aAdaptation | ) |
Dispatches or queues for dispatch the provided adaptation base class
CAdaptationBase * aAdaptation |
void | RemoveFromDispatchQueue | ( | CAdaptationBase * | aAdaptation | ) |
Removes a queued adaptation request from the queue
This should not be called if the response for this request has already been dispatched.
CAdaptationBase * aAdaptation |
void | ResponseL | ( | const StartupAdaptation::TCommand | aCommandId, |
TDesC8 & | aData | |||
) | [virtual] |
Handles responses from the adaptation.
Defined in MStartupAdaptationObserver.
const StartupAdaptation::TCommand aCommandId | |
TDesC8 & aData |
void | RunL | ( | ) | [protected, virtual] |
Handles an active object's request completion event.
A derived class must provide an implementation to handle the completed request. If appropriate, it may issue another request.
The function is called by the active scheduler when a request completion event occurs, i.e. after the active scheduler's WaitForAnyRequest() function completes.
Before calling this active object's RunL() function, the active scheduler has:
1. decided that this is the highest priority active object with a completed request
2. marked this active object's request as complete (i.e. the request is no longer outstanding)
RunL() runs under a trap harness in the active scheduler. If it leaves, then the active scheduler calls RunError() to handle the leave.
Note that once the active scheduler's Start() function has been called, all user code is run under one of the program's active object's RunL() or RunError() functions.
CActiveScheduler::Start CActiveScheduler::Error CActiveScheduler::WaitForAnyRequest TRAPD
CSaaEmergencyCallRfAdaptation * | iEmergencyCallRfAdaptation | [private] |
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.