CStartupAdaptationAdapter Class Reference

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

Inherits from

Public Member Functions
~CStartupAdaptationAdapter()
voidCancelDispatchedL(CAdaptationBase *)
voidDestroy()
voidEventL(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()
voidQueueDispatchL(CAdaptationBase *)
voidRemoveFromDispatchQueue(CAdaptationBase *)
voidResponseL(const StartupAdaptation::TCommand, TDesC8 &)
Protected Member Functions
voidDoCancel()
TInt RunError(TInt)
voidRunL()
Private Member Functions
CStartupAdaptationAdapter()
voidConstructL()
voidDispatchQueued()
CStartupAdaptation *GetAdaptationL()
CStartupAdaptationAdapter *NewLC()
voidSelfComplete(TInt)
Inherited Functions
CActive::CActive(TInt)
CActive::Cancel()
CActive::Deque()
CActive::Extension_(TUint,TAny *&,TAny *)
CActive::IsActive()const
CActive::IsAdded()const
CActive::Priority()const
CActive::SetActive()
CActive::SetPriority(TInt)
CActive::~CActive()
CBase::CBase()
CBase::Delete(CBase *)
CBase::operator new(TUint)
CBase::operator new(TUint,TAny *)
CBase::operator new(TUint,TLeave)
CBase::operator new(TUint,TLeave,TUint)
CBase::operator new(TUint,TUint)
CBase::~CBase()
Inherited Enumerations
CActive:TPriority
Private Attributes
CAdaptationBase *iDispatchQueue
TInt iDispatchQueueSize
CAdaptationBase *iDispatchedAdaptation
CSaaEmergencyCallRfAdaptation *iEmergencyCallRfAdaptation
CSaaMiscAdaptation *iMiscAdaptation
CSaaRtcAdaptation *iRtcAdaptation
CSaaSimAdaptation *iSimAdaptation
CStartupAdaptation *iStartupAdaptation
CSaaStateAdaptation *iStateAdaptation
Inherited Attributes
CActive::iStatus

Constructor & Destructor Documentation

CStartupAdaptationAdapter()

CStartupAdaptationAdapter()[private]

First phase constructor

~CStartupAdaptationAdapter()

~CStartupAdaptationAdapter()

Destructor for CStartupAdaptationAdapters

Member Functions Documentation

CancelDispatchedL(CAdaptationBase *)

voidCancelDispatchedL(CAdaptationBase *aAdaptation)

Cancels an already dispatched adaptation request

This should not be called if the response for this request has already been received.

Parameters

CAdaptationBase * aAdaptation

ConstructL()

voidConstructL()[private]

Second phase constructor

Destroy()

voidDestroy()[static]

Destroys the singleton CStartupAdaptationAdapter.

DispatchQueued()

voidDispatchQueued()[private]

Dispatches the next adaptation request in the queue and removes it from the queue

DoCancel()

voidDoCancel()[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().

CActive::Cancel

EventL(const StartupAdaptation::TEvent, TDesC8 &)

voidEventL(const StartupAdaptation::TEventaEventId,
TDesC8 &aData
)[virtual]

Handles events from the adaptation.

Defined in MStartupAdaptationObserver.

Parameters

const StartupAdaptation::TEvent aEventId
TDesC8 & aData

GetAdaptationL()

CStartupAdaptation *GetAdaptationL()[private]

Returns a pointer to the adaptation class, creating and loading it if necessary

GetL()

CStartupAdaptationAdapter *GetL()[static]

Returns the singleton CStartupAdaptationAdapter.

leave
KErrPermissionDenied - the caller does not have permission to perform this operation

NewEmergencyCallRfAdaptationL()

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.

NewLC()

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.

NewMiscAdaptationL()

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.

NewRtcAdaptationL()

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.

NewSimAdaptationL()

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.

NewStateAdaptationL()

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.

QueueDispatchL(CAdaptationBase *)

voidQueueDispatchL(CAdaptationBase *aAdaptation)

Dispatches or queues for dispatch the provided adaptation base class

Parameters

CAdaptationBase * aAdaptation

RemoveFromDispatchQueue(CAdaptationBase *)

voidRemoveFromDispatchQueue(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.

Parameters

CAdaptationBase * aAdaptation

ResponseL(const StartupAdaptation::TCommand, TDesC8 &)

voidResponseL(const StartupAdaptation::TCommandaCommandId,
TDesC8 &aData
)[virtual]

Handles responses from the adaptation.

Defined in MStartupAdaptationObserver.

Parameters

const StartupAdaptation::TCommand aCommandId
TDesC8 & aData

RunError(TInt)

TInt RunError(TIntaError)[protected, virtual]

Parameters

TInt aError

RunL()

voidRunL()[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

SelfComplete(TInt)

voidSelfComplete(TIntaError)[private]

Parameters

TInt aError

Member Data Documentation

CAdaptationBase * iDispatchQueue

CAdaptationBase *iDispatchQueue[private]

TInt iDispatchQueueSize

TInt iDispatchQueueSize[private]

CAdaptationBase * iDispatchedAdaptation

CAdaptationBase *iDispatchedAdaptation[private]

CSaaEmergencyCallRfAdaptation * iEmergencyCallRfAdaptation

CSaaEmergencyCallRfAdaptation *iEmergencyCallRfAdaptation[private]

CSaaMiscAdaptation * iMiscAdaptation

CSaaMiscAdaptation *iMiscAdaptation[private]

CSaaRtcAdaptation * iRtcAdaptation

CSaaRtcAdaptation *iRtcAdaptation[private]

CSaaSimAdaptation * iSimAdaptation

CSaaSimAdaptation *iSimAdaptation[private]

CStartupAdaptation * iStartupAdaptation

CStartupAdaptation *iStartupAdaptation[private]

CSaaStateAdaptation * iStateAdaptation

CSaaStateAdaptation *iStateAdaptation[private]