RCmDestination Class Reference

class RCmDestination

RCmDestination is for setting/getting values of a network destination.

cmmanager.lib
Since
S60 v3.2

Constructor & Destructor Documentation

RCmDestination()

IMPORT_CRCmDestination()

Default constructor.

RCmDestination(const RCmDestination &)

IMPORT_CRCmDestination(const RCmDestination &aCmDestination)

Parameters

const RCmDestination & aCmDestination

~RCmDestination()

IMPORT_C~RCmDestination()

Member Functions Documentation

AddConnectionMethodL(RCmConnectionMethod)

IMPORT_C TIntAddConnectionMethodL(RCmConnectionMethodaConnectionMethod)

Parameters

RCmConnectionMethod aConnectionMethod

AddEmbeddedDestinationL(const RCmDestination &)

IMPORT_C TIntAddEmbeddedDestinationL(const RCmDestination &aDestination)

Parameters

const RCmDestination & aDestination

Close()

IMPORT_C voidClose()

Close the session.

Since
S60 3.2

ConnectionMethodByIDL(TInt)

IMPORT_C RCmConnectionMethodConnectionMethodByIDL(TIntaCmId)const

Returns the connection method with the ECmId. Leaves with KErrNotFound if not found.

Parameters

TInt aCmIdunique id of the requested connection method.

ConnectionMethodCount()

IMPORT_C TIntConnectionMethodCount()const

Returns the number of connection methods of the destination

Since
3.2

ConnectionMethodL(TInt)

IMPORT_C RCmConnectionMethodConnectionMethodL(TIntanIndex)const

Returns a reference to the connection method. The index must be less than the return value of ConnectionMethodCount().

Since
3.2

Parameters

TInt anIndex

CreateConnectionMethodL(TUint32)

IMPORT_C RCmConnectionMethodCreateConnectionMethodL(TUint32aBearerType)

Create a connection method that belongs to this destination.

Parameters

TUint32 aBearerType

CreateConnectionMethodL(TUint32, TUint32)

IMPORT_C RCmConnectionMethodCreateConnectionMethodL(TUint32aBearerType,
TUint32aConnMethId
)

Create a connection method with given id that belongs to this destination.

Parameters

TUint32 aBearerType
TUint32 aConnMethId

DeleteConnectionMethodL(RCmConnectionMethod &)

IMPORT_C voidDeleteConnectionMethodL(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.

Parameters

RCmConnectionMethod & aConnectionMethodthe connection method to be deleted.

DeleteLD()

IMPORT_C voidDeleteLD()

Delete destination and its connection methods from CommsDat. Connection methods that belong to other destination, too, are not deleted.

ElementId()

IMPORT_C TUint32ElementId()const

Returns the destination's ElementId attribute

Since
3.2

IconL()

IMPORT_C CGulIcon *IconL()const

Returns the Icon pointer This function leaves if the client does not have a valid UI context

Since
3.2

Id()

IMPORT_C TUint32Id()const

Returns the destination's Id attribute

Since
3.2

IsConnectedL()

IMPORT_C TBoolIsConnectedL()const

Returns if there's a connection created with any of the destination's connection method.

Since
3.2

IsHidden()

IMPORT_C TBoolIsHidden()const

Returns whether the destination is hidden or not.

Since
3.2

MetadataL(CMManager::TSnapMetadataField)

IMPORT_C TUint32MetadataL(CMManager::TSnapMetadataFieldaMetaField)const

Returns the Metadata

Since
3.2

Parameters

CMManager::TSnapMetadataField aMetaFieldthe meta data field to query

ModifyPriorityL(RCmConnectionMethod &, TUint)

IMPORT_C voidModifyPriorityL(RCmConnectionMethod &aCCMItem,
TUintaIndex
)

Set the connection method's priority based on the passed index.

Parameters

RCmConnectionMethod & aCCMItemthe connection method item
TUint aIndexthe new priority of the connection method in the destination

NameLC()

IMPORT_C HBufC *NameLC()const

Returns the destination's Name attribute HBuf ownership is passed to the caller

Since
3.2

PriorityL(const RCmConnectionMethod &)

IMPORT_C TUintPriorityL(const RCmConnectionMethod &aCCMItem)const

Return the priority of the passed connection method

Since
3.2

Parameters

const RCmConnectionMethod & aCCMItemconnection method

ProtectionLevel()

IMPORT_C CMManager::TProtectionLevelProtectionLevel()const

Return the protection level of the destination.

Since
3.2

RemoveConnectionMethodL(RCmConnectionMethod)

IMPORT_C voidRemoveConnectionMethodL(RCmConnectionMethodaConnectionMethod)

Remove connection method from the destination

Parameters

RCmConnectionMethod aConnectionMethodconnection method to be removed

SetHiddenL(TBool)

IMPORT_C voidSetHiddenL(TBoolaHidden)

Set if the destination is hidden or not.

Parameters

TBool aHidden- ETrue if destination is hidden

SetIconL(TUint32)

IMPORT_C voidSetIconL(TUint32anIndex)

Set the destination's icon index. This fucton leaves if the client does not have a valid UI context

Parameters

TUint32 anIndex

SetMetadataL(CMManager::TSnapMetadataField, TUint32)

IMPORT_C voidSetMetadataL(CMManager::TSnapMetadataFieldaMetaField,
TUint32aValue
)

Set the Metadata

Parameters

CMManager::TSnapMetadataField aMetaFieldfield to be modified
TUint32 aValuevalue to be set

SetNameL(const TDesC &)

IMPORT_C voidSetNameL(const TDesC &aName)

Set the destination's name

Parameters

const TDesC & aName

SetProtectionL(CMManager::TProtectionLevel)

IMPORT_C voidSetProtectionL(CMManager::TProtectionLevelaProtLevel)

Set the protection level of the destination.

Parameters

CMManager::TProtectionLevel aProtLevelnew protection level

UpdateL()

IMPORT_C voidUpdateL()

Update all values of the destination and its connection method. Nothing if stored, if update leaves due to any reason.

operator!=(const RCmDestination &)

IMPORT_C TBooloperator!=(const RCmDestination &aDestination)const

checks if destinations are not the same

Since
S60 3.2

Parameters

const RCmDestination & aDestinationthe destination being compared

operator=(const RCmDestination &)

IMPORT_C RCmDestination &operator=(const RCmDestination &aCmDestination)

assignment operator

Since
S60 3.2

Parameters

const RCmDestination & aCmDestination

operator==(const RCmDestination &)

IMPORT_C TBooloperator==(const RCmDestination &aDestination)const

checks if destinations are the same

Since
S60 3.2

Parameters

const RCmDestination & aDestinationthe destination being compared

Member Data Documentation

CCmDestinationData * iDestinatonData

CCmDestinationData *iDestinatonData[private]

the implementation class