CConnectionCallback Class Reference

class CConnectionCallback : public CBase

Inherits from

Public Member Functions
~CConnectionCallback ()
void ExecuteCallback ( MSIPConnectionObserver &)
CConnectionCallback * NewL ()
void Set ( TCallbackMethod , CSIPTransactionBase *, CSIPRegistrationBinding *, CSIPDialog *, CSIPDialogAssocBase *, TInt , CBase *)
Private Member Functions
CConnectionCallback ()
void CallErrorOccuredDialog ( MSIPConnectionObserver &)
void CallErrorOccuredDialogTransaction ( MSIPConnectionObserver &)
void CallErrorOccuredInRegistration ( MSIPConnectionObserver &)
void CallErrorOccuredInRegistrationWithTransaction ( MSIPConnectionObserver &)
void CallErrorOccuredTransaction ( MSIPConnectionObserver &)
void CallIncomingRequest ( MSIPConnectionObserver &)
void CallIncomingResponse ( MSIPConnectionObserver &)
void CallIncomingResponseInRegistration ( MSIPConnectionObserver &)
void CallIncomingResponseNewAssoc ( MSIPConnectionObserver &)
void CallInviteCanceled ( 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
enum TCallbackMethod {
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 &)

void CallErrorOccuredDialog ( MSIPConnectionObserver & aObserver ) [private]

Parameters

MSIPConnectionObserver & aObserver

CallErrorOccuredDialogTransaction(MSIPConnectionObserver &)

void CallErrorOccuredDialogTransaction ( MSIPConnectionObserver & aObserver ) [private]

Parameters

MSIPConnectionObserver & aObserver

CallErrorOccuredInRegistration(MSIPConnectionObserver &)

void CallErrorOccuredInRegistration ( MSIPConnectionObserver & aObserver ) [private]

Parameters

MSIPConnectionObserver & aObserver

CallErrorOccuredInRegistrationWithTransaction(MSIPConnectionObserver &)

void CallErrorOccuredInRegistrationWithTransaction ( MSIPConnectionObserver & aObserver ) [private]

Parameters

MSIPConnectionObserver & aObserver

CallErrorOccuredTransaction(MSIPConnectionObserver &)

void CallErrorOccuredTransaction ( MSIPConnectionObserver & aObserver ) [private]

Parameters

MSIPConnectionObserver & aObserver

CallIncomingRequest(MSIPConnectionObserver &)

void CallIncomingRequest ( MSIPConnectionObserver & aObserver ) [private]

Parameters

MSIPConnectionObserver & aObserver

CallIncomingResponse(MSIPConnectionObserver &)

void CallIncomingResponse ( MSIPConnectionObserver & aObserver ) [private]

Parameters

MSIPConnectionObserver & aObserver

CallIncomingResponseInRegistration(MSIPConnectionObserver &)

void CallIncomingResponseInRegistration ( MSIPConnectionObserver & aObserver ) [private]

Parameters

MSIPConnectionObserver & aObserver

CallIncomingResponseNewAssoc(MSIPConnectionObserver &)

void CallIncomingResponseNewAssoc ( MSIPConnectionObserver & aObserver ) [private]

Parameters

MSIPConnectionObserver & aObserver

CallInviteCanceled(MSIPConnectionObserver &)

void CallInviteCanceled ( MSIPConnectionObserver & aObserver ) [private]

Parameters

MSIPConnectionObserver & aObserver

ExecuteCallback(MSIPConnectionObserver &)

void ExecuteCallback ( 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 & aObserver Callback interface

NewL()

CConnectionCallback * NewL ( ) [static]

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

void Set ( TCallbackMethod aCallbackId,
CSIPTransactionBase * aTransaction,
CSIPRegistrationBinding * aRegistration = NULL,
CSIPDialog * aDialog = NULL,
CSIPDialogAssocBase * aDialogAssoc = NULL,
TInt aError =  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 aCallbackId Identifies the callback method to be used
CSIPTransactionBase * aTransaction Transaction 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 = NULL Registration 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 = NULL Dialog to be passed to callback or NULL if the callback doesn't take a dialog as a parameter. Ownership is not transferred.
CSIPDialogAssocBase * aDialogAssoc = NULL Dialog 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 = NULL Instructs 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]