CSIPProfileRegistryBase Class Reference

#include <mw/sipprofileregistrybase.h>

Link against: sipprofilecli.lib

class CSIPProfileRegistryBase : public CBase, public MSIPConcreteProfileObserver

Inherits from

Protected Attributes
CSIPProfileItem *iFindEntry
CSIPProfileITC *iITC
CSIPProfileITCReceiver *iITCReceiver
MSIPProfileRegistryObserver &iObserver
CSIPProfilePlugins *iProfilePlugins
RPointerArray< CSIPProfileItem >iProfiles
RSIPProfile *iSipClient
Public Member Functions
~CSIPProfileRegistryBase()
voidAddProfileL(CSIPProfile &)
virtual voidAddedL(TUint32)
voidCrashRevert(TAny *)
IMPORT_C CSIPProfile *DefaultProfileL()
voidDisableProfileL(CSIPProfile &)
voidEnableProfileL(CSIPProfile &)
virtual voidErrorOccurredL(TUint32, TInt, TInt)
voidForceDisableProfileL(CSIPProfile &)
TBool IsDefaultProfileL(const CSIPProfile &)
CSIPProfileITC &Itc()
CSIPProfileITCReceiver &ItcReceiver()
IMPORT_C TIntLastRegistrationError(const CSIPProfile &)
voidLocalCrashRevert(TAny *)
voidNegotiatedSecurityMechanismL(CSIPConcreteProfile &)
pure virtual CSIPProfile *NewInstanceL()
voidProfileDeleted(CSIPProfile &)
IMPORT_C CSIPProfile *ProfileL(TUint32)
IMPORT_C voidProfilesL(RPointerArray< CSIPProfile > &)
IMPORT_C voidProfilesL(const TSIPProfileTypeInfo &, RPointerArray< CSIPProfile > &)
IMPORT_C voidProfilesL(const TDesC8 &, RPointerArray< CSIPProfile > &)
voidRegisteredAORsL(CSIPConcreteProfile &)
virtual voidRegistrationStatusChangedL(TUint32, TInt, TUint32)
voidRemoveProfileL(CSIPProfile &)
virtual voidRemovedL(TUint32)
IMPORT_C voidSupportedProfileTypesL(RArray< TSIPProfileTypeInfo > &)
voidUpdateProfileL(CSIPProfile &)
virtual voidUpdatedL(TUint32, TUint)
TInt UsageL(const CSIPProfile &)
Protected Member Functions
CSIPProfileRegistryBase(MSIPProfileRegistryObserver &)
voidBaseConstructL()
TInt ProfileIndex(TUint)
CSIPProfileItem *ProfileItemByIndex(TUint)
CSIPProfileItem *ProfileItemL(TUint)
CSIPProfile *SIPProfileL(TUint32, TInt)
voidStoreArrayL(RPointerArray< CSIPConcreteProfile > &, RPointerArray< CSIPProfile > &)
voidStoreProfileL(CSIPProfileCleanupItem *)
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()

Detailed Description

The class functions for retrieving SIP profiles from permanent storage. It enables retrieval of single or more profiles from permanent storage located in profile server.

The class enables also the query of supported profile types.

This class is an abstract class and cannot be instantiated.

Member Attribute Documentation

iFindEntry

CSIPProfileItem *iFindEntry[protected]

iITC

CSIPProfileITC *iITC[protected]

iITCReceiver

CSIPProfileITCReceiver *iITCReceiver[protected]

iObserver

MSIPProfileRegistryObserver &iObserver[protected]

iProfilePlugins

CSIPProfilePlugins *iProfilePlugins[protected]

iProfiles

RPointerArray< CSIPProfileItem >iProfiles[protected]

iSipClient

RSIPProfile *iSipClient[protected]

Constructor & Destructor Documentation

CSIPProfileRegistryBase ( MSIPProfileRegistryObserver & )

CSIPProfileRegistryBase(MSIPProfileRegistryObserver &aObserver)[protected]

Constructor

Parameters
aObserverobserver to send events to

~CSIPProfileRegistryBase ( )

IMPORT_C~CSIPProfileRegistryBase()

Member Function Documentation

AddProfileL ( CSIPProfile & )

voidAddProfileL(CSIPProfile &aProfile)

Add profile

Parameters
aProfileto be added

AddedL ( TUint32 )

voidAddedL(TUint32aProfileId)[virtual]

SIP profile creation event.

Parameters
aProfileIdid of new SIP Profile

BaseConstructL ( )

voidBaseConstructL()[protected]

Symbian 2nd phase base class constructor

CrashRevert ( TAny * )

voidCrashRevert(TAny *aItem)[static]

Roll back in case of failure

Parameters
aItemobject to be cleaned

DefaultProfileL ( )

IMPORT_C CSIPProfile *DefaultProfileL()
Gets the default profile
Return Value
default profile; the owneship is transfered
Leave Codes
KErrNotFoundif profile not found
KErrNoMemoryif out of memory
Capability
ReadUserData

DisableProfileL ( CSIPProfile & )

voidDisableProfileL(CSIPProfile &aProfile)

Disable profile

Parameters
aProfileto be disabled

EnableProfileL ( CSIPProfile & )

voidEnableProfileL(CSIPProfile &aProfile)

Enable profile

Parameters
aProfileto be enabled

ErrorOccurredL ( TUint32, TInt, TInt )

voidErrorOccurredL(TUint32aProfileId,
TIntaStatus,
TIntaError
)[virtual]

An asynchronous error has occurred related to SIP profile

Parameters
aProfileIdthe id of failed profile
aErrora error code

ForceDisableProfileL ( CSIPProfile & )

voidForceDisableProfileL(CSIPProfile &aProfile)

Force disable profile All Profile related activities will be stopped ungracefully

Parameters
aProfileto be disabled

IsDefaultProfileL ( const CSIPProfile & )

TBool IsDefaultProfileL(const CSIPProfile &aProfile)

Checks whether profile is default or not

Parameters
aProfilechecked profile
Return Value
ETrue if is default, otherwise EFalse

Itc ( )

CSIPProfileITC &Itc()

Gets the ITC member variable. The owneship of ITC is not transferred.

Return Value
Reference to ITC member variable.

ItcReceiver ( )

CSIPProfileITCReceiver &ItcReceiver()

Gets the ITC receiver member variable. The owneship of ITC receiver is not transferred.

Return Value
Reference to ITC receiver member variable.

LastRegistrationError ( const CSIPProfile & )

IMPORT_C TIntLastRegistrationError(const CSIPProfile &aProfile)const

Gets the last occurred error during registration

Return Value
last occurred registration error, KErrNone if no error

LocalCrashRevert ( TAny * )

voidLocalCrashRevert(TAny *aItem)[static]

Roll back in case of failure

Parameters
aItemobject to be cleaned

NegotiatedSecurityMechanismL ( CSIPConcreteProfile & )

voidNegotiatedSecurityMechanismL(CSIPConcreteProfile &aProfile)

Updates SIP profile value for negotiated security mechanism; leaves on failure

Parameters
aProfilea SIP profile

NewInstanceL ( )

CSIPProfile *NewInstanceL()[pure virtual]

Gets new instance of either type CSIPProfile or CSIPManagedProfile

Return Value
new instance

ProfileDeleted ( CSIPProfile & )

voidProfileDeleted(CSIPProfile &aProfile)

Informs destruction of local profile object instance

Parameters
aProfileinstance of deleted profile

ProfileIndex ( TUint )

TInt ProfileIndex(TUintaProfileId)[protected]

Gets profile cache item index

Parameters
aProfileIda profile id to be found
Return Value
local cache item index of the profile

ProfileItemByIndex ( TUint )

CSIPProfileItem *ProfileItemByIndex(TUintaIndex)[protected]

Gets profile cache item by index

Parameters
aIndexa index of the profile to be found
Return Value
local cache item of the profile

ProfileItemL ( TUint )

CSIPProfileItem *ProfileItemL(TUintaProfileId)[protected]

Gets profile cache item

Parameters
aProfileIda profile id to be found
Return Value
local cache item of the profile

ProfileL ( TUint32 )

IMPORT_C CSIPProfile *ProfileL(TUint32aId)
Gets SIP profile identified by the Id The owneship of profile is transferred.
Parameters
aIda SIP profile Id
Return Value
SIP profile
Leave Codes
KErrNotFoundif profile is not found
Capability
ReadUserData

ProfilesL ( RPointerArray< CSIPProfile > & )

IMPORT_C voidProfilesL(RPointerArray< CSIPProfile > &aProfiles)
Gets all SIP profiles
Pre-condition
aProfiles.Count() == 0
Parameters
aProfilesa reference to a client-owned array, which on return is filled with all existing SIP profiles
Leave Codes
KErrNoMemoryif out of memory
Capability
ReadUserData

ProfilesL ( const TSIPProfileTypeInfo &, RPointerArray< CSIPProfile > & )

IMPORT_C voidProfilesL(const TSIPProfileTypeInfo &aType,
RPointerArray< CSIPProfile > &aProfiles
)
Gets all SIP profiles of particular type The owneship of profiles are transferred.
Pre-condition
aProfiles.Count() == 0
Parameters
aTypea SIP profile type that is used for a query
aProfilesa reference to a client-owned array, which on return is filled with profiles of the given type.
Leave Codes
KErrNoMemoryif out of memory
Capability
ReadUserData

ProfilesL ( const TDesC8 &, RPointerArray< CSIPProfile > & )

IMPORT_C voidProfilesL(const TDesC8 &aAOR,
RPointerArray< CSIPProfile > &aProfiles
)
Gets SIP profile for a particular SIP AOR The owneship of profiles are transferred.
Pre-condition
aProfiles.Count() == 0
Parameters
aAORa SIP AOR e.g. [email protected]
aProfilesa reference to a client-owned array, which on return is filled with profiles of the given type.
Leave Codes
KErrNoMemoryif out memory
Capability
ReadUserData

RegisteredAORsL ( CSIPConcreteProfile & )

voidRegisteredAORsL(CSIPConcreteProfile &aProfile)

Updates SIP profile value for registered AORs; leaves on failure

Parameters
aProfilea SIP profile

RegistrationStatusChangedL ( TUint32, TInt, TUint32 )

voidRegistrationStatusChangedL(TUint32aProfileId,
TIntaStatus,
TUint32aStatusId
)[virtual]

SIP profile registration status changed event

Parameters
aProfileIdid of profile which registration status has been changed.
aStatusnew status of the profile
aStatusIdid related to registration

RemoveProfileL ( CSIPProfile & )

voidRemoveProfileL(CSIPProfile &aProfile)
Remove profile
Pre-condition
UsageL(aProfile) == 0
Parameters
aProfileto be removed

RemovedL ( TUint32 )

voidRemovedL(TUint32aProfileId)[virtual]

SIP profile destruction event.

Parameters
aProfileIdid of profile which was destroyed

SIPProfileL ( TUint32, TInt )

CSIPProfile *SIPProfileL(TUint32aId,
TIntaSize = 0
)[protected]

Gets SIP profile identified by the Id; leaves on failure The owneship of profile is transferred.

Parameters
aIda SIP profile Id
aSizeof profile if known
Return Value
SIP profile or 0 pointer if there's no such SIP profile

StoreArrayL ( RPointerArray< CSIPConcreteProfile > &, RPointerArray< CSIPProfile > & )

voidStoreArrayL(RPointerArray< CSIPConcreteProfile > &aProfiles,
RPointerArray< CSIPProfile > &aRetProfiles
)[protected]

Store array of profiles into client cache

Parameters
aProfilesa array containing the profiles
aRetProfilesreturned array containing profiles

StoreProfileL ( CSIPProfileCleanupItem * )

voidStoreProfileL(CSIPProfileCleanupItem *aItem)[protected]

Store profile into client cache

Parameters
aItema cleanup item for roll back in case of failure

SupportedProfileTypesL ( RArray< TSIPProfileTypeInfo > & )

IMPORT_C voidSupportedProfileTypesL(RArray< TSIPProfileTypeInfo > &aSupportedProfileTypes)
Gets supported profile types The owneship of returned objects are transferred.
Pre-condition
aSupportedProfileTypes.Count() == 0
Parameters
aSupportedProfileTypesa reference to client-owned array, which on return is filled with supported profile types. Any existing data in the array is destroyed.
Leave Codes
KErrNoMemoryif out of memory

UpdateProfileL ( CSIPProfile & )

voidUpdateProfileL(CSIPProfile &aProfile)

Update profile

Parameters
aProfileto be updated

UpdatedL ( TUint32, TUint )

voidUpdatedL(TUint32aProfileId,
TUintaSize
)[virtual]

SIP profile information update event

Parameters
aProfileIdid of updated SIP Profile
aSizesize of updated SIP Profile

UsageL ( const CSIPProfile & )

TInt UsageL(const CSIPProfile &aProfile)const

Gets count of clients that have a profile enabled

Parameters
aProfileprofile to be checked
Return Value
number of clients that have the profile enabled