conn::CSBECallbackHandler Class Reference

class conn::CSBECallbackHandler : public CActive

The Callback Handler for the RSBEClientSession

This class implements an Active Object interface in order to perform asynchronous calls in a callback manner.

Inherits from

Constructor & Destructor Documentation

CSBECallbackHandler(RSBEClientSession &)

CSBECallbackHandler(RSBEClientSession &aClientSession)[private]

Class constructor.

Parameters

RSBEClientSession & aClientSession

~CSBECallbackHandler()

~CSBECallbackHandler()

Class destructor.

Member Functions Documentation

CancelRequest()

voidCancelRequest()

Cancels outsanding request

CompleteObserver(TInt)

voidCompleteObserver(TIntaError)[private]

Method for completing Client's request status

Parameters

TInt aErrorCompletion Error

ConstructL()

voidConstructL()[private]

Symbian second phase constructor

DoCancel()

voidDoCancel()[private, virtual]

CActive::DoCancel() implmenation Completes observer's status with KErrCancel and sets the state to None

NewL(RSBEClientSession &)

CSBECallbackHandler *NewL(RSBEClientSession &aClientSession)[static]

Symbian OS constructor

Parameters

RSBEClientSession & aClientSessionreference to a ClientSession to call callbacks on

RunError(TInt)

TInt RunError(TIntaError)[private, virtual]

If RunL() leaves a CompleteObserver() method called

Error code

Parameters

TInt aError

RunL()

voidRunL()[private, virtual]

CActive::RunL() implementation

StartL(TRequestStatus &, TState)

voidStartL(TRequestStatus &aStatus,
TStateaState
)

Starts Callback Handler

Parameters

TRequestStatus & aStatusReference to the Client's request Status
TState aStateState in order to make a relevant callback

Member Data Documentation

RSBEClientSession & iClientSession

RSBEClientSession &iClientSession[private]

Reference to the Client Session Class

TRequestStatus * iObserver

TRequestStatus *iObserver[private]

Observer's TRequestStatus

TState iState

TState iState[private]

State to know which function to run