RCmManagerExt Class Reference

class RCmManagerExt

RCmManager is used to query and modify network destinations and connection methods.

cmmanager.lib
Since
S60 v3.2
Public Member Functions
RCmManagerExt()
IMPORT_C voidAllDestinationsL(RArray< TUint32 > &)
IMPORT_C voidBearerPriorityArrayL(RArray< TBearerPriority > &)
IMPORT_C voidCleanupGlobalPriorityArray(RArray< TBearerPriority > &)
IMPORT_C voidClose()
IMPORT_C RCmConnectionMethodExtConnectionMethodL(TUint32)
IMPORT_C voidConnectionMethodL(RArray< TUint32 > &, TBool, TBool, TBool)
IMPORT_C TIntCopyConnectionMethodL(RCmDestinationExt &, RCmConnectionMethodExt &)
IMPORT_C RCmConnectionMethodExtCreateConnectionMethodL(TUint32)
IMPORT_C RCmConnectionMethodExtCreateConnectionMethodL(TUint32, TUint32)
IMPORT_C RCmDestinationExtCreateDestinationL(const TDesC &)
IMPORT_C RCmDestinationExtCreateDestinationL(const TDesC &, TUint32)
IMPORT_C voidCreateTablesAndOpenL()
IMPORT_C RCmDestinationExtDestinationL(TUint32)
IMPORT_C TUint32EasyWlanIdL()
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 TIntMoveConnectionMethodL(RCmDestinationExt &, RCmDestinationExt &, RCmConnectionMethodExt &)
IMPORT_C voidOpenL()
IMPORT_C voidOpenLC()
IMPORT_C voidReadDefConnL(TCmDefConnValue &)
IMPORT_C voidRemoveAllReferencesL(RCmConnectionMethodExt &)
IMPORT_C voidRemoveConnectionMethodL(RCmDestinationExt &, RCmConnectionMethodExt &)
IMPORT_C voidSupportedBearersL(RArray< TUint32 > &)
IMPORT_C CGulIcon *UncategorizedIconL()
IMPORT_C voidUpdateBearerPriorityArrayL(const RArray< TBearerPriority > &)
IMPORT_C voidWriteDefConnL(const TCmDefConnValue &)
Private Member Functions
RCmManagerExt(RCmManagerExt &)
RCmManagerExt &operator=(RCmManagerExt &)
Private Attributes
CCmManagerImpl *iImplementation

Constructor & Destructor Documentation

RCmManagerExt()

RCmManagerExt()[inline]

Inline constructor

RCmManagerExt(RCmManagerExt &)

RCmManagerExt(RCmManagerExt &)[private]

This is a private copy constructor without iplemetation. The sole purpose of this declaration is to forbid the copying of the objects of this class.

Parameters

RCmManagerExt &

Member Functions Documentation

AllDestinationsL(RArray< TUint32 > &)

IMPORT_C voidAllDestinationsL(RArray< TUint32 > &aDestArray)

Returns an array of all destination id's

Parameters

RArray< TUint32 > & aDestArrayarray of all available network destination

BearerPriorityArrayL(RArray< TBearerPriority > &)

IMPORT_C voidBearerPriorityArrayL(RArray< TBearerPriority > &aArray)const

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

Parameters

RArray< TBearerPriority > & aArraybearer priority array

CleanupGlobalPriorityArray(RArray< TBearerPriority > &)

IMPORT_C voidCleanupGlobalPriorityArray(RArray< TBearerPriority > &aArray)const

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

Parameters

RArray< TBearerPriority > & aArrayarray to be cleaned up

Close()

IMPORT_C voidClose()

Close session

ConnectionMethodL(TUint32)

IMPORT_C RCmConnectionMethodExtConnectionMethodL(TUint32aConnectionMethodId)

Returns the connection method queried by its ID.

Parameters

TUint32 aConnectionMethodId

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

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

Returns the list of connection methods that do not belong to any destination

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

CopyConnectionMethodL(RCmDestinationExt &, RCmConnectionMethodExt &)

IMPORT_C TIntCopyConnectionMethodL(RCmDestinationExt &aTargetDestination,
RCmConnectionMethodExt &aConnectionMethod
)

Copies a connection method belonging to one destination to another. The connection method becomes shared. Calls UpdateL on the destination

Parameters

RCmDestinationExt & aTargetDestination
RCmConnectionMethodExt & aConnectionMethod

CreateConnectionMethodL(TUint32)

IMPORT_C RCmConnectionMethodExtCreateConnectionMethodL(TUint32aBearerType)

Creates a connection method does not belong to any destination

Parameters

TUint32 aBearerType

CreateConnectionMethodL(TUint32, TUint32)

IMPORT_C RCmConnectionMethodExtCreateConnectionMethodL(TUint32aImplementationUid,
TUint32aConnMethodId
)

Creates a connection method does not belong to any destination

Parameters

TUint32 aImplementationUid- bearer type of the new connection method
TUint32 aConnMethodIdPredefined id for the connection method (id range is from 1 to max IAP record amount in CommsDat).

CreateDestinationL(const TDesC &)

IMPORT_C RCmDestinationExtCreateDestinationL(const TDesC &aName)

Creates a Destination with the passed name.

Parameters

const TDesC & aNamethe name of the new destination.

CreateDestinationL(const TDesC &, TUint32)

IMPORT_C RCmDestinationExtCreateDestinationL(const TDesC &aName,
TUint32aDestId
)

Creates a Destination with the passed name and id.

Parameters

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

CreateTablesAndOpenL()

IMPORT_C voidCreateTablesAndOpenL()

Open session and create tables if they don't exist

DestinationL(TUint32)

IMPORT_C RCmDestinationExtDestinationL(TUint32aDestinationId)

Returns the destination to which a specified connection method belongs, search is by destination ID

Parameters

TUint32 aDestinationIdid of the destination

EasyWlanIdL()

IMPORT_C TUint32EasyWlanIdL()

Returns the id of the EasyWlan connection method.

Since
S60 3.2

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. NULL pointer, returned from string functions, means attribute exists but has no value. 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(TUint32aIapId,
TUint32aAttribute
)const

Parameters

TUint32 aIapId
TUint32 aAttribute

GetConnectionMethodInfoIntL(TUint32, TUint32)

IMPORT_C TUint32GetConnectionMethodInfoIntL(TUint32aIapId,
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. NULL pointer, returned from string functions, means attribute exists but has no value. HBuf ownership is passed to the caller

Parameters

TUint32 aIapId
TUint32 aAttribute

GetConnectionMethodInfoString8L(TUint32, TUint32)

IMPORT_C HBufC8 *GetConnectionMethodInfoString8L(TUint32aIapId,
TUint32aAttribute
)const

Parameters

TUint32 aIapId
TUint32 aAttribute

GetConnectionMethodInfoStringL(TUint32, TUint32)

IMPORT_C HBufC *GetConnectionMethodInfoStringL(TUint32aIapId,
TUint32aAttribute
)const

Parameters

TUint32 aIapId
TUint32 aAttribute

MoveConnectionMethodL(RCmDestinationExt &, RCmDestinationExt &, RCmConnectionMethodExt &)

IMPORT_C TIntMoveConnectionMethodL(RCmDestinationExt &aSourceDestination,
RCmDestinationExt &aTargetDestination,
RCmConnectionMethodExt &aConnectionMethod
)

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

Parameters

RCmDestinationExt & aSourceDestination
RCmDestinationExt & aTargetDestination
RCmConnectionMethodExt & aConnectionMethod

OpenL()

IMPORT_C voidOpenL()

Open session

OpenLC()

IMPORT_C voidOpenLC()

Symbian constructor Pushes the object on the cleanup stack

Since
S60 3.2

ReadDefConnL(TCmDefConnValue &)

IMPORT_C voidReadDefConnL(TCmDefConnValue &aDCSetting)

Returns the default connection method/SNAP.

Since
S60 3.2

Parameters

TCmDefConnValue & aDCSetting

RemoveAllReferencesL(RCmConnectionMethodExt &)

IMPORT_C voidRemoveAllReferencesL(RCmConnectionMethodExt &aConnectionMethod)

Removes connection method from every destination and make it uncategorized.

Parameters

RCmConnectionMethodExt & aConnectionMethodconnection method to be removed

RemoveConnectionMethodL(RCmDestinationExt &, RCmConnectionMethodExt &)

IMPORT_C voidRemoveConnectionMethodL(RCmDestinationExt &aDestination,
RCmConnectionMethodExt &aConnectionMethod
)

Remove connection method from the destination

Parameters

RCmDestinationExt & aDestinationdestination the connection method is attached to
RCmConnectionMethodExt & aConnectionMethodconnection method to be removed

SupportedBearersL(RArray< TUint32 > &)

IMPORT_C voidSupportedBearersL(RArray< TUint32 > &aArray)const

Query all of the supported bearer types.

Parameters

RArray< TUint32 > & aArraylist of all supported bearer types.

UncategorizedIconL()

IMPORT_C CGulIcon *UncategorizedIconL()const

Returns "Uncategorized" icon. This fucton leaves if the client does not have a valid UI context

UpdateBearerPriorityArrayL(const RArray< TBearerPriority > &)

IMPORT_C voidUpdateBearerPriorityArrayL(const RArray< TBearerPriority > &aArray)

Update bearer priority array

Parameters

const RArray< TBearerPriority > & aArrayarray with new global bearer priority

WriteDefConnL(const TCmDefConnValue &)

IMPORT_C voidWriteDefConnL(const TCmDefConnValue &aDCSetting)

Stores the default connection method/SNAP.

Since
S60 3.2

Parameters

const TCmDefConnValue & aDCSetting

operator=(RCmManagerExt &)

RCmManagerExt &operator=(RCmManagerExt &)[private]

This is a private copy constructor without iplemetation. The sole purpose of this declaration is to forbid the copying of the objects of this class.

Parameters

RCmManagerExt &

Member Data Documentation

CCmManagerImpl * iImplementation

CCmManagerImpl *iImplementation[private]