#include <mw/cmmanager.h>
class RCmManager |
RCmManager gives access to network destinations and connection methods.
IMPORT_C void | BearerPriorityArrayL | ( | RArray< TBearerPriority > & | aArray | ) | const |
Returns the copy of the bearer priority array. Ownership is passed.
Parameter | Description |
---|---|
aArray | bearer priority array |
IMPORT_C void | CleanupGlobalPriorityArray | ( | RArray< TBearerPriority > & | aArray | ) | const |
Clean up passed global bearer priority array. Delete the elements and calls Reset and Close on the array.
Parameter | Description |
---|---|
aArray | array to be cleaned up |
IMPORT_C RCmConnectionMethod | ConnectionMethodL | ( | TUint32 | aConnectionMethodId | ) | const |
Returns the connection method queried by its ID
Parameter | Description |
---|---|
aConnectionMethodId | id of the connection method |
Returns: RCmConnectionMethod connection method
IMPORT_C void | ConnectionMethodL | ( | RArray< TUint32 > & | aCMArray, |
TBool | aCheckBearerType = ETrue, | |||
TBool | aLegacyOnly = ETrue, | |||
TBool | aEasyWlan = EFalse | |||
) | const |
Returns the list of connection methods. Connection Methods are filtered by the switch parameters e.g. aLegacyOnly.
Parameter | Description |
---|---|
aCMArray | on return it is the array of IAP ids. |
aCheckBearerType | If ETrue only connection methods with supported bearer type are returned |
aLegacyOnly | when set to ETrue only Legacy IAP ids will be returned |
aEasyWlan | when set to ETrue EasyWlan id is returned, too |
IMPORT_C TInt | CopyConnectionMethodL | ( | RCmDestination & | aTargetDestination, |
RCmConnectionMethod & | aConnectionMethod | |||
) |
Copies a connection method belonging to one destination to another. The connection method becomes shared. Calls UpdateL on the destination
Returns: TInt - index in the Connection Method list
IMPORT_C RCmConnectionMethod | CreateConnectionMethodL | ( | TUint32 | aBearerType | ) |
Creates a connection method does not belong to any destination
Returns: RCmConnectionMethod newly created connection method.
IMPORT_C RCmConnectionMethod | CreateConnectionMethodL | ( | TUint32 | aImplementationUid, |
TUint32 | aConnMethodId | |||
) |
Creates a connection method does not belong to any destination
Parameter | Description |
---|---|
aImplementationUid | - bearer type of the new connection method |
aConnMethodId | Predefined id for the connection method. |
Returns: RCmConnectionMethod newly created connection method or leaves with KErrAlreadyExists if there exists CM with the same Id.
IMPORT_C RCmDestination | CreateDestinationL | ( | const TDesC & | aName | ) |
Creates a Destination with the passed name.
Parameter | Description |
---|---|
aName | the name of the new destination. |
Returns: RCmDestination new destination. ownership is passed to the caller
IMPORT_C RCmDestination | CreateDestinationL | ( | const TDesC & | aName, |
TUint32 | aDestId | |||
) |
Creates a Destination with the passed name and id.
Parameter | Description |
---|---|
aName | the name of the new destination. |
aDestId | Predefined id of the destination. |
Returns: RCmDestination newly created destination or leaves with KErrAlreadyExists if there exists CM with the same Id. Ownership is passed to the caller.
IMPORT_C void | CreateTablesAndOpenL | ( | ) |
Open session and create tables if they don't exist
IMPORT_C RCmDestination | DestinationL | ( | TUint32 | aDestinationId | ) | const |
Returns the destination to which a specified connection method belongs, search is by destination ID
Parameter | Description |
---|---|
aDestinationId | id of destination |
Returns: RCmDestination network destination
IMPORT_C TUint32 | EasyWlanIdL | ( | ) | const |
Returns the id of the EasyWlan connection method.
Returns: id of the EasyWLan connection method. 0 if not found.
Used to query bearer information that doesn't belong to a specific connection method, such as ECmCoverage or ECmDefaultPriority etc.
Parameter | Description |
---|---|
aBearerType | the bearer |
aAttribute | the setting value |
Returns: the setting value
Used to query bearer information that doesn't belong to a specific connection method, such as ECmCoverage or ECmDefaultPriority etc.
Parameter | Description |
---|---|
aBearerType | the bearer |
aAttribute | the setting value |
Returns: the setting value
Used to query bearer information that does not belong to a specific connection method, such as ECmCoverage or ECmDefaultPriority, etc. HBuf ownership is passed to the caller
Parameter | Description |
---|---|
aBearerType | the bearer |
aAttribute | the setting value |
Returns: the setting value
Used to query bearer information that doesn't belong to a specific connection method, such as ECmCoverage or ECmDefaultPriority etc. HBuf ownership is passed to the caller
Parameter | Description |
---|---|
aBearerType | the bearer |
aAttribute | the setting value |
Returns: the setting value
Used to query any, non-bearer specific information about a given connection method. This can be e.g. ECmBearerType, ECmName, ECmStartPage, etc.
Parameter | Description |
---|---|
aIapId | the connection method id |
aAttribute | the setting value |
Returns: the setting value
Used to query any non-bearer specific information about a given connection method. This can be e.g. ECmBearerType, ECmName, ECmStartPage, etc.
Parameter | Description |
---|---|
aIapId | the connection method id |
aAttribute | the setting value |
Returns: the setting value
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
Parameter | Description |
---|---|
aIapId | the connection method id |
aAttribute | the setting value |
Returns: the setting value
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
Parameter | Description |
---|---|
aIapId | the connection method id |
aAttribute | the setting value |
Returns: the setting value
IMPORT_C TInt | MoveConnectionMethodL | ( | RCmDestination & | aSourceDestination, |
RCmDestination & | aTargetDestination, | |||
RCmConnectionMethod & | aConnectionMethod | |||
) |
Moves a connection method belonging to one destination to another. The connection method is removed from the source destination
Returns: TInt - index in the Connection Method list
IMPORT_C void | OpenLC | ( | ) |
Symbian constructor Pushes the object on the cleanup stack
IMPORT_C void | ReadDefConnL | ( | TCmDefConnValue & | aDCSetting | ) |
Returns the default connection method/SNAP.
IMPORT_C void | ReadGenConnSettingsL | ( | TCmGenConnSettings & | aGenConnSettings | ) |
Returns the general connection settings.
IMPORT_C void | RemoveAllReferencesL | ( | RCmConnectionMethod & | aConnectionMethod | ) |
Removes connection method from every destination and make it uncategorized.
Parameter | Description |
---|---|
aConnectionMethod | connection method to be removed |
IMPORT_C void | RemoveConnectionMethodL | ( | RCmDestination & | aDestination, |
RCmConnectionMethod & | aConnectionMethod | |||
) |
Remove connection method from the destination
Parameter | Description |
---|---|
aDestination | destination the connection method is attached to |
aConnectionMethod | connection method to be removed |
IMPORT_C CGulIcon * | UncategorizedIconL | ( | ) | const |
Returns "Uncategorized" icon. This fucton leaves if the client does not have a valid UI context
Returns: CGulIcon* Icon of uncategorized connection methods. Ownership is passed.
IMPORT_C void | UpdateBearerPriorityArrayL | ( | const RArray< TBearerPriority > & | aArray | ) |
Update bearer priority array
Parameter | Description |
---|---|
aArray | array with new global bearer priority |
IMPORT_C void | WriteDefConnL | ( | const TCmDefConnValue & | aDCSetting | ) |
Stores the default connection method/SNAP.
IMPORT_C void | WriteGenConnSettingsL | ( | const TCmGenConnSettings & | aGenConnSettings | ) |
Writes the general connection settings.