#include <mw/sipprofileregistrybase.h>
Link against: sipprofilecli.lib
class CSIPProfileRegistryBase : public CBase, public MSIPConcreteProfileObserver |
Protected Attributes | |
---|---|
CSIPProfileItem * | iFindEntry |
CSIPProfileITC * | iITC |
CSIPProfileITCReceiver * | iITCReceiver |
MSIPProfileRegistryObserver & | iObserver |
CSIPProfilePlugins * | iProfilePlugins |
RPointerArray< CSIPProfileItem > | iProfiles |
RSIPProfile * | iSipClient |
Protected Member Functions | |
---|---|
CSIPProfileRegistryBase(MSIPProfileRegistryObserver &) | |
void | BaseConstructL() |
TInt | ProfileIndex(TUint) |
CSIPProfileItem * | ProfileItemByIndex(TUint) |
CSIPProfileItem * | ProfileItemL(TUint) |
CSIPProfile * | SIPProfileL(TUint32, TInt) |
void | StoreArrayL(RPointerArray< CSIPConcreteProfile > &, RPointerArray< CSIPProfile > &) |
void | StoreProfileL(CSIPProfileCleanupItem *) |
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.
CSIPProfileItem * | iFindEntry | [protected] |
CSIPProfileITC * | iITC | [protected] |
CSIPProfileITCReceiver * | iITCReceiver | [protected] |
MSIPProfileRegistryObserver & | iObserver | [protected] |
CSIPProfilePlugins * | iProfilePlugins | [protected] |
RPointerArray< CSIPProfileItem > | iProfiles | [protected] |
RSIPProfile * | iSipClient | [protected] |
CSIPProfileRegistryBase | ( | MSIPProfileRegistryObserver & | aObserver | ) | [protected] |
Constructor
Parameters | |
---|---|
aObserver | observer to send events to |
IMPORT_C | ~CSIPProfileRegistryBase | ( | ) |
void | AddedL | ( | TUint32 | aProfileId | ) | [virtual] |
Reimplemented from MSIPConcreteProfileObserver::AddedL(TUint32)
SIP profile creation event.
Parameters | |
---|---|
aProfileId | id of new SIP Profile |
void | CrashRevert | ( | TAny * | aItem | ) | [static] |
Roll back in case of failure
Parameters | |
---|---|
aItem | object to be cleaned |
IMPORT_C CSIPProfile * | DefaultProfileL | ( | ) |
Leave Codes | |
---|---|
KErrNotFound | if profile not found |
KErrNoMemory | if out of memory |
Capability | |
---|---|
ReadUserData |
Reimplemented from MSIPConcreteProfileObserver::ErrorOccurredL(TUint32,TInt,TInt)
An asynchronous error has occurred related to SIP profile
Parameters | |
---|---|
aProfileId | the id of failed profile |
aError | a error code |
void | ForceDisableProfileL | ( | CSIPProfile & | aProfile | ) |
Force disable profile All Profile related activities will be stopped ungracefully
Parameters | |
---|---|
aProfile | to be disabled |
TBool | IsDefaultProfileL | ( | const CSIPProfile & | aProfile | ) |
Checks whether profile is default or not
Parameters | |
---|---|
aProfile | checked profile |
CSIPProfileITC & | Itc | ( | ) |
Gets the ITC member variable. The owneship of ITC is not transferred.
CSIPProfileITCReceiver & | ItcReceiver | ( | ) |
Gets the ITC receiver member variable. The owneship of ITC receiver is not transferred.
IMPORT_C TInt | LastRegistrationError | ( | const CSIPProfile & | aProfile | ) | const |
Gets the last occurred error during registration
void | LocalCrashRevert | ( | TAny * | aItem | ) | [static] |
Roll back in case of failure
Parameters | |
---|---|
aItem | object to be cleaned |
void | NegotiatedSecurityMechanismL | ( | CSIPConcreteProfile & | aProfile | ) |
Updates SIP profile value for negotiated security mechanism; leaves on failure
Parameters | |
---|---|
aProfile | a SIP profile |
CSIPProfile * | NewInstanceL | ( | ) | [pure virtual] |
Gets new instance of either type CSIPProfile or CSIPManagedProfile
void | ProfileDeleted | ( | CSIPProfile & | aProfile | ) |
Informs destruction of local profile object instance
Parameters | |
---|---|
aProfile | instance of deleted profile |
CSIPProfileItem * | ProfileItemByIndex | ( | TUint | aIndex | ) | [protected] |
Gets profile cache item by index
Parameters | |
---|---|
aIndex | a index of the profile to be found |
CSIPProfileItem * | ProfileItemL | ( | TUint | aProfileId | ) | [protected] |
Gets profile cache item
Parameters | |
---|---|
aProfileId | a profile id to be found |
IMPORT_C CSIPProfile * | ProfileL | ( | TUint32 | aId | ) |
Parameters | |
---|---|
aId | a SIP profile Id |
Leave Codes | |
---|---|
KErrNotFound | if profile is not found |
Capability | |
---|---|
ReadUserData |
IMPORT_C void | ProfilesL | ( | RPointerArray< CSIPProfile > & | aProfiles | ) |
Parameters | |
---|---|
aProfiles | a reference to a client-owned array, which on return is filled with all existing SIP profiles |
Leave Codes | |
---|---|
KErrNoMemory | if out of memory |
Capability | |
---|---|
ReadUserData |
IMPORT_C void | ProfilesL | ( | const TSIPProfileTypeInfo & | aType, |
RPointerArray< CSIPProfile > & | aProfiles | |||
) |
Parameters | |
---|---|
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. |
Leave Codes | |
---|---|
KErrNoMemory | if out of memory |
Capability | |
---|---|
ReadUserData |
IMPORT_C void | ProfilesL | ( | const TDesC8 & | aAOR, |
RPointerArray< CSIPProfile > & | aProfiles | |||
) |
Parameters | |
---|---|
aAOR | a SIP AOR e.g. [email protected] |
aProfiles | a reference to a client-owned array, which on return is filled with profiles of the given type. |
Leave Codes | |
---|---|
KErrNoMemory | if out memory |
Capability | |
---|---|
ReadUserData |
void | RegisteredAORsL | ( | CSIPConcreteProfile & | aProfile | ) |
Updates SIP profile value for registered AORs; leaves on failure
Parameters | |
---|---|
aProfile | a SIP profile |
SIP profile registration status changed event
Parameters | |
---|---|
aProfileId | id of profile which registration status has been changed. |
aStatus | new status of the profile |
aStatusId | id related to registration |
void | RemoveProfileL | ( | CSIPProfile & | aProfile | ) |
Parameters | |
---|---|
aProfile | to be removed |
void | RemovedL | ( | TUint32 | aProfileId | ) | [virtual] |
Reimplemented from MSIPConcreteProfileObserver::RemovedL(TUint32)
SIP profile destruction event.
Parameters | |
---|---|
aProfileId | id of profile which was destroyed |
CSIPProfile * | SIPProfileL | ( | TUint32 | aId, |
TInt | aSize = 0 | |||
) | [protected] |
Gets SIP profile identified by the Id; leaves on failure The owneship of profile is transferred.
Parameters | |
---|---|
aId | a SIP profile Id |
aSize | of profile if known |
void | StoreArrayL | ( | RPointerArray< CSIPConcreteProfile > & | aProfiles, |
RPointerArray< CSIPProfile > & | aRetProfiles | |||
) | [protected] |
Store array of profiles into client cache
Parameters | |
---|---|
aProfiles | a array containing the profiles |
aRetProfiles | returned array containing profiles |
void | StoreProfileL | ( | CSIPProfileCleanupItem * | aItem | ) | [protected] |
Store profile into client cache
Parameters | |
---|---|
aItem | a cleanup item for roll back in case of failure |
IMPORT_C void | SupportedProfileTypesL | ( | RArray< TSIPProfileTypeInfo > & | aSupportedProfileTypes | ) |
Parameters | |
---|---|
aSupportedProfileTypes | a reference to client-owned array, which on return is filled with supported profile types. Any existing data in the array is destroyed. |
Leave Codes | |
---|---|
KErrNoMemory | if out of memory |
Reimplemented from MSIPConcreteProfileObserver::UpdatedL(TUint32,TUint)
SIP profile information update event
Parameters | |
---|---|
aProfileId | id of updated SIP Profile |
aSize | size of updated SIP Profile |
TInt | UsageL | ( | const CSIPProfile & | aProfile | ) | const |
Gets count of clients that have a profile enabled
Parameters | |
---|---|
aProfile | profile to be checked |