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 ()
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 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 *)

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.

Parameters

CAdaptationBase * aAdaptation

ConstructL()

void ConstructL ( ) [private]

Second phase constructor

Destroy()

void Destroy ( ) [static]

Destroys the singleton CStartupAdaptationAdapter .

DispatchQueued()

void DispatchQueued ( ) [private]

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

DoCancel()

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

CActive::Cancel

EventL(const StartupAdaptation::TEvent, TDesC8 &)

void EventL ( const StartupAdaptation::TEvent aEventId,
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 *)

void QueueDispatchL ( CAdaptationBase * aAdaptation )

Dispatches or queues for dispatch the provided adaptation base class

Parameters

CAdaptationBase * aAdaptation

RemoveFromDispatchQueue(CAdaptationBase *)

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.

Parameters

CAdaptationBase * aAdaptation

ResponseL(const StartupAdaptation::TCommand, TDesC8 &)

void ResponseL ( const StartupAdaptation::TCommand aCommandId,
TDesC8 & aData
) [virtual]

Handles responses from the adaptation.

Defined in MStartupAdaptationObserver .

Parameters

const StartupAdaptation::TCommand aCommandId
TDesC8 & aData

RunError(TInt)

TInt RunError ( TInt aError ) [protected, virtual]

Parameters

TInt aError

RunL()

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

SelfComplete(TInt)

void SelfComplete ( TInt aError ) [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]