#include <mw/cmdestination.h>
class RCmDestination |
RCmDestination is for setting/getting values of a network destination.
IMPORT_C | RCmDestination | ( | const RCmDestination & | aCmDestination | ) |
IMPORT_C TInt | AddConnectionMethodL | ( | RCmConnectionMethod | aConnectionMethod | ) |
IMPORT_C TInt | AddEmbeddedDestinationL | ( | const RCmDestination & | aDestination | ) |
IMPORT_C RCmConnectionMethod | ConnectionMethodByIDL | ( | TInt | aCmId | ) | const |
Returns the connection method with the ECmId. Leaves with KErrNotFound if not found.
Parameter | Description |
---|---|
aCmId | unique id of the requested connection method. |
Returns: connection method
IMPORT_C TInt | ConnectionMethodCount | ( | ) | const |
Returns the number of connection methods of the destination
Returns: the number of connection methods belonging to a destination
IMPORT_C RCmConnectionMethod | ConnectionMethodL | ( | TInt | anIndex | ) | const |
Returns a reference to the connection method. The index must be less than the return value of ConnectionMethodCount().
Returns: a connection method
IMPORT_C RCmConnectionMethod | CreateConnectionMethodL | ( | TUint32 | aBearerType | ) |
Create a connection method that belongs to this destination.
Returns: newly created connection method
IMPORT_C RCmConnectionMethod | CreateConnectionMethodL | ( | TUint32 | aBearerType, |
TUint32 | aConnMethId | |||
) |
Create a connection method with given id that belongs to this destination.
Returns: newly created connection method or leaves with KErrAlreadyExists if there exists CM with the same Id.
IMPORT_C void | DeleteConnectionMethodL | ( | RCmConnectionMethod & | aConnectionMethod | ) |
Remove a connection method from a destination and delete it on update. Exception: conenction method is not deleted if it's referenced from any other destination.
Parameter | Description |
---|---|
aConnectionMethod | the connection method to be deleted. |
IMPORT_C void | DeleteLD | ( | ) |
Delete destination and its connection methods from CommsDat. Connection methods that belong to other destination, too, are not deleted.
IMPORT_C TUint32 | ElementId | ( | ) | const |
Returns the destination's ElementId attribute
Returns: the destination's element id
IMPORT_C CGulIcon * | IconL | ( | ) | const |
Returns the Icon pointer This function leaves if the client does not have a valid UI context
Returns: the destination icon
IMPORT_C TUint32 | Id | ( | ) | const |
Returns the destination's Id attribute
Returns: the destination's id
IMPORT_C TBool | IsConnectedL | ( | ) | const |
Returns if there's a connection created with any of the destination's connection method.
Returns: ETrue if there's a connection with any of the destination's connection method.
IMPORT_C TBool | IsHidden | ( | ) | const |
Returns whether the destination is hidden or not.
Returns: ETrue if the destination is hidden
IMPORT_C TUint32 | MetadataL | ( | CMManager::TSnapMetadataField | aMetaField | ) | const |
Returns the Metadata
Parameter | Description |
---|---|
aMetaField | the meta data field to query |
Returns: the value of the requested field
IMPORT_C void | ModifyPriorityL | ( | RCmConnectionMethod & | aCCMItem, |
TUint | aIndex | |||
) |
Set the connection method's priority based on the passed index.
Parameter | Description |
---|---|
aCCMItem | the connection method item |
aIndex | the new priority of the connection method in the destination |
IMPORT_C HBufC * | NameLC | ( | ) | const |
Returns the destination's Name attribute HBuf ownership is passed to the caller
Returns: HBufC* Passes returned value's ownership to the caller
IMPORT_C TUint | PriorityL | ( | const RCmConnectionMethod & | aCCMItem | ) | const |
Return the priority of the passed connection method
Parameter | Description |
---|---|
aCCMItem | connection method |
Returns: the priority of the queried connection method
IMPORT_C CMManager::TProtectionLevel | ProtectionLevel | ( | ) | const |
Return the protection level of the destination.
Returns: protection level of the destination
IMPORT_C void | RemoveConnectionMethodL | ( | RCmConnectionMethod | aConnectionMethod | ) |
Remove connection method from the destination
Parameter | Description |
---|---|
aConnectionMethod | connection method to be removed |
IMPORT_C void | SetHiddenL | ( | TBool | aHidden | ) |
Set if the destination is hidden or not.
Parameter | Description |
---|---|
aHidden | - ETrue if destination is hidden |
IMPORT_C void | SetIconL | ( | TUint32 | anIndex | ) |
Set the destination's icon index. This fucton leaves if the client does not have a valid UI context
IMPORT_C void | SetMetadataL | ( | CMManager::TSnapMetadataField | aMetaField, |
TUint32 | aValue | |||
) |
Set the Metadata
Parameter | Description |
---|---|
aMetaField | field to be modified |
aValue | value to be set |
IMPORT_C void | SetProtectionL | ( | CMManager::TProtectionLevel | aProtLevel | ) |
Set the protection level of the destination.
Parameter | Description |
---|---|
aProtLevel | new protection level |
IMPORT_C void | UpdateL | ( | ) |
Update all values of the destination and its connection method. Nothing if stored, if update leaves due to any reason.
IMPORT_C TBool | operator!= | ( | const RCmDestination & | aDestination | ) | const |
checks if destinations are not the same
Parameter | Description |
---|---|
aDestination | the destination being compared |
Returns: ETrue if the destinations are different
IMPORT_C RCmDestination & | operator= | ( | const RCmDestination & | aCmDestination | ) |
assignment operator
Returns: RCmDestination
IMPORT_C TBool | operator== | ( | const RCmDestination & | aDestination | ) | const |
checks if destinations are the same
Parameter | Description |
---|---|
aDestination | the destination being compared |
Returns: ETrue if the destinations are the same