CConnectionCallback Class Reference

class CConnectionCallback : public CBase

Inherits from

Public Member Functions
~CConnectionCallback()
voidExecuteCallback(MSIPConnectionObserver &)
CConnectionCallback *NewL()
voidSet(TCallbackMethod, CSIPTransactionBase *, CSIPRegistrationBinding *, CSIPDialog *, CSIPDialogAssocBase *, TInt, CBase *)
Private Member Functions
CConnectionCallback()
voidCallErrorOccuredDialog(MSIPConnectionObserver &)
voidCallErrorOccuredDialogTransaction(MSIPConnectionObserver &)
voidCallErrorOccuredInRegistration(MSIPConnectionObserver &)
voidCallErrorOccuredInRegistrationWithTransaction(MSIPConnectionObserver &)
voidCallErrorOccuredTransaction(MSIPConnectionObserver &)
voidCallIncomingRequest(MSIPConnectionObserver &)
voidCallIncomingResponse(MSIPConnectionObserver &)
voidCallIncomingResponseInRegistration(MSIPConnectionObserver &)
voidCallIncomingResponseNewAssoc(MSIPConnectionObserver &)
voidCallInviteCanceled(MSIPConnectionObserver &)
Inherited Functions
CBase::CBase()
CBase::Delete(CBase *)
CBase::Extension_(TUint,TAny *&,TAny *)
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()
Public Member Enumerations
enumTCallbackMethod {
ENone = 0, EIncomingRequest, EIncomingResponse, EIncomingResponseNewAssoc, EIncomingResponseInRegistration, EErrorOccuredTransaction, EErrorOccuredDialog, EErrorOccuredDialogTransaction, EErrorOccuredInRegistration, EErrorOccuredInRegistrationWithTransaction, EInviteCanceled
}
Private Attributes
TCallbackMethod iCallbackId
CSIPDialog *iDialog
CSIPDialogAssocBase *iDialogAssoc
TInt iError
CBase *iObjectToDelete
CSIPRegistrationBinding *iRegistration
CSIPTransactionBase *iTransaction

Constructor & Destructor Documentation

CConnectionCallback()

CConnectionCallback()[private]

~CConnectionCallback()

~CConnectionCallback()

Member Functions Documentation

CallErrorOccuredDialog(MSIPConnectionObserver &)

voidCallErrorOccuredDialog(MSIPConnectionObserver &aObserver)[private]

Parameters

MSIPConnectionObserver & aObserver

CallErrorOccuredDialogTransaction(MSIPConnectionObserver &)

voidCallErrorOccuredDialogTransaction(MSIPConnectionObserver &aObserver)[private]

Parameters

MSIPConnectionObserver & aObserver

CallErrorOccuredInRegistration(MSIPConnectionObserver &)

voidCallErrorOccuredInRegistration(MSIPConnectionObserver &aObserver)[private]

Parameters

MSIPConnectionObserver & aObserver

CallErrorOccuredInRegistrationWithTransaction(MSIPConnectionObserver &)

voidCallErrorOccuredInRegistrationWithTransaction(MSIPConnectionObserver &aObserver)[private]

Parameters

MSIPConnectionObserver & aObserver

CallErrorOccuredTransaction(MSIPConnectionObserver &)

voidCallErrorOccuredTransaction(MSIPConnectionObserver &aObserver)[private]

Parameters

MSIPConnectionObserver & aObserver

CallIncomingRequest(MSIPConnectionObserver &)

voidCallIncomingRequest(MSIPConnectionObserver &aObserver)[private]

Parameters

MSIPConnectionObserver & aObserver

CallIncomingResponse(MSIPConnectionObserver &)

voidCallIncomingResponse(MSIPConnectionObserver &aObserver)[private]

Parameters

MSIPConnectionObserver & aObserver

CallIncomingResponseInRegistration(MSIPConnectionObserver &)

voidCallIncomingResponseInRegistration(MSIPConnectionObserver &aObserver)[private]

Parameters

MSIPConnectionObserver & aObserver

CallIncomingResponseNewAssoc(MSIPConnectionObserver &)

voidCallIncomingResponseNewAssoc(MSIPConnectionObserver &aObserver)[private]

Parameters

MSIPConnectionObserver & aObserver

CallInviteCanceled(MSIPConnectionObserver &)

voidCallInviteCanceled(MSIPConnectionObserver &aObserver)[private]

Parameters

MSIPConnectionObserver & aObserver

ExecuteCallback(MSIPConnectionObserver &)

voidExecuteCallback(MSIPConnectionObserver &aObserver)

Makes a call to the selected callback method, passing the appropriate parameters to it. After the callback, if an object has been ordered to be deleted using the SetObjectToDelete(), it is deleted. Before calling this method, Set() must've been used to select the callback and to set the parameters. Once ExecuteCallback() has been called, it can't be called again before another Set() has been called.

Pre-condition
iCallbackId != ENone
Post-condition
iObjectToDelete == NULL

Parameters

MSIPConnectionObserver & aObserverCallback interface

NewL()

CConnectionCallback *NewL()[static]

Set(TCallbackMethod, CSIPTransactionBase *, CSIPRegistrationBinding *, CSIPDialog *, CSIPDialogAssocBase *, TInt, CBase *)

voidSet(TCallbackMethodaCallbackId,
CSIPTransactionBase *aTransaction,
CSIPRegistrationBinding *aRegistration = NULL,
CSIPDialog *aDialog = NULL,
CSIPDialogAssocBase *aDialogAssoc = NULL,
TIntaError =  KErrNone ,
CBase *aObjectToDelete = NULL
)

Selects the callback method and sets the parameters to be passed for the callback. The callback is not yet called.

Pre-condition
aCallbackId != ENone

Parameters

TCallbackMethod aCallbackIdIdentifies the callback method to be used
CSIPTransactionBase * aTransactionTransaction to be passed to the callback or NULL if the callback doesn't take a transaction as a parameter. Depending on the selected callback, the ownership may be transferred.
CSIPRegistrationBinding * aRegistration = NULLRegistration to be passed to the callback or NULL if the callback doesn't take a registration as a parameter. Ownership is not transferred.
CSIPDialog * aDialog = NULLDialog to be passed to callback or NULL if the callback doesn't take a dialog as a parameter. Ownership is not transferred.
CSIPDialogAssocBase * aDialogAssoc = NULLDialog association to be passed to the callback or NULL if the callback doesn't take a dialog association as a parameter. Depending on the selected callback, the ownership may be transferred.
TInt aError =  KErrNone Error value to be passed to the callback. Not all callbacks take this as their parameter
CBase * aObjectToDelete = NULLInstructs CConnectionCallback to delete the object pointed by aObjectToDelete, after the callback method has been called. aObjectToDelete typically points to one of the other parameters of Set() method. Ownership is transferred.

Member Enumerations Documentation

Enum TCallbackMethod

Enumerators

ENone = 0
EIncomingRequest
EIncomingResponse
EIncomingResponseNewAssoc
EIncomingResponseInRegistration
EErrorOccuredTransaction
EErrorOccuredDialog
EErrorOccuredDialogTransaction
EErrorOccuredInRegistration
EErrorOccuredInRegistrationWithTransaction
EInviteCanceled

Member Data Documentation

TCallbackMethod iCallbackId

TCallbackMethod iCallbackId[private]

CSIPDialog * iDialog

CSIPDialog *iDialog[private]

CSIPDialogAssocBase * iDialogAssoc

CSIPDialogAssocBase *iDialogAssoc[private]

TInt iError

TInt iError[private]

CBase * iObjectToDelete

CBase *iObjectToDelete[private]

CSIPRegistrationBinding * iRegistration

CSIPRegistrationBinding *iRegistration[private]

CSIPTransactionBase * iTransaction

CSIPTransactionBase *iTransaction[private]