CCmManagerImpl Class Reference

class CCmManagerImpl : public CBase

Implementation of connection method manager

cmmanager.lib
Since
S60 v3.2

Inherits from

Public Member Functions
~CCmManagerImpl ()
void AddResourceFileL ( TFileName &)
IMPORT_C void AllDestinationsL ( RArray < TUint32 > &)
CommsDat::CMDBRecordSet < CommsDat::CCDIAPRecord > * AllIapsL ()
CommsDat::CMDBRecordSet < CCDDataMobilitySelectionPolicyRecord > * AllSNAPRecordsL ( TUint32 )
HBufC * AllocReadL ( TInt )
void AppendCmListFromUidsL ( RArray < TUint32 > &, RPointerArray < CCmPluginBase > &)
void AppendCmListL ( TUint32 , RPointerArray < CCmPluginBase > &)
void AppendCmListLC ( TUint32 , RPointerArray < CCmPluginBase > &)
void AppendUncatCmListL ( RPointerArray < CCmPluginBase > &, TBool , TBool , TBool , TBool )
void AppendUncatCmListLC ( RPointerArray < CCmPluginBase > &, TBool , TBool , TBool , TBool )
void BearerPriorityArrayL ( RArray < TBearerPriority > &)
TUint32 BearerTypeFromCmIdL ( TUint32 )
TUint32 BearerTypeFromIapRecordL ( CommsDat::CCDIAPRecord *)
CommsDat::TMDBElementId BearerTypePriorizationTableId ()
void CleanupGlobalPriorityArray ( RArray < TBearerPriority > &)
void CleanupResetAndDestroyPushL (TArrayToCleanup &)
void CommitTransactionL ( TInt )
void ConnMethodUpdatedL ( CCmPluginBaseEng *)
IMPORT_C CCmPluginBaseEng * ConnectionMethodL ( TUint32 )
IMPORT_C void ConnectionMethodL ( 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 void CreateFlatCMListL ( TUint32 , RPointerArray < CCmPluginBase > &)
IMPORT_C void CreateFlatCMListLC ( TUint32 , RPointerArray < CCmPluginBase > &)
CCDSnapRecord * CreateSNAPRecordL ( TUint32 )
TUint DestinationCountL ()
IMPORT_C CCmDestinationImpl * DestinationL ( TUint32 )
IMPORT_C TBool DestinationStillExistedL ( CCmDestinationImpl *)
CommsDat::TMDBElementId DestinationTableId ()
void DestinationUpdated ( CCmDestinationImpl *)
CCmPluginBaseEng * DoCreateConnectionMethodL ( TUint32 , TCmPluginInitParam &)
CCmPluginBaseEng * DoCreateConnectionMethodL ( TUint32 , TCmPluginInitParam &, TUint32 )
IMPORT_C TUint32 EasyWlanIdL ()
TBool FeatureSupported ( TInt )
IMPORT_C void FilterOutVirtualsL ( RPointerArray < CCmPluginBase > &)
IMPORT_C TBool GetBearerInfoBoolL ( TUint32 , TUint32 )
IMPORT_C TUint32 GetBearerInfoIntL ( TUint32 , TUint32 )
IMPORT_C HBufC8 * GetBearerInfoString8L ( TUint32 , TUint32 )
IMPORT_C HBufC * GetBearerInfoStringL ( TUint32 , TUint32 )
IMPORT_C TBool GetConnectionMethodInfoBoolL ( TUint32 , TUint32 )
IMPORT_C TUint32 GetConnectionMethodInfoIntL ( 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 &)
void HandleDefConnDeletedL ( TCmDefConnValue &)
void HasCapabilityL ( TCapability )
TBool HasUnprotectedDestinationsL ()
IMPORT_C TBool IapStillExistedL (const CCmPluginBaseEng &)
CommsDat::TMDBElementId IconTableId ()
void InsertConnectionMethodL ( CCmPluginBaseEng *)
TBool IsDefConnSupported ()
TBool IsHelpOn ()
TBool IsIapLinkedL (const CCmPluginBaseEng &)
IMPORT_C TBool IsIapStillInDestL ( CCmDestinationImpl *, const CCmPluginBaseEng &)
TBool IsMemoryLow ()
TInt MoveConnectionMethodL ( CCmDestinationImpl &, CCmDestinationImpl &, CCmPluginBase &)
CCmManagerImpl * NewL ( TBool )
TUint32 NumOfConnMethodReferencesL ( TUint32 , CommsDat::CMDBRecordSet < CCDDataMobilitySelectionPolicyRecord > *)
void OpenTransactionLC ( TBool )
void ReadDefConnL ( TCmDefConnValue &)
void ReadDefConnWoTransL ( TCmDefConnValue &)
void ReadGenConnSettingsL ( TCmGenConnSettings &)
void RemoveAllReferencesL (const CCmPluginBaseEng &)
void RemoveAllReferencesWoTransL (const CCmPluginBaseEng &)
void RemoveCMFromPoolL ( CCmPluginBaseEng *)
void RemoveCMFromPoolL ( CCmPluginBase *)
void RemoveConnectionMethodL ( CCmDestinationImpl &, CCmPluginBase &)
IMPORT_C void RemoveDestFromPool ( CCmDestinationImpl *)
void RemoveDestFromPool ( CCmDestinationData *)
void RemoveResourceFile ( TFileName &)
void ReplaceGenConnSettingsL (const TCmGenConnSettings &)
void RollbackTransaction ()
CCDSnapRecord * SNAPRecordL ( TUint32 )
CommsDat::TMDBElementId SeamlessnessTableId ()
CommsDat::CMDBSession & Session ()
void StartCommsDatNotifierL ()
void SupportedBearersL ( RArray < TUint32 > &)
CGulIcon * UncategorizedIconL ()
void UpdateBearerPriorityArrayL (const RArray < TBearerPriority > &)
IMPORT_C void WatcherRegisterL ( MCmCommsDatWatcher *)
IMPORT_C void WatcherUnRegister ()
IMPORT_C void WrapCmManager (RCmManagerExt &)
void WriteDefConnL (const TCmDefConnValue &)
void WriteDefConnWoTransL (const TCmDefConnValue &)
void WriteGenConnSettingsL (const TCmGenConnSettings &)
Protected Member Functions
CCmManagerImpl ()
void ConstructL ()
Private Member Functions
void BuildPluginArrayL ()
void CheckAvailableSpaceL ()
void CheckTablesL ()
void CombineArraysForPriorityOrderL ( RPointerArray < CCmPluginBase > &, RPointerArray < CCmPluginBase > &)
void CopyBearerPriorityArrayL ( RArray < TBearerPriority > &)
void CreateBearerPriorityArrayL ()
CCmPluginBaseEng * DoFindConnMethL ( TUint32 , CCmDestinationImpl *)
CCmPluginBase * DoFindConnMethodL ( TUint32 , CCmDestinationImpl *)
TInt FindResourceFile ( TFileName &)
TUint32 GetSnapTableIdL ()
TBool IsBearerSpecific ( TUint32 )
TBool IsEasyWLanL ( CommsDat::CCDIAPRecord *)
TUint32 ParentDestinationL ( TUint32 )
void ReplaceDefConnRecordL (const TCmDefConnValue )
void ResetAndDestroy ( TAny *)
void SetGenConnSettingsToDefault ( 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 &)

void AddResourceFileL ( TFileName & aName )

add resource file

Parameters

TFileName & aName

AllDestinationsL(RArray< TUint32 > &)

IMPORT_C void AllDestinationsL ( RArray < TUint32 > & aDestArray )

Return an array of all destinations

Since
3.2

Parameters

RArray < TUint32 > & aDestArray on 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 ( TUint32 aSnapElementId )

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

Parameters

TUint32 aSnapElementId

AllocReadL(TInt)

HBufC * AllocReadL ( TInt aResourceId ) const

Read string from resource

Since
3.2

Parameters

TInt aResourceId resource id of the localized string

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

void AppendCmListFromUidsL ( 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 > &)

void AppendCmListL ( TUint32 aDestintaionId,
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 > &)

void AppendCmListLC ( TUint32 aDestintaionId,
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)

void AppendUncatCmListL ( RPointerArray < CCmPluginBase > & aCmArray,
TBool aCheckBearerType = ETrue,
TBool aLegacyOnly = ETrue,
TBool aEasyWlan = EFalse,
TBool aSortByBearer = EFalse
)

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

Since
3.2

Parameters

RPointerArray < CCmPluginBase > & aCmArray the returned list of uncategorised connection methods
TBool aCheckBearerType = ETrue see ConnectionMethodL
TBool aLegacyOnly = ETrue see ConnectionMethodL
TBool aEasyWlan = EFalse see ConnectionMethodL
TBool aSortByBearer = EFalse see ConnectionMethodL

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

void AppendUncatCmListLC ( RPointerArray < CCmPluginBase > & aCmArray,
TBool aCheckBearerType = ETrue,
TBool aLegacyOnly = ETrue,
TBool aEasyWlan = EFalse,
TBool aSortByBearer = 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 > & aCmArray the returned list of uncategorised connection methods
TBool aCheckBearerType = ETrue see ConnectionMethodL
TBool aLegacyOnly = ETrue see ConnectionMethodL
TBool aEasyWlan = EFalse see ConnectionMethodL
TBool aSortByBearer = EFalse see ConnectionMethodL

BearerPriorityArrayL(RArray< TBearerPriority > &)

void BearerPriorityArrayL ( RArray < TBearerPriority > & aArray ) const

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

Since
3.2

Parameters

RArray < TBearerPriority > & aArray bearer priority array

BearerTypeFromCmIdL(TUint32)

TUint32 BearerTypeFromCmIdL ( TUint32 aCmId )

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 * aIapRecord CommsDat record of the connection method

BearerTypePriorizationTableId()

CommsDat::TMDBElementId BearerTypePriorizationTableId ( ) const [inline]

Return Global Bearer Type Priorization Table ID

Since
3.2

BuildPluginArrayL()

void BuildPluginArrayL ( ) [private]

Build an array of all bearer specific plugins.

Since
3.2

CheckAvailableSpaceL()

void CheckAvailableSpaceL ( ) [private]

Leaves if no sufficient is available for creation operations

Since
9.2

CheckTablesL()

void CheckTablesL ( ) [private]

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

CleanupGlobalPriorityArray(RArray< TBearerPriority > &)

void CleanupGlobalPriorityArray ( 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 > & aArray array to be cleaned up

CleanupResetAndDestroyPushL(TArrayToCleanup &)

void CleanupResetAndDestroyPushL ( TArrayToCleanup & aPtr ) [static, inline]

Parameters

TArrayToCleanup & aPtr

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

void CombineArraysForPriorityOrderL ( 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 > & aCmArray first list of connection methods to combine
RPointerArray < CCmPluginBase > & aCmLinkedArray second list of connection methods to combine

CommitTransactionL(TInt)

void CommitTransactionL ( TInt aError )

Parameters

TInt aError

ConnMethodUpdatedL(CCmPluginBaseEng *)

void ConnMethodUpdatedL ( 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 ( TUint32 aCmId )

Obsolete

Parameters

TUint32 aCmId

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

IMPORT_C void ConnectionMethodL ( RArray < TUint32 > & aCMArray,
TBool aCheckBearerType = ETrue,
TBool aLegacyOnly = ETrue,
TBool aEasyWlan = EFalse,
TBool aSortByBearer = EFalse
)

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

Since
3.2

Parameters

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

ConstructL()

void ConstructL ( ) [protected]

Epoc constructor

CopyBearerPriorityArrayL(RArray< TBearerPriority > &)

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

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

Since
3.2

Parameters

RArray < TBearerPriority > & aArray bearer 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 & aTargetDestination target destination
CCmPluginBase & aConnectionMethod

CreateBearerPriorityArrayL()

void CreateBearerPriorityArrayL ( ) [private]

Creates bearer priority array

Since
3.2

CreateConnectionMethodL(TUint32, CCmDestinationImpl *)

CCmPluginBase * CreateConnectionMethodL ( TUint32 aBearerType,
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 ( TUint32 aBearerType,
TUint32 aConnMethodId,
CCmDestinationImpl * aParentDestination = NULL
)

Creates a connection method does not belong to any destination

Since
3.2

Parameters

TUint32 aBearerType
TUint32 aConnMethodId Predefined 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 & aName the name of the new destination

CreateDestinationL(const TDesC &, TUint32)

CCmDestinationImpl * CreateDestinationL ( const TDesC & aName,
TUint32 aDestId
)

Creates a Destination by the given name

Since
3.2

Parameters

const TDesC & aName the name of the new destination
TUint32 aDestId Predefined id for the destination

CreateFlatCMListL(TUint32, RPointerArray< CCmPluginBase > &)

IMPORT_C void CreateFlatCMListL ( TUint32 aDestination,
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 aDestination destination that contains the connection methods for uncategorised connection methods, use KDestItemUncategorized
RPointerArray < CCmPluginBase > & aCmArray array to return the result

CreateFlatCMListLC(TUint32, RPointerArray< CCmPluginBase > &)

IMPORT_C void CreateFlatCMListLC ( TUint32 aDestination,
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 aDestination destination that contains the connection methods for uncategorised connection methods, use KDestItemUncategorized
RPointerArray < CCmPluginBase > & aCmArray array to return the result

CreateSNAPRecordL(TUint32)

CCDSnapRecord * CreateSNAPRecordL ( TUint32 aRecordId ) const

Parameters

TUint32 aRecordId

DestinationCountL()

TUint DestinationCountL ( ) [inline]

Return the number of destinations

Since
3.2

DestinationL(TUint32)

IMPORT_C CCmDestinationImpl * DestinationL ( TUint32 aId )

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 TBool DestinationStillExistedL ( CCmDestinationImpl * aDest )

Parameters

CCmDestinationImpl * aDest

DestinationTableId()

CommsDat::TMDBElementId DestinationTableId ( ) const [inline]

Return the destination network table ID

Since
3.2

DestinationUpdated(CCmDestinationImpl *)

void DestinationUpdated ( 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 ( TUint32 aBearerType,
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 ( TUint32 aBearerType,
TCmPluginInitParam & aParams,
TUint32 aConnMethodId
)

Creates a connection method does not belong to any destination

Since
3.2

Parameters

TUint32 aBearerType Implementation uid of the connection method
TCmPluginInitParam & aParams Initialization params for the plugin.
TUint32 aConnMethodId Predefined id for the connection method.

DoFindConnMethL(TUint32, CCmDestinationImpl *)

CCmPluginBaseEng * DoFindConnMethL ( TUint32 aCmId,
CCmDestinationImpl * aParentDest
) [private]

Find and create a connection method.

Since
3.2

Parameters

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

DoFindConnMethodL(TUint32, CCmDestinationImpl *)

CCmPluginBase * DoFindConnMethodL ( TUint32 aCmId,
CCmDestinationImpl * aParentDest
) [private]

Find and create a connection method.

Since
3.2

Parameters

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

EasyWlanIdL()

IMPORT_C TUint32 EasyWlanIdL ( )

Returns the id of the EasyWlan connection method.

Since
S60 3.2

FeatureSupported(TInt)

TBool FeatureSupported ( TInt aFeature ) [static]

Calls FeatureManager::FeatureSupported directly.

Since
3.2
Since
3.2

Parameters

TInt aFeature feature ID

FilterOutVirtualsL(RPointerArray< CCmPluginBase > &)

IMPORT_C void FilterOutVirtualsL ( RPointerArray < CCmPluginBase > & aCmDataArray )

Remove the virtual methods from the passed list

Since
3.2

Parameters

RPointerArray < CCmPluginBase > & aCmDataArray array 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 & aName resource file name, not localized

GetBearerInfoBoolL(TUint32, TUint32)

IMPORT_C TBool GetBearerInfoBoolL ( TUint32 aBearerType,
TUint32 aAttribute
) const

Parameters

TUint32 aBearerType
TUint32 aAttribute

GetBearerInfoIntL(TUint32, TUint32)

IMPORT_C TUint32 GetBearerInfoIntL ( TUint32 aBearerType,
TUint32 aAttribute
) 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 ( TUint32 aBearerType,
TUint32 aAttribute
) const

Parameters

TUint32 aBearerType
TUint32 aAttribute

GetBearerInfoStringL(TUint32, TUint32)

IMPORT_C HBufC * GetBearerInfoStringL ( TUint32 aBearerType,
TUint32 aAttribute
) const

Parameters

TUint32 aBearerType
TUint32 aAttribute

GetConnectionMethodInfoBoolL(TUint32, TUint32)

IMPORT_C TBool GetConnectionMethodInfoBoolL ( TUint32 aCmId,
TUint32 aAttribute
) const

Parameters

TUint32 aCmId
TUint32 aAttribute

GetConnectionMethodInfoIntL(TUint32, TUint32)

IMPORT_C TUint32 GetConnectionMethodInfoIntL ( TUint32 aCmId,
TUint32 aAttribute
) 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 ( TUint32 aCmId,
TUint32 aAttribute
) const

Parameters

TUint32 aCmId
TUint32 aAttribute

GetConnectionMethodInfoStringL(TUint32, TUint32)

IMPORT_C HBufC * GetConnectionMethodInfoStringL ( TUint32 aCmId,
TUint32 aAttribute
) const

Parameters

TUint32 aCmId
TUint32 aAttribute

GetConnectionMethodL(TUint32)

IMPORT_C CCmPluginBase * GetConnectionMethodL ( TUint32 aCmId )

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 ( TBool aUiPriority,
const TDesC & aServiceType
) const

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

Since
3.2

Parameters

TBool aUiPriority ETrue if UI priority is requested
const TDesC & aServiceType serched service type

HandleDefConnDeletedL(TCmDefConnValue &)

void HandleDefConnDeletedL ( 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)

void HasCapabilityL ( TCapability aCapability ) [static]

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

Since
3.2

Parameters

TCapability aCapability capability 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 TBool IapStillExistedL ( 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 *)

void InsertConnectionMethodL ( 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 ( TUint32 aAttribute ) const [private]

Check if the attribute is bearerspecific

Since
9.2

Parameters

TUint32 aAttribute attribute-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 * aIapRecord IAP 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 & aPlugin connection method to be checked

IsIapStillInDestL(CCmDestinationImpl *, const CCmPluginBaseEng &)

IMPORT_C TBool IsIapStillInDestL ( 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 & aSourceDestination source destination
CCmDestinationImpl & aTargetDestination target destination
CCmPluginBase & aConnectionMethod connection method to be moved

NewL(TBool)

CCmManagerImpl * NewL ( TBool aCreateTables = ETrue ) [static]

Epoc constructor

Parameters

TBool aCreateTables = ETrue

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

TUint32 NumOfConnMethodReferencesL ( TUint32 aId,
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 aId ID of the connection method
CommsDat::CMDBRecordSet < CCDDataMobilitySelectionPolicyRecord > * aRecSet = NULL entire record set of the detination table

OpenTransactionLC(TBool)

void OpenTransactionLC ( TBool aSetAttribs = ETrue )

Parameters

TBool aSetAttribs = ETrue

ParentDestinationL(TUint32)

TUint32 ParentDestinationL ( TUint32 aCmId ) [private]

Gets the destination for the given element ID

Since
3.2

Parameters

TUint32 aCmId The element ID of the destination

ReadDefConnL(TCmDefConnValue &)

void ReadDefConnL ( TCmDefConnValue & aDCSetting )

Returns the default connection method/SNAP.

Since
S60 3.2

Parameters

TCmDefConnValue & aDCSetting

ReadDefConnWoTransL(TCmDefConnValue &)

void ReadDefConnWoTransL ( TCmDefConnValue & aDCSetting )

Returns the default connection method/SNAP.

Since
S60 3.2

Parameters

TCmDefConnValue & aDCSetting

ReadGenConnSettingsL(TCmGenConnSettings &)

void ReadGenConnSettingsL ( TCmGenConnSettings & aGenConnSettings )

Returns the general connection settings.

Parameters

TCmGenConnSettings & aGenConnSettings

RemoveAllReferencesL(const CCmPluginBaseEng &)

void RemoveAllReferencesL ( const CCmPluginBaseEng & aPlugin )

Removes all references to this CM from SNAP table.

Parameters

const CCmPluginBaseEng & aPlugin

RemoveAllReferencesWoTransL(const CCmPluginBaseEng &)

void RemoveAllReferencesWoTransL ( const CCmPluginBaseEng & aPlugin )

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

Parameters

const CCmPluginBaseEng & aPlugin

RemoveCMFromPoolL(CCmPluginBaseEng *)

void RemoveCMFromPoolL ( CCmPluginBaseEng * aCM )

Removes the cm from the object pool

Since
3.2

Parameters

CCmPluginBaseEng * aCM

RemoveCMFromPoolL(CCmPluginBase *)

void RemoveCMFromPoolL ( CCmPluginBase * aCM )

Removes the cm from the object pool

Since
3.2

Parameters

CCmPluginBase * aCM

RemoveConnectionMethodL(CCmDestinationImpl &, CCmPluginBase &)

void RemoveConnectionMethodL ( CCmDestinationImpl & aDestination,
CCmPluginBase & aConnectionMethod
)

Remove connection method from the destination

Since
3.2

Parameters

CCmDestinationImpl & aDestination destination the connection method is attached to
CCmPluginBase & aConnectionMethod connection method to be removed

RemoveDestFromPool(CCmDestinationImpl *)

IMPORT_C void RemoveDestFromPool ( CCmDestinationImpl * aDestination )

Removes the destination implementation from the object pool

Since
3.2

Parameters

CCmDestinationImpl * aDestination

RemoveDestFromPool(CCmDestinationData *)

void RemoveDestFromPool ( CCmDestinationData * aDestination )

Removes the destination implementation from the object pool

Since
3.2

Parameters

CCmDestinationData * aDestination

RemoveResourceFile(TFileName &)

void RemoveResourceFile ( TFileName & aName )

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

Parameters

TFileName & aName name of the resource file to be removed

ReplaceDefConnRecordL(const TCmDefConnValue)

void ReplaceDefConnRecordL ( const TCmDefConnValue aDCSetting ) [private]

Replaces the Default Connection record with the new one.

Since
3.2

Parameters

const TCmDefConnValue aDCSetting Default Connection value to set

ReplaceGenConnSettingsL(const TCmGenConnSettings &)

void ReplaceGenConnSettingsL ( const TCmGenConnSettings & aGenConnSettings )

Replaces the general connection settings.

Parameters

const TCmGenConnSettings & aGenConnSettings

ResetAndDestroy(TAny *)

void ResetAndDestroy ( 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()

void RollbackTransaction ( )

SNAPRecordL(TUint32)

CCDSnapRecord * SNAPRecordL ( TUint32 aRecordId ) const

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

Parameters

TUint32 aRecordId record 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 &)

void SetGenConnSettingsToDefault ( TCmGenConnSettings & aGenConnSettings ) [private]

Returns the default general connection values.

Since
9.2

Parameters

TCmGenConnSettings & aGenConnSettings The general connection settings structure

StartCommsDatNotifierL()

void StartCommsDatNotifierL ( )

SupportedBearersL(RArray< TUint32 > &)

void SupportedBearersL ( RArray < TUint32 > & aArray ) const

Parameters

RArray < TUint32 > & aArray

UncategorizedIconL()

CGulIcon * UncategorizedIconL ( ) const

UpdateBearerPriorityArrayL(const RArray< TBearerPriority > &)

void UpdateBearerPriorityArrayL ( const RArray < TBearerPriority > & aArray )

Parameters

const RArray < TBearerPriority > & aArray

WatcherRegisterL(MCmCommsDatWatcher *)

IMPORT_C void WatcherRegisterL ( MCmCommsDatWatcher * aWatcher )

Register aWatcher as watcher for change of CommsDat

Parameters

MCmCommsDatWatcher * aWatcher

WatcherUnRegister()

IMPORT_C void WatcherUnRegister ( )

UnRegister current watcher

WrapCmManager(RCmManagerExt &)

IMPORT_C void WrapCmManager ( RCmManagerExt & aCmManagerExt )

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

Since
3.2

Parameters

RCmManagerExt & aCmManagerExt class to wrap implementation into

WriteDefConnL(const TCmDefConnValue &)

void WriteDefConnL ( const TCmDefConnValue & aDCSetting )

Stores the default connection method/SNAP.

Since
S60 3.2

Parameters

const TCmDefConnValue & aDCSetting

WriteDefConnWoTransL(const TCmDefConnValue &)

void WriteDefConnWoTransL ( const TCmDefConnValue & aDCSetting )

Stores the default connection method/SNAP.

Since
S60 3.2

Parameters

const TCmDefConnValue & aDCSetting

WriteGenConnSettingsL(const TCmGenConnSettings &)

void WriteGenConnSettingsL ( 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]