CCmManagerImpl Class Reference

class CCmManagerImpl : public CBase

Implementation of connection method manager

cmmanager.lib
Since
S60 v3.2

Inherits from

Public Member Functions
~CCmManagerImpl()
voidAddResourceFileL(TFileName &)
IMPORT_C voidAllDestinationsL(RArray< TUint32 > &)
CommsDat::CMDBRecordSet< CommsDat::CCDIAPRecord > *AllIapsL()
CommsDat::CMDBRecordSet< CCDDataMobilitySelectionPolicyRecord > *AllSNAPRecordsL(TUint32)
HBufC *AllocReadL(TInt)
voidAppendCmListFromUidsL(RArray< TUint32 > &, RPointerArray< CCmPluginBase > &)
voidAppendCmListL(TUint32, RPointerArray< CCmPluginBase > &)
voidAppendCmListLC(TUint32, RPointerArray< CCmPluginBase > &)
voidAppendUncatCmListL(RPointerArray< CCmPluginBase > &, TBool, TBool, TBool, TBool)
voidAppendUncatCmListLC(RPointerArray< CCmPluginBase > &, TBool, TBool, TBool, TBool)
voidBearerPriorityArrayL(RArray< TBearerPriority > &)
TUint32 BearerTypeFromCmIdL(TUint32)
TUint32 BearerTypeFromIapRecordL(CommsDat::CCDIAPRecord *)
CommsDat::TMDBElementId BearerTypePriorizationTableId()
voidCleanupGlobalPriorityArray(RArray< TBearerPriority > &)
voidCleanupResetAndDestroyPushL(TArrayToCleanup &)
voidCommitTransactionL(TInt)
voidConnMethodUpdatedL(CCmPluginBaseEng *)
IMPORT_C CCmPluginBaseEng *ConnectionMethodL(TUint32)
IMPORT_C voidConnectionMethodL(RArray< TUint32 > &, TBool, TBool, TBool, TBool)
TInt CopyConnectionMethodL(CCmDestinationImpl &, CCmPluginBase &)
CCmPluginBase *CreateConnectionMethodL(TUint32, CCmDestinationImpl *)
CCmPluginBase *CreateConnectionMethodL(TUint32, TUint32, CCmDestinationImpl *)
CCmPluginBase *CreateConnectionMethodL(CCmPluginBaseEng *)
CCmDestinationImpl *CreateDestinationL(const TDesC &)
CCmDestinationImpl *CreateDestinationL(const TDesC &, TUint32)
IMPORT_C voidCreateFlatCMListL(TUint32, RPointerArray< CCmPluginBase > &)
IMPORT_C voidCreateFlatCMListLC(TUint32, RPointerArray< CCmPluginBase > &)
CCDSnapRecord *CreateSNAPRecordL(TUint32)
TUint DestinationCountL()
IMPORT_C CCmDestinationImpl *DestinationL(TUint32)
IMPORT_C TBoolDestinationStillExistedL(CCmDestinationImpl *)
CommsDat::TMDBElementId DestinationTableId()
voidDestinationUpdated(CCmDestinationImpl *)
CCmPluginBaseEng *DoCreateConnectionMethodL(TUint32, TCmPluginInitParam &)
CCmPluginBaseEng *DoCreateConnectionMethodL(TUint32, TCmPluginInitParam &, TUint32)
IMPORT_C TUint32EasyWlanIdL()
TBool FeatureSupported(TInt)
IMPORT_C voidFilterOutVirtualsL(RPointerArray< CCmPluginBase > &)
IMPORT_C TBoolGetBearerInfoBoolL(TUint32, TUint32)
IMPORT_C TUint32GetBearerInfoIntL(TUint32, TUint32)
IMPORT_C HBufC8 *GetBearerInfoString8L(TUint32, TUint32)
IMPORT_C HBufC *GetBearerInfoStringL(TUint32, TUint32)
IMPORT_C TBoolGetConnectionMethodInfoBoolL(TUint32, TUint32)
IMPORT_C TUint32GetConnectionMethodInfoIntL(TUint32, TUint32)
IMPORT_C HBufC8 *GetConnectionMethodInfoString8L(TUint32, TUint32)
IMPORT_C HBufC *GetConnectionMethodInfoStringL(TUint32, TUint32)
IMPORT_C CCmPluginBase *GetConnectionMethodL(TUint32)
TUint32 GetInternetDestinationIdL()
TInt GlobalBearerPriority(TBool, const TDesC &)
voidHandleDefConnDeletedL(TCmDefConnValue &)
voidHasCapabilityL(TCapability)
TBool HasUnprotectedDestinationsL()
IMPORT_C TBoolIapStillExistedL(const CCmPluginBaseEng &)
CommsDat::TMDBElementId IconTableId()
voidInsertConnectionMethodL(CCmPluginBaseEng *)
TBool IsDefConnSupported()
TBool IsHelpOn()
TBool IsIapLinkedL(const CCmPluginBaseEng &)
IMPORT_C TBoolIsIapStillInDestL(CCmDestinationImpl *, const CCmPluginBaseEng &)
TBool IsMemoryLow()
TInt MoveConnectionMethodL(CCmDestinationImpl &, CCmDestinationImpl &, CCmPluginBase &)
CCmManagerImpl *NewL(TBool)
TUint32 NumOfConnMethodReferencesL(TUint32, CommsDat::CMDBRecordSet< CCDDataMobilitySelectionPolicyRecord > *)
voidOpenTransactionLC(TBool)
voidReadDefConnL(TCmDefConnValue &)
voidReadDefConnWoTransL(TCmDefConnValue &)
voidReadGenConnSettingsL(TCmGenConnSettings &)
voidRemoveAllReferencesL(const CCmPluginBaseEng &)
voidRemoveAllReferencesWoTransL(const CCmPluginBaseEng &)
voidRemoveCMFromPoolL(CCmPluginBaseEng *)
voidRemoveCMFromPoolL(CCmPluginBase *)
voidRemoveConnectionMethodL(CCmDestinationImpl &, CCmPluginBase &)
IMPORT_C voidRemoveDestFromPool(CCmDestinationImpl *)
voidRemoveDestFromPool(CCmDestinationData *)
voidRemoveResourceFile(TFileName &)
voidReplaceGenConnSettingsL(const TCmGenConnSettings &)
voidRollbackTransaction()
CCDSnapRecord *SNAPRecordL(TUint32)
CommsDat::TMDBElementId SeamlessnessTableId()
CommsDat::CMDBSession &Session()
voidStartCommsDatNotifierL()
voidSupportedBearersL(RArray< TUint32 > &)
CGulIcon *UncategorizedIconL()
voidUpdateBearerPriorityArrayL(const RArray< TBearerPriority > &)
IMPORT_C voidWatcherRegisterL(MCmCommsDatWatcher *)
IMPORT_C voidWatcherUnRegister()
IMPORT_C voidWrapCmManager(RCmManagerExt &)
voidWriteDefConnL(const TCmDefConnValue &)
voidWriteDefConnWoTransL(const TCmDefConnValue &)
voidWriteGenConnSettingsL(const TCmGenConnSettings &)
Protected Member Functions
CCmManagerImpl()
voidConstructL()
Private Member Functions
voidBuildPluginArrayL()
voidCheckAvailableSpaceL()
voidCheckTablesL()
voidCombineArraysForPriorityOrderL(RPointerArray< CCmPluginBase > &, RPointerArray< CCmPluginBase > &)
voidCopyBearerPriorityArrayL(RArray< TBearerPriority > &)
voidCreateBearerPriorityArrayL()
CCmPluginBaseEng *DoFindConnMethL(TUint32, CCmDestinationImpl *)
CCmPluginBase *DoFindConnMethodL(TUint32, CCmDestinationImpl *)
TInt FindResourceFile(TFileName &)
TUint32 GetSnapTableIdL()
TBool IsBearerSpecific(TUint32)
TBool IsEasyWLanL(CommsDat::CCDIAPRecord *)
TUint32 ParentDestinationL(TUint32)
voidReplaceDefConnRecordL(const TCmDefConnValue)
voidResetAndDestroy(TAny *)
voidSetGenConnSettingsToDefault(TCmGenConnSettings &)
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()
Private Attributes
RArray< TBearerPriority > *iBearerPriorityArray
CommsDat::TMDBElementId iBearerTypePriorizationTableId
CCmCommsDatNotifier *iCommsDatIapNotifier
CCmCommsDatNotifier *iCommsDatSnapNotifier
TBool iCreateTables
TBool iDefConnSupported
CommsDat::TMDBElementId iDefConnTableId
TUint iDestinationCount
CommsDat::TMDBElementId iDestinationTableId
RFs iFs
TBool iHelp
CommsDat::TMDBElementId iIconTableId
TBool iIsFeatureManagerInitialised
CCMObjectPool *iObjectPool
CCmConnectionMethodInfo *iPluginImpl
CArrayPtrFlat< const CCmPluginBaseEng > *iPlugins
CArrayPtrFlat< TResourceFiles > *iResourceFiles
CommsDat::TMDBElementId iSeamlessnessTableId
CCmTransactionHandler *iTrans
TBool iWLan

Constructor & Destructor Documentation

CCmManagerImpl()

CCmManagerImpl()[protected]

First stage constructor

~CCmManagerImpl()

~CCmManagerImpl()[virtual]

Destructor

Member Functions Documentation

AddResourceFileL(TFileName &)

voidAddResourceFileL(TFileName &aName)

add resource file

Parameters

TFileName & aName

AllDestinationsL(RArray< TUint32 > &)

IMPORT_C voidAllDestinationsL(RArray< TUint32 > &aDestArray)

Return an array of all destinations

Since
3.2

Parameters

RArray< TUint32 > & aDestArrayon return it returns an array of destination ids

AllIapsL()

CommsDat::CMDBRecordSet< CommsDat::CCDIAPRecord > *AllIapsL()

Return an array of all IAP records.

AllSNAPRecordsL(TUint32)

CommsDat::CMDBRecordSet< CCDDataMobilitySelectionPolicyRecord > *AllSNAPRecordsL(TUint32aSnapElementId)

Return all the SNAP record. Filtering can be made on passed SNAP elemented id.

Parameters

TUint32 aSnapElementId

AllocReadL(TInt)

HBufC *AllocReadL(TIntaResourceId)const

Read string from resource

Since
3.2

Parameters

TInt aResourceIdresource id of the localized string

AppendCmListFromUidsL(RArray< TUint32 > &, RPointerArray< CCmPluginBase > &)

voidAppendCmListFromUidsL(RArray< TUint32 > &cmIdList,
RPointerArray< CCmPluginBase > &aCMArray
)

Returns a list of references to the connection methods in the supported uid list .

Since
3.2

Parameters

RArray< TUint32 > & cmIdList
RPointerArray< CCmPluginBase > & aCMArray

AppendCmListL(TUint32, RPointerArray< CCmPluginBase > &)

voidAppendCmListL(TUint32aDestintaionId,
RPointerArray< CCmPluginBase > &aCmArray
)

Returns a list of references to the connection methods in the destination.

Since
3.2

Parameters

TUint32 aDestintaionId
RPointerArray< CCmPluginBase > & aCmArray

AppendCmListLC(TUint32, RPointerArray< CCmPluginBase > &)

voidAppendCmListLC(TUint32aDestintaionId,
RPointerArray< CCmPluginBase > &aCmArray
)

Returns a list of references to the connection methods in the destination.

Since
3.2

Parameters

TUint32 aDestintaionId
RPointerArray< CCmPluginBase > & aCmArray

AppendUncatCmListL(RPointerArray< CCmPluginBase > &, TBool, TBool, TBool, TBool)

voidAppendUncatCmListL(RPointerArray< CCmPluginBase > &aCmArray,
TBoolaCheckBearerType = ETrue,
TBoolaLegacyOnly = ETrue,
TBoolaEasyWlan = EFalse,
TBoolaSortByBearer = EFalse
)

Get a list of uncategorised connection methods in an RPointerArray contains the parameters passed to ConnectionMethodL

Since
3.2

Parameters

RPointerArray< CCmPluginBase > & aCmArraythe returned list of uncategorised connection methods
TBool aCheckBearerType = ETruesee ConnectionMethodL
TBool aLegacyOnly = ETruesee ConnectionMethodL
TBool aEasyWlan = EFalsesee ConnectionMethodL
TBool aSortByBearer = EFalsesee ConnectionMethodL

AppendUncatCmListLC(RPointerArray< CCmPluginBase > &, TBool, TBool, TBool, TBool)

voidAppendUncatCmListLC(RPointerArray< CCmPluginBase > &aCmArray,
TBoolaCheckBearerType = ETrue,
TBoolaLegacyOnly = ETrue,
TBoolaEasyWlan = EFalse,
TBoolaSortByBearer = EFalse
)

Get a list of uncategorised connection methods in an RPointerArray contains the parameters passed to ConnectionMethodL LC version

Since
3.2

Parameters

RPointerArray< CCmPluginBase > & aCmArraythe returned list of uncategorised connection methods
TBool aCheckBearerType = ETruesee ConnectionMethodL
TBool aLegacyOnly = ETruesee ConnectionMethodL
TBool aEasyWlan = EFalsesee ConnectionMethodL
TBool aSortByBearer = EFalsesee ConnectionMethodL

BearerPriorityArrayL(RArray< TBearerPriority > &)

voidBearerPriorityArrayL(RArray< TBearerPriority > &aArray)const

Return the copy of the bearer priority array. Ownership is passed.

Since
3.2

Parameters

RArray< TBearerPriority > & aArraybearer priority array

BearerTypeFromCmIdL(TUint32)

TUint32 BearerTypeFromCmIdL(TUint32aCmId)

Return the bearer type of connection method.

Since
3.2

Parameters

TUint32 aCmId

BearerTypeFromIapRecordL(CommsDat::CCDIAPRecord *)

TUint32 BearerTypeFromIapRecordL(CommsDat::CCDIAPRecord *aIapRecord)const

Return the bearer type of connection method.

Since
3.2

Parameters

CommsDat::CCDIAPRecord * aIapRecordCommsDat record of the connection method

BearerTypePriorizationTableId()

CommsDat::TMDBElementId BearerTypePriorizationTableId()const [inline]

Return Global Bearer Type Priorization Table ID

Since
3.2

BuildPluginArrayL()

voidBuildPluginArrayL()[private]

Build an array of all bearer specific plugins.

Since
3.2

CheckAvailableSpaceL()

voidCheckAvailableSpaceL()[private]

Leaves if no sufficient is available for creation operations

Since
9.2

CheckTablesL()

voidCheckTablesL()[private]

Check the existence of tables we need. Creates if it is not exist, get the table id otherwise

CleanupGlobalPriorityArray(RArray< TBearerPriority > &)

voidCleanupGlobalPriorityArray(RArray< TBearerPriority > &aArray)const

Clean up passed global bearer priority array. Delete the elements and calls Reset and Close on the array.

Since
3.2

Parameters

RArray< TBearerPriority > & aArrayarray to be cleaned up

CleanupResetAndDestroyPushL(TArrayToCleanup &)

voidCleanupResetAndDestroyPushL(TArrayToCleanup &aPtr)[static, inline]

Parameters

TArrayToCleanup & aPtr

CombineArraysForPriorityOrderL(RPointerArray< CCmPluginBase > &, RPointerArray< CCmPluginBase > &)

voidCombineArraysForPriorityOrderL(RPointerArray< CCmPluginBase > &aCmArray,
RPointerArray< CCmPluginBase > &aCmLinkedArray
)[private]

Combines two lists of CCmPluginBase pointers into one, according to default priority order

Since
3.2

Parameters

RPointerArray< CCmPluginBase > & aCmArrayfirst list of connection methods to combine
RPointerArray< CCmPluginBase > & aCmLinkedArraysecond list of connection methods to combine

CommitTransactionL(TInt)

voidCommitTransactionL(TIntaError)

Parameters

TInt aError

ConnMethodUpdatedL(CCmPluginBaseEng *)

voidConnMethodUpdatedL(CCmPluginBaseEng *aCM)[inline]

The cm have been updated if it was a new cm than the zero id must be changed to the new one

Parameters

CCmPluginBaseEng * aCM- the cm to change

ConnectionMethodL(TUint32)

IMPORT_C CCmPluginBaseEng *ConnectionMethodL(TUint32aCmId)

Obsolete

Parameters

TUint32 aCmId

ConnectionMethodL(RArray< TUint32 > &, TBool, TBool, TBool, TBool)

IMPORT_C voidConnectionMethodL(RArray< TUint32 > &aCMArray,
TBoolaCheckBearerType = ETrue,
TBoolaLegacyOnly = ETrue,
TBoolaEasyWlan = EFalse,
TBoolaSortByBearer = EFalse
)

Return the list of connection methods do not belongs to any destination

Since
3.2

Parameters

RArray< TUint32 > & aCMArrayon return it is the array of IAP ids.
TBool aCheckBearerType = ETrueIf ETrue only connection methods with supported bearer types are returned
TBool aLegacyOnly = ETruewhen set to ETrue only Legacy IAP ids will be returned
TBool aEasyWlan = EFalsewhen set to ETrue EasyWlan id is returned, too
TBool aSortByBearer = EFalseif ETrue the CMs will be ordered according to global bearer priority

ConstructL()

voidConstructL()[protected]

Epoc constructor

CopyBearerPriorityArrayL(RArray< TBearerPriority > &)

voidCopyBearerPriorityArrayL(RArray< TBearerPriority > &aArray)const [private]

Return the copy of the bearer priority array. Ownership is passed.

Since
3.2

Parameters

RArray< TBearerPriority > & aArraybearer priority array

CopyConnectionMethodL(CCmDestinationImpl &, CCmPluginBase &)

TInt CopyConnectionMethodL(CCmDestinationImpl &aTargetDestination,
CCmPluginBase &aConnectionMethod
)

Copie a connection method belonging to one destination to another. The connection method becomes shared.

Since
3.2

Parameters

CCmDestinationImpl & aTargetDestinationtarget destination
CCmPluginBase & aConnectionMethod

CreateBearerPriorityArrayL()

voidCreateBearerPriorityArrayL()[private]

Creates bearer priority array

Since
3.2

CreateConnectionMethodL(TUint32, CCmDestinationImpl *)

CCmPluginBase *CreateConnectionMethodL(TUint32aBearerType,
CCmDestinationImpl *aParentDestination = NULL
)

Creates a connection method does not belong to any destination

Since
3.2

Parameters

TUint32 aBearerType
CCmDestinationImpl * aParentDestination = NULL- the destination which holds the connection method, NULL means there is no parent

CreateConnectionMethodL(TUint32, TUint32, CCmDestinationImpl *)

CCmPluginBase *CreateConnectionMethodL(TUint32aBearerType,
TUint32aConnMethodId,
CCmDestinationImpl *aParentDestination = NULL
)

Creates a connection method does not belong to any destination

Since
3.2

Parameters

TUint32 aBearerType
TUint32 aConnMethodIdPredefined id for the connection method
CCmDestinationImpl * aParentDestination = NULL- the destination which holds the connection method, NULL means there is no parent

CreateConnectionMethodL(CCmPluginBaseEng *)

CCmPluginBase *CreateConnectionMethodL(CCmPluginBaseEng *pluginBaseEng)

Creates a connection method does not belong to any destination

Since
3.2

Parameters

CCmPluginBaseEng * pluginBaseEng- Object to put in the pool

CreateDestinationL(const TDesC &)

CCmDestinationImpl *CreateDestinationL(const TDesC &aName)

Creates a Destination by the given name

Since
3.2

Parameters

const TDesC & aNamethe name of the new destination

CreateDestinationL(const TDesC &, TUint32)

CCmDestinationImpl *CreateDestinationL(const TDesC &aName,
TUint32aDestId
)

Creates a Destination by the given name

Since
3.2

Parameters

const TDesC & aNamethe name of the new destination
TUint32 aDestIdPredefined id for the destination

CreateFlatCMListL(TUint32, RPointerArray< CCmPluginBase > &)

IMPORT_C voidCreateFlatCMListL(TUint32aDestination,
RPointerArray< CCmPluginBase > &aCmArray
)

Create a 'flat list' of connection methods of a given destination ( connection methods inside embedded destinations which are in the destination, are also present in the list ) and order them according to the bearer type prioritisation rules and return the result in aCmArray.

Since
3.2

Parameters

TUint32 aDestinationdestination that contains the connection methods for uncategorised connection methods, use KDestItemUncategorized
RPointerArray< CCmPluginBase > & aCmArrayarray to return the result

CreateFlatCMListLC(TUint32, RPointerArray< CCmPluginBase > &)

IMPORT_C voidCreateFlatCMListLC(TUint32aDestination,
RPointerArray< CCmPluginBase > &aCmArray
)

Create a 'flat list' of connection methods of a given destination ( connection methods inside embedded destinations which are in the destination, are also present in the list ) and order them according to the bearer type prioritisation rules and return the result in aCmArray. LC version

Since
3.2

Parameters

TUint32 aDestinationdestination that contains the connection methods for uncategorised connection methods, use KDestItemUncategorized
RPointerArray< CCmPluginBase > & aCmArrayarray to return the result

CreateSNAPRecordL(TUint32)

CCDSnapRecord *CreateSNAPRecordL(TUint32aRecordId)const

Parameters

TUint32 aRecordId

DestinationCountL()

TUint DestinationCountL()[inline]

Return the number of destinations

Since
3.2

DestinationL(TUint32)

IMPORT_C CCmDestinationImpl *DestinationL(TUint32aId)

Return the destination implementation to which a specified connection method belongs, search is by destination ID ( the id which is made by RECORD_FROM_ELEMENT_ID from the elementID) If the destination implementation is allready in the object pool returns it. If it is not in the pool than puts it in the pool using the GetDestinationL funciton.

Since
3.2

Parameters

TUint32 aId

DestinationStillExistedL(CCmDestinationImpl *)

IMPORT_C TBoolDestinationStillExistedL(CCmDestinationImpl *aDest)

Parameters

CCmDestinationImpl * aDest

DestinationTableId()

CommsDat::TMDBElementId DestinationTableId()const [inline]

Return the destination network table ID

Since
3.2

DestinationUpdated(CCmDestinationImpl *)

voidDestinationUpdated(CCmDestinationImpl *aDestination)

The destination have been updated if it was a new destination than the zero id must be changed to the new one

Parameters

CCmDestinationImpl * aDestination- the destination to change

DoCreateConnectionMethodL(TUint32, TCmPluginInitParam &)

CCmPluginBaseEng *DoCreateConnectionMethodL(TUint32aBearerType,
TCmPluginInitParam &aParams
)

Creates a connection method does not belong to any destination

Since
3.2

Parameters

TUint32 aBearerType- implementation uid of the connection method
TCmPluginInitParam & aParams- the destination which holds the connection method, NULL means there is no parent

DoCreateConnectionMethodL(TUint32, TCmPluginInitParam &, TUint32)

CCmPluginBaseEng *DoCreateConnectionMethodL(TUint32aBearerType,
TCmPluginInitParam &aParams,
TUint32aConnMethodId
)

Creates a connection method does not belong to any destination

Since
3.2

Parameters

TUint32 aBearerTypeImplementation uid of the connection method
TCmPluginInitParam & aParamsInitialization params for the plugin.
TUint32 aConnMethodIdPredefined id for the connection method.

DoFindConnMethL(TUint32, CCmDestinationImpl *)

CCmPluginBaseEng *DoFindConnMethL(TUint32aCmId,
CCmDestinationImpl *aParentDest
)[private]

Find and create a connection method.

Since
3.2

Parameters

TUint32 aCmIdid of the connection method parent destination of the connection method. Can be NULL.
CCmDestinationImpl * aParentDest

DoFindConnMethodL(TUint32, CCmDestinationImpl *)

CCmPluginBase *DoFindConnMethodL(TUint32aCmId,
CCmDestinationImpl *aParentDest
)[private]

Find and create a connection method.

Since
3.2

Parameters

TUint32 aCmIdid of the connection method parent destination of the connection method. Can be NULL.
CCmDestinationImpl * aParentDest

EasyWlanIdL()

IMPORT_C TUint32EasyWlanIdL()

Returns the id of the EasyWlan connection method.

Since
S60 3.2

FeatureSupported(TInt)

TBool FeatureSupported(TIntaFeature)[static]

Calls FeatureManager::FeatureSupported directly.

Since
3.2
Since
3.2

Parameters

TInt aFeaturefeature ID

FilterOutVirtualsL(RPointerArray< CCmPluginBase > &)

IMPORT_C voidFilterOutVirtualsL(RPointerArray< CCmPluginBase > &aCmDataArray)

Remove the virtual methods from the passed list

Since
3.2

Parameters

RPointerArray< CCmPluginBase > & aCmDataArrayarray that contains the connection methods to be filtered

FindResourceFile(TFileName &)

TInt FindResourceFile(TFileName &aName)const [private]

Look for the given resource file in the resource file array and return the index value of it.

Since
3.2

Parameters

TFileName & aNameresource file name, not localized

GetBearerInfoBoolL(TUint32, TUint32)

IMPORT_C TBoolGetBearerInfoBoolL(TUint32aBearerType,
TUint32aAttribute
)const

Parameters

TUint32 aBearerType
TUint32 aAttribute

GetBearerInfoIntL(TUint32, TUint32)

IMPORT_C TUint32GetBearerInfoIntL(TUint32aBearerType,
TUint32aAttribute
)const

GetBearerInfoXXX function can be used to query bearer informantion that doesn't belong to a specific connection method, such as ECmCoverage or ECmDefaultPriority etc. HBuf ownership is passed to the caller

Parameters

TUint32 aBearerType
TUint32 aAttribute

GetBearerInfoString8L(TUint32, TUint32)

IMPORT_C HBufC8 *GetBearerInfoString8L(TUint32aBearerType,
TUint32aAttribute
)const

Parameters

TUint32 aBearerType
TUint32 aAttribute

GetBearerInfoStringL(TUint32, TUint32)

IMPORT_C HBufC *GetBearerInfoStringL(TUint32aBearerType,
TUint32aAttribute
)const

Parameters

TUint32 aBearerType
TUint32 aAttribute

GetConnectionMethodInfoBoolL(TUint32, TUint32)

IMPORT_C TBoolGetConnectionMethodInfoBoolL(TUint32aCmId,
TUint32aAttribute
)const

Parameters

TUint32 aCmId
TUint32 aAttribute

GetConnectionMethodInfoIntL(TUint32, TUint32)

IMPORT_C TUint32GetConnectionMethodInfoIntL(TUint32aCmId,
TUint32aAttribute
)const

GetConnectionMethodInfoXXX function can be used to query any, non-bearer specific information about a given connection method. This can be e.g. ECmBearerType, ECmName, ECmStartPage etc. HBuf ownership is passed to the caller

Parameters

TUint32 aCmId
TUint32 aAttribute

GetConnectionMethodInfoString8L(TUint32, TUint32)

IMPORT_C HBufC8 *GetConnectionMethodInfoString8L(TUint32aCmId,
TUint32aAttribute
)const

Parameters

TUint32 aCmId
TUint32 aAttribute

GetConnectionMethodInfoStringL(TUint32, TUint32)

IMPORT_C HBufC *GetConnectionMethodInfoStringL(TUint32aCmId,
TUint32aAttribute
)const

Parameters

TUint32 aCmId
TUint32 aAttribute

GetConnectionMethodL(TUint32)

IMPORT_C CCmPluginBase *GetConnectionMethodL(TUint32aCmId)

Return the connection method queried by it's ID

Since
3.2

Parameters

TUint32 aCmId

GetInternetDestinationIdL()

TUint32 GetInternetDestinationIdL()

Returns internet destination id. If internety destination is not found then -1 is returned.

Since
5.0

GetSnapTableIdL()

TUint32 GetSnapTableIdL()[private]

Get Snap Table ID from CommsDat

GlobalBearerPriority(TBool, const TDesC &)

TInt GlobalBearerPriority(TBoolaUiPriority,
const TDesC &aServiceType
)const

Search service type in the global priority table and Return its priority.

Since
3.2

Parameters

TBool aUiPriorityETrue if UI priority is requested
const TDesC & aServiceTypeserched service type

HandleDefConnDeletedL(TCmDefConnValue &)

voidHandleDefConnDeletedL(TCmDefConnValue &aDCSetting)

Tells the CmManager that the given default connection is deleted, and it sets Default Connection to Always Ask (default value).

Since
S60 3.2

Parameters

TCmDefConnValue & aDCSetting

HasCapabilityL(TCapability)

voidHasCapabilityL(TCapabilityaCapability)[static]

Checks if the current environment has the given capability. Leaves with KErrPermissionDenied if capability is missing.

Since
3.2

Parameters

TCapability aCapabilitycapability to be checked

HasUnprotectedDestinationsL()

TBool HasUnprotectedDestinationsL()

Indicates is at least one non-"level 1 protected" destinations

Since
S60 3.2

IapStillExistedL(const CCmPluginBaseEng &)

IMPORT_C TBoolIapStillExistedL(const CCmPluginBaseEng &aPlugin)

Parameters

const CCmPluginBaseEng & aPlugin

IconTableId()

CommsDat::TMDBElementId IconTableId()const [inline]

Return the Destination network - Icon table ID

Since
3.2

InsertConnectionMethodL(CCmPluginBaseEng *)

voidInsertConnectionMethodL(CCmPluginBaseEng *pluginBaseEng)

Insert a connection method does not belong to any destination API doesn't use CCmPluginBase. So, nothing returns

Parameters

CCmPluginBaseEng * pluginBaseEng- Object to put in the pool

IsBearerSpecific(TUint32)

TBool IsBearerSpecific(TUint32aAttribute)const [private]

Check if the attribute is bearerspecific

Since
9.2

Parameters

TUint32 aAttributeattribute-id to be checked

IsDefConnSupported()

TBool IsDefConnSupported()

Returs ETrue if Default Connection feature is supported.

Since
S60 3.2

IsEasyWLanL(CommsDat::CCDIAPRecord *)

TBool IsEasyWLanL(CommsDat::CCDIAPRecord *aIapRecord)const [private]

Return if the IAP record points to an EasyWLan service record.

Since
3.2

Parameters

CommsDat::CCDIAPRecord * aIapRecordIAP record to be checked

IsHelpOn()

TBool IsHelpOn()const [inline]

Return true if help is on in the FeatureManager

Since
3.2

IsIapLinkedL(const CCmPluginBaseEng &)

TBool IsIapLinkedL(const CCmPluginBaseEng &aPlugin)

Walks through every connection methods to find out if the passed connection method is linked to any of them.

Parameters

const CCmPluginBaseEng & aPluginconnection method to be checked

IsIapStillInDestL(CCmDestinationImpl *, const CCmPluginBaseEng &)

IMPORT_C TBoolIsIapStillInDestL(CCmDestinationImpl *aDest,
const CCmPluginBaseEng &aPlugin
)

Parameters

CCmDestinationImpl * aDest
const CCmPluginBaseEng & aPlugin

IsMemoryLow()

TBool IsMemoryLow()

Check if memory low so that process can continue

MoveConnectionMethodL(CCmDestinationImpl &, CCmDestinationImpl &, CCmPluginBase &)

TInt MoveConnectionMethodL(CCmDestinationImpl &aSourceDestination,
CCmDestinationImpl &aTargetDestination,
CCmPluginBase &aConnectionMethod
)

Move a connection method belonging to one destination to another. The connection method is removed from the source destination

Since
3.2

Parameters

CCmDestinationImpl & aSourceDestinationsource destination
CCmDestinationImpl & aTargetDestinationtarget destination
CCmPluginBase & aConnectionMethodconnection method to be moved

NewL(TBool)

CCmManagerImpl *NewL(TBoolaCreateTables = ETrue)[static]

Epoc constructor

Parameters

TBool aCreateTables = ETrue

NumOfConnMethodReferencesL(TUint32, CommsDat::CMDBRecordSet< CCDDataMobilitySelectionPolicyRecord > *)

TUint32 NumOfConnMethodReferencesL(TUint32aId,
CommsDat::CMDBRecordSet< CCDDataMobilitySelectionPolicyRecord > *aRecSet = NULL
)

Return the number of references to the given connection method id in the DN_IAP table

Since
3.2

Parameters

TUint32 aIdID of the connection method
CommsDat::CMDBRecordSet< CCDDataMobilitySelectionPolicyRecord > * aRecSet = NULLentire record set of the detination table

OpenTransactionLC(TBool)

voidOpenTransactionLC(TBoolaSetAttribs = ETrue)

Parameters

TBool aSetAttribs = ETrue

ParentDestinationL(TUint32)

TUint32 ParentDestinationL(TUint32aCmId)[private]

Gets the destination for the given element ID

Since
3.2

Parameters

TUint32 aCmIdThe element ID of the destination

ReadDefConnL(TCmDefConnValue &)

voidReadDefConnL(TCmDefConnValue &aDCSetting)

Returns the default connection method/SNAP.

Since
S60 3.2

Parameters

TCmDefConnValue & aDCSetting

ReadDefConnWoTransL(TCmDefConnValue &)

voidReadDefConnWoTransL(TCmDefConnValue &aDCSetting)

Returns the default connection method/SNAP.

Since
S60 3.2

Parameters

TCmDefConnValue & aDCSetting

ReadGenConnSettingsL(TCmGenConnSettings &)

voidReadGenConnSettingsL(TCmGenConnSettings &aGenConnSettings)

Returns the general connection settings.

Parameters

TCmGenConnSettings & aGenConnSettings

RemoveAllReferencesL(const CCmPluginBaseEng &)

voidRemoveAllReferencesL(const CCmPluginBaseEng &aPlugin)

Removes all references to this CM from SNAP table.

Parameters

const CCmPluginBaseEng & aPlugin

RemoveAllReferencesWoTransL(const CCmPluginBaseEng &)

voidRemoveAllReferencesWoTransL(const CCmPluginBaseEng &aPlugin)

Removes all references to this CM from SNAP table without transaction to commsdat.

Parameters

const CCmPluginBaseEng & aPlugin

RemoveCMFromPoolL(CCmPluginBaseEng *)

voidRemoveCMFromPoolL(CCmPluginBaseEng *aCM)

Removes the cm from the object pool

Since
3.2

Parameters

CCmPluginBaseEng * aCM

RemoveCMFromPoolL(CCmPluginBase *)

voidRemoveCMFromPoolL(CCmPluginBase *aCM)

Removes the cm from the object pool

Since
3.2

Parameters

CCmPluginBase * aCM

RemoveConnectionMethodL(CCmDestinationImpl &, CCmPluginBase &)

voidRemoveConnectionMethodL(CCmDestinationImpl &aDestination,
CCmPluginBase &aConnectionMethod
)

Remove connection method from the destination

Since
3.2

Parameters

CCmDestinationImpl & aDestinationdestination the connection method is attached to
CCmPluginBase & aConnectionMethodconnection method to be removed

RemoveDestFromPool(CCmDestinationImpl *)

IMPORT_C voidRemoveDestFromPool(CCmDestinationImpl *aDestination)

Removes the destination implementation from the object pool

Since
3.2

Parameters

CCmDestinationImpl * aDestination

RemoveDestFromPool(CCmDestinationData *)

voidRemoveDestFromPool(CCmDestinationData *aDestination)

Removes the destination implementation from the object pool

Since
3.2

Parameters

CCmDestinationData * aDestination

RemoveResourceFile(TFileName &)

voidRemoveResourceFile(TFileName &aName)

Remove resource file from array only if the reference count is zero.

Parameters

TFileName & aNamename of the resource file to be removed

ReplaceDefConnRecordL(const TCmDefConnValue)

voidReplaceDefConnRecordL(const TCmDefConnValueaDCSetting)[private]

Replaces the Default Connection record with the new one.

Since
3.2

Parameters

const TCmDefConnValue aDCSettingDefault Connection value to set

ReplaceGenConnSettingsL(const TCmGenConnSettings &)

voidReplaceGenConnSettingsL(const TCmGenConnSettings &aGenConnSettings)

Replaces the general connection settings.

Parameters

const TCmGenConnSettings & aGenConnSettings

ResetAndDestroy(TAny *)

voidResetAndDestroy(TAny *aPtr)[private, static, inline]

A cleanup function for TCleanupItem construction for cleanup of pointers in an RPointerArray usage: CleanupStack::PushL( TCleanupItem( CCmManagerImpl::DestroyRPointerArray<ItemTypeName>, (void*)(PointerToArray)) )

Parameters

TAny * aPtr

RollbackTransaction()

voidRollbackTransaction()

SNAPRecordL(TUint32)

CCDSnapRecord *SNAPRecordL(TUint32aRecordId)const

Create a SNAP record object and load it if record id not 0.

Parameters

TUint32 aRecordIdrecord Id. 0 means create only

SeamlessnessTableId()

CommsDat::TMDBElementId SeamlessnessTableId()const [inline]

Return the Seamlessness table ID

Since
3.2

Session()

CommsDat::CMDBSession &Session()const

SetGenConnSettingsToDefault(TCmGenConnSettings &)

voidSetGenConnSettingsToDefault(TCmGenConnSettings &aGenConnSettings)[private]

Returns the default general connection values.

Since
9.2

Parameters

TCmGenConnSettings & aGenConnSettingsThe general connection settings structure

StartCommsDatNotifierL()

voidStartCommsDatNotifierL()

SupportedBearersL(RArray< TUint32 > &)

voidSupportedBearersL(RArray< TUint32 > &aArray)const

Parameters

RArray< TUint32 > & aArray

UncategorizedIconL()

CGulIcon *UncategorizedIconL()const

UpdateBearerPriorityArrayL(const RArray< TBearerPriority > &)

voidUpdateBearerPriorityArrayL(const RArray< TBearerPriority > &aArray)

Parameters

const RArray< TBearerPriority > & aArray

WatcherRegisterL(MCmCommsDatWatcher *)

IMPORT_C voidWatcherRegisterL(MCmCommsDatWatcher *aWatcher)

Register aWatcher as watcher for change of CommsDat

Parameters

MCmCommsDatWatcher * aWatcher

WatcherUnRegister()

IMPORT_C voidWatcherUnRegister()

UnRegister current watcher

WrapCmManager(RCmManagerExt &)

IMPORT_C voidWrapCmManager(RCmManagerExt &aCmManagerExt)

Wraps this implementation to an RCmManagerExt. OWNERSHIP IS NOT PASSED , SO NEVER CLOSE aCmManagerExt!!!

Since
3.2

Parameters

RCmManagerExt & aCmManagerExtclass to wrap implementation into

WriteDefConnL(const TCmDefConnValue &)

voidWriteDefConnL(const TCmDefConnValue &aDCSetting)

Stores the default connection method/SNAP.

Since
S60 3.2

Parameters

const TCmDefConnValue & aDCSetting

WriteDefConnWoTransL(const TCmDefConnValue &)

voidWriteDefConnWoTransL(const TCmDefConnValue &aDCSetting)

Stores the default connection method/SNAP.

Since
S60 3.2

Parameters

const TCmDefConnValue & aDCSetting

WriteGenConnSettingsL(const TCmGenConnSettings &)

voidWriteGenConnSettingsL(const TCmGenConnSettings &aGenConnSettings)

Writes the general connection settings.

Parameters

const TCmGenConnSettings & aGenConnSettings

Member Data Documentation

RArray< TBearerPriority > * iBearerPriorityArray

RArray< TBearerPriority > *iBearerPriorityArray[private]

CommsDat::TMDBElementId iBearerTypePriorizationTableId

CommsDat::TMDBElementId iBearerTypePriorizationTableId[private]

CCmCommsDatNotifier * iCommsDatIapNotifier

CCmCommsDatNotifier *iCommsDatIapNotifier[private]

CCmCommsDatNotifier * iCommsDatSnapNotifier

CCmCommsDatNotifier *iCommsDatSnapNotifier[private]

TBool iCreateTables

TBool iCreateTables[private]

TBool iDefConnSupported

TBool iDefConnSupported[private]

CommsDat::TMDBElementId iDefConnTableId

CommsDat::TMDBElementId iDefConnTableId[private]

TUint iDestinationCount

TUint iDestinationCount[private]

CommsDat::TMDBElementId iDestinationTableId

CommsDat::TMDBElementId iDestinationTableId[private]

RFs iFs

RFs iFs[private]

TBool iHelp

TBool iHelp[private]

CommsDat::TMDBElementId iIconTableId

CommsDat::TMDBElementId iIconTableId[private]

TBool iIsFeatureManagerInitialised

TBool iIsFeatureManagerInitialised[private]

CCMObjectPool * iObjectPool

CCMObjectPool *iObjectPool[private]

CCmConnectionMethodInfo * iPluginImpl

CCmConnectionMethodInfo *iPluginImpl[private]

CArrayPtrFlat< const CCmPluginBaseEng > * iPlugins

CArrayPtrFlat< const CCmPluginBaseEng > *iPlugins[private]

CArrayPtrFlat< TResourceFiles > * iResourceFiles

CArrayPtrFlat< TResourceFiles > *iResourceFiles[private]

CommsDat::TMDBElementId iSeamlessnessTableId

CommsDat::TMDBElementId iSeamlessnessTableId[private]

CCmTransactionHandler * iTrans

CCmTransactionHandler *iTrans[private]

TBool iWLan

TBool iWLan[private]