class CSIPRegistrarStore : public CBase |
Class stores array of CSIPRegistrar objects. Register request sent to same registrar should use the same callId and the CSeq should be increased. Before any register request is sent, registrar store will be checked. If the registrar exists in CSIPRegistarStore, it increace the CSeq and copy the CallId and CSeq to REGISTER request.
Public Member Functions | |
---|---|
~CSIPRegistrarStore () | |
CSIPRegistrar * | CreateRegistrarL (const CURIContainer &, const TDesC8 &, TUint , const TRegistrationId ) |
CSIPRegistrar * | FindRegistrar (const CURIContainer &) |
CSIPRegistrarStore * | NewL () |
CSIPRegistrarStore * | NewLC () |
TInt | RemoveRegistrar ( CSIPRegistrar *) |
Private Member Functions | |
---|---|
CSIPRegistrarStore () | |
void | ConstructL () |
Private Attributes | |
---|---|
CDeleteMgr * | iDeleteMgr |
RPointerArray < CSIPRegistrar > | iRegistrars |
CSIPRegistrar * | CreateRegistrarL | ( | const CURIContainer & | aRegistrar, |
const TDesC8 & | aCallId, | |||
TUint | aCSeq, | |||
const TRegistrationId | aRegistrationId | |||
) |
Creates CSIPRegistrar object, and add it to the array of CSIPRegRegistrar objects in CSIPRegRegistrarStore.
@ param aRegistrar; a registrar @ param aCallId; CallId @ param aCSeq; a CSeq Number @ param aRegistrationId; a TRegistrationId
@ return CSIPRegistrar object, the ownership is transferred.
const CURIContainer & aRegistrar | |
const TDesC8 & aCallId | |
TUint aCSeq | |
const TRegistrationId aRegistrationId |
CSIPRegistrar * | FindRegistrar | ( | const CURIContainer & | aRegistrar | ) |
Find the registrar object, in which registrar name is same as the parameter.
@ param aRegistrar; a registrar name.
@ return a CSIPRegistrar object. 0 if the registrar can not be found. the ownership of the CSIPRegistrar object is not transferred.
const CURIContainer & aRegistrar |
CSIPRegistrarStore * | NewL | ( | ) | [static] |
Create a instance of CSIPRegistrarStore .
@ return a CSIPRegistrarStore object.
CSIPRegistrarStore * | NewLC | ( | ) | [static] |
Create a instance of CSIPRegistrarStore nad push it to cleanup stack
@ return a CSIPRegistrarStore object.
TInt | RemoveRegistrar | ( | CSIPRegistrar * | aRegistrar | ) |
remove the registrar object passed as parameter from registrars array
@ param aRegistrar; a CSIPRegistrar object, the ownership is not transferred.
@ return KErrNone if the registrar object can be found from registrars array. KErrNotFound otherwise.
CSIPRegistrar * aRegistrar |
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.