CSIPProfileRegistryBase Class Reference
#include
<mw/sipprofileregistrybase.h>
Link against: sipprofilecli.lib
class CSIPProfileRegistryBase : public 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
Constructor & Destructor Documentation
CSIPProfileRegistryBase ( MSIPProfileRegistryObserver & )
Parameter | Description | aObserver | observer to send events to |
~CSIPProfileRegistryBase ( )
IMPORT_C | ~CSIPProfileRegistryBase | ( | ) | |
Member Function Documentation
AddProfileL ( CSIPProfile & )
Parameter | Description | aProfile | to be added |
AddedL ( TUint32 )
SIP profile creation event.
Parameter | Description | aProfileId | id of new SIP Profile |
BaseConstructL ( )
void | BaseConstructL | ( | ) | [protected] |
Symbian 2nd phase base class constructor
CrashRevert ( TAny * )
void | CrashRevert | ( | TAny * | aItem | ) | [static] |
Roll back in case of failure
Parameter | Description | aItem | object to be cleaned |
DefaultProfileL ( )
Gets the default profile
- leave
- KErrNotFound if profile not found
- leave
- KErrNoMemory if out of memory
- capability
- ReadUserData
Returns: default profile; the owneship is transfered
DisableProfileL ( CSIPProfile & )
Parameter | Description | aProfile | to be disabled |
EnableProfileL ( CSIPProfile & )
Parameter | Description | aProfile | to be enabled |
ErrorOccurredL ( TUint32, TInt, TInt )
An asynchronous error has occurred related to SIP profile
Parameter | Description | aProfileId | the id of failed profile |
aError | a error code |
ForceDisableProfileL ( CSIPProfile & )
Force disable profile All Profile related activities will be stopped ungracefully
Parameter | Description | aProfile | to be disabled |
IsDefaultProfileL ( const CSIPProfile & )
Checks whether profile is default or not
Parameter | Description | aProfile | checked profile |
Returns: ETrue if is default, otherwise EFalse
Itc ( )
Gets the ITC member variable. The owneship of ITC is not transferred.
Returns: Reference to ITC member variable.
ItcReceiver ( )
Gets the ITC receiver member variable. The owneship of ITC receiver is not transferred.
Returns: Reference to ITC receiver member variable.
LastRegistrationError ( const CSIPProfile & )
Gets the last occurred error during registration
Returns: last occurred registration error, KErrNone if no error
LocalCrashRevert ( TAny * )
void | LocalCrashRevert | ( | TAny * | aItem | ) | [static] |
Roll back in case of failure
Parameter | Description | aItem | object to be cleaned |
NegotiatedSecurityMechanismL ( CSIPConcreteProfile & )
Updates SIP profile value for negotiated security mechanism; leaves on failure
Parameter | Description | aProfile | a SIP profile |
ProfileDeleted ( CSIPProfile & )
Informs destruction of local profile object instance
Parameter | Description | aProfile | instance of deleted profile |
ProfileIndex ( TUint )
TInt
| ProfileIndex | ( | TUint | aProfileId | ) | [protected] |
Gets profile cache item index
Parameter | Description | aProfileId | a profile id to be found |
Returns: local cache item index of the profile
ProfileItemByIndex ( TUint )
Gets profile cache item by index
Parameter | Description | aIndex | a index of the profile to be found |
Returns: local cache item of the profile
ProfileItemL ( TUint )
Parameter | Description | aProfileId | a profile id to be found |
Returns: local cache item of the profile
ProfileL ( TUint32 )
Gets SIP profile identified by the Id The owneship of profile is transferred.
- leave
- KErrNotFound if profile is not found
- capability
- ReadUserData
Parameter | Description | aId | a SIP profile Id |
ProfilesL ( RPointerArray< CSIPProfile > & )
Gets all SIP profiles
- Pre-condition
- aProfiles.Count() == 0
- leave
- KErrNoMemory if out of memory
- capability
- ReadUserData
Parameter | Description | aProfiles | a reference to a client-owned array, which on return is filled with all existing SIP profiles |
ProfilesL ( const TSIPProfileTypeInfo &, RPointerArray< CSIPProfile > & )
Gets all SIP profiles of particular type The owneship of profiles are transferred.
- Pre-condition
- aProfiles.Count() == 0
- leave
- KErrNoMemory if out of memory
- capability
- ReadUserData
Parameter | Description | aType | a SIP profile type that is used for a query |
aProfiles | a reference to a client-owned array, which on return is filled with profiles of the given type. |
ProfilesL ( const TDesC8 &, RPointerArray< CSIPProfile > & )
Gets SIP profile for a particular SIP AOR The owneship of profiles are transferred.
- Pre-condition
- aProfiles.Count() == 0
- leave
- KErrNoMemory if out memory
- capability
- ReadUserData
Parameter | Description | aAOR | a SIP AOR e.g. user@domain.com |
aProfiles | a reference to a client-owned array, which on return is filled with profiles of the given type. |
RegisteredAORsL ( CSIPConcreteProfile & )
Updates SIP profile value for registered AORs; leaves on failure
Parameter | Description | aProfile | a SIP profile |
RegistrationStatusChangedL ( TUint32, TInt, TUint32 )
SIP profile registration status changed event
Parameter | Description | aProfileId | id of profile which registration status has been changed. |
aStatus | new status of the profile |
aStatusId | id related to registration |
RemoveProfileL ( CSIPProfile & )
Remove profile
- Pre-condition
- UsageL(aProfile) == 0
Parameter | Description | aProfile | to be removed |
RemovedL ( TUint32 )
SIP profile destruction event.
Parameter | Description | aProfileId | id of profile which was destroyed |
SIPProfileL ( TUint32, TInt )
Gets SIP profile identified by the Id; leaves on failure The owneship of profile is transferred.
Parameter | Description | aId | a SIP profile Id |
aSize | of profile if known |
Returns: SIP profile or 0 pointer if there's no such SIP profile
StoreArrayL ( RPointerArray< CSIPConcreteProfile > &, RPointerArray< CSIPProfile > & )
Store array of profiles into client cache
Parameter | Description | aProfiles | a array containing the profiles |
aRetProfiles | returned array containing profiles |
StoreProfileL ( CSIPProfileCleanupItem * )
Store profile into client cache
Parameter | Description | aItem | a cleanup item for roll back in case of failure |
SupportedProfileTypesL ( RArray< TSIPProfileTypeInfo > & )
Gets supported profile types The owneship of returned objects are transferred.
- Pre-condition
- aSupportedProfileTypes.Count() == 0
- leave
- KErrNoMemory if out of memory
Parameter | Description | aSupportedProfileTypes | a reference to client-owned array, which on return is filled with supported profile types. Any existing data in the array is destroyed. |
UpdateProfileL ( CSIPProfile & )
Parameter | Description | aProfile | to be updated |
UpdatedL ( TUint32, TUint )
SIP profile information update event
Parameter | Description | aProfileId | id of updated SIP Profile |
aSize | size of updated SIP Profile |
UsageL ( const CSIPProfile & )
Gets count of clients that have a profile enabled
Parameter | Description | aProfile | profile to be checked |
Returns: number of clients that have the profile enabled