CCmDestinationImpl Class Reference

class CCmDestinationImpl : public CBase
RCmDestination is for getting/setting values of a network destination. cmmanager.lib
Since
S60 v3.2

Inherits from

Public Member Functions
~CCmDestinationImpl()
TInt AddConnectionMethodL(CCmPluginBase &)
TInt AddEmbeddedDestinationL(CCmDestinationImpl &)
TBool CanUseToConnectL()
TBool CheckIfCMExistsL(CCmPluginBase &)
voidCheckIfEmbeddedL(TInt)
voidClose()
CCmManagerImpl *Cmmgr()
voidConnectMethodIdArrayL(RArray< TUint32 > &)
CCmPluginBase *ConnectionMethodByIDL(TUint32)
IMPORT_C TIntConnectionMethodCount()
voidConnectionMethodDeletedL(const CCmPluginBase &)
IMPORT_C CCmPluginBaseEng *ConnectionMethodL(TInt)
CCmPluginBase *CreateConnectionMethodL(TUint32)
CCmPluginBase *CreateConnectionMethodL(TUint32, TUint32)
voidDecrementRefCounter()
voidDeleteConnectionMethodL(CCmPluginBase &)
IMPORT_C voidDeleteLD()
TUint32 ElementId()
CCmDestinationImpl *EmbeddedL()
IMPORT_C CCmPluginBase *GetConnectionMethodL(TInt)
CCmDestinationData *GetData()
TUint32 GetDestinationAPTagId()
TInt GetRefCounter()
CGulIcon *IconIdL(CCmManagerImpl &, CommsDat::TMDBElementId)
IMPORT_C CGulIcon *IconL()
TUint32 Id()
TBool IdIsValid()
voidIncrementRefCounter()
IMPORT_C TBoolIsConnectedL()
IMPORT_C TBoolIsHidden()
TUint32 MetadataL(CMManager::TSnapMetadataField)
voidModifyPriorityL(CCmPluginBase &, TUint)
IMPORT_C HBufC *NameLC()
IMPORT_C CCmDestinationImpl *NewL(CCmManagerImpl &, const TDesC &)
CCmDestinationImpl *NewL(CCmManagerImpl &, CCmDestinationData *)
IMPORT_C CCmDestinationImpl *NewL(CCmManagerImpl &, TUint)
CCmDestinationImpl *NewL(CCmManagerImpl &, const TDesC &, TUint32)
CCmDestinationImpl *NewLC(CCmDestinationData *)
voidPluginClosed(CCmPluginBase *)
TUint PriorityL(CCmPluginBaseEng &)
TUint PriorityL(CCmPluginBase &)
IMPORT_C CMManager::TProtectionLevelProtectionLevel()
CMManager::TProtectionLevel ProtectionLevelL(CCmManagerImpl &, CommsDat::TMDBElementId)
voidReLoadConnectionMethodsL()
voidRemoveConnectionMethodL(const CCmPluginBase &)
voidRemoveConnectionMethodL(const CCmPluginBaseEng &)
IMPORT_C voidRemoveFromPool()
voidSetData(CCmDestinationData *)
IMPORT_C voidSetHiddenL(TBool)
IMPORT_C voidSetIconL(TUint32)
voidSetMetadataL(CMManager::TSnapMetadataField, TUint32)
IMPORT_C voidSetNameL(const TDesC &)
IMPORT_C voidSetProtectionL(CMManager::TProtectionLevel)
IMPORT_C voidUpdateL()
Private Member Functions
CCmDestinationImpl(CCmManagerImpl &)
TInt AddToArrayL(CPluginItem *)
voidCheckIfDestinationIdExistsL(TUint32)
voidCheckIfDestinationNameExistL(const TDesC &)
voidCheckIfInternetExistsL()
voidCheckIfLocalisedDestExistL(TUint32)
voidCheckIfNameModifiedL(CCDSnapRecord *)
voidCheckIfPurposeExistL(TUint32)
voidCheckIfReferencedByVirtualCML()
voidCleanUpEmbeddedL(TUint32)
voidCleanUpSeamlessnessTableL(TUint32)
voidCleanUpSnapMetadataTableL(TUint32)
voidCommitTransactionL(TInt)
TInt ConnectionMethodIndex(TUint32)
voidConstructL(const TDesC &)
voidConstructL(const TDesC &, TUint32)
voidConstructL(TUint)
CCmPluginBase *CreateConnectionMethodL(TUid, TCmPluginInitParam &)
TUint32 CreateDestinationAPTagIdL()
voidCreateEmbeddedDestinationPluginL(CPluginItem &, TInt)
voidDeleteConnectionMethodsL()
voidDeleteIAPRecordsL(CommsDat::CMDBRecordBase *)
voidDeleteRelatedRecordsL(TInt)
TInt FindConnectionMethodL(const CCmPluginBase &)
TInt FindConnectionMethodL(const CCmPluginBaseEng &)
TBool HasEmbeddedL()
CGulIcon *IconL(TInt)
voidInitializeDestAPRecordL()
TInt InsertPriorityMethodL(TUint32, TUint32)
TInt InsertSameMethodL(TUint32, TBool)
voidLoadConnectionMethodsL()
voidLoadDestAPRecordL(TUint32)
voidLoadEmbeddedDestinationPluginL(CPluginItem &)
voidLoadNetworkRecordL(TUint32)
voidLoadPluginL(CPluginItem &)
voidLoadSNAPMetadataTableL()
voidOpenTransactionLC()
TBool PrioDataL(CPluginItem *, TUint32 &, TUint32 &, TUint32 &)
CMManager::TProtectionLevel ProtectionLevel(CCDSNAPMetadataRecord *)
voidRollbackTransaction()
CommsDat::CMDBSession &Session()
voidSetAttribute(CommsDat::CMDBRecordBase *, TUint32, TBool)
voidSetDefaultCprL()
voidSetDefaultMCprL()
voidSetDefaultProtocolL()
voidSetDefaultSCprL()
voidSetDefaultTierManagerL()
voidSetIdL(TInt)
TInt SortRecordsByPriority(const CommsDat::CMDBRecordBase &, const CommsDat::CMDBRecordBase &)
voidUpdateConnectionMethodsL()
voidUpdateDestAPRecordL()
voidUpdateNetworkRecordL()
voidUpdateProtectionL()
voidUpdateSNAPMetadataTableL()
voidUpdateSNAPTableL()
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
CCmManagerImpl &iCmMgr
CCmDestinationData *iData

Constructor & Destructor Documentation

CCmDestinationImpl(CCmManagerImpl &)

CCmDestinationImpl(CCmManagerImpl &aCmMgr)[private]

Default constructor.

Parameters

CCmManagerImpl & aCmMgr

~CCmDestinationImpl()

~CCmDestinationImpl()

Destructor.

Member Functions Documentation

AddConnectionMethodL(CCmPluginBase &)

TInt AddConnectionMethodL(CCmPluginBase &aConnectionMethod)

Parameters

CCmPluginBase & aConnectionMethod

AddEmbeddedDestinationL(CCmDestinationImpl &)

TInt AddEmbeddedDestinationL(CCmDestinationImpl &aDestination)

Parameters

CCmDestinationImpl & aDestination

AddToArrayL(CPluginItem *)

TInt AddToArrayL(CPluginItem *aItem)[private]

Add an item to the Connection Method array based on bearer priority table.

Parameters

CPluginItem * aItemAn item to be added.

CanUseToConnectL()

TBool CanUseToConnectL()

Checks if this destination plus a possible embedded destinaion contains a connection method which can be used for a connection Doesn't check VPNs!

CheckIfCMExistsL(CCmPluginBase &)

TBool CheckIfCMExistsL(CCmPluginBase &aConnectionMethod)

Checks if this destination already contains the given Connection Method

Parameters

CCmPluginBase & aConnectionMethodConnection Method to be checked whether it already exists.

CheckIfDestinationIdExistsL(TUint32)

voidCheckIfDestinationIdExistsL(TUint32aDestId)[private]

Checks that there isn't any destination with the given (tag)id.

Parameters

TUint32 aDestIdId to be checked

CheckIfDestinationNameExistL(const TDesC &)

voidCheckIfDestinationNameExistL(const TDesC &aName)[private]

Check if there is destination with this name. Leaves with KErrAlreadyExists if name already exists

Parameters

const TDesC & aNamedestination name

CheckIfEmbeddedL(TInt)

voidCheckIfEmbeddedL(TIntaId)

Check if the destination element id is already embeded. Leaves with KErrNotSupported (multiple levels of embedding is not supported)

Parameters

TInt aId

CheckIfInternetExistsL()

voidCheckIfInternetExistsL()[private]

Checks if there's another SNAP with Internet bit set. Leaves with KErrAlreadyExists if so.

CheckIfLocalisedDestExistL(TUint32)

voidCheckIfLocalisedDestExistL(TUint32aValue)[private]

Checks if there's another SNAP with the same localised bit set. Leaves with KErrAlreadyExists if so.

Parameters

TUint32 aValue

CheckIfNameModifiedL(CCDSnapRecord *)

voidCheckIfNameModifiedL(CCDSnapRecord *aRecord)[private]

Check if the name of the passed record is the same as the name of network one, and update it if not.

Parameters

CCDSnapRecord * aRecordrecord to be checked and updated if needed

CheckIfPurposeExistL(TUint32)

voidCheckIfPurposeExistL(TUint32aValue)[private]

Checks if there's another SNAP with the same purpose bit set. Leaves with KErrAlreadyExists if so.

Parameters

TUint32 aValue

CheckIfReferencedByVirtualCML()

voidCheckIfReferencedByVirtualCML()[private]

Checks if this(current) destination is referenced by any Virtual Connection Method.

CleanUpEmbeddedL(TUint32)

voidCleanUpEmbeddedL(TUint32aDestId)[private]

Embedded dest is considered to be removed from the commsdat by third party (someone else external). Snap Metadata entries should also be removed.

Parameters

TUint32 aDestId

CleanUpSeamlessnessTableL(TUint32)

voidCleanUpSeamlessnessTableL(TUint32aIapId)[private]

IAP is considered to be removed from the commsdat by third party (someone else external). Seamlessness entries should also be removed.

Parameters

TUint32 aIapIdIap was removed

CleanUpSnapMetadataTableL(TUint32)

voidCleanUpSnapMetadataTableL(TUint32aSnap)[private]

Embedded dest is considered to be removed from the commsdat by third party (someone else external). Snap Metadata entries should also be removed.

Parameters

TUint32 aSnapId was removed

Close()

voidClose()

Performs RollbackTransactionL().

Cmmgr()

CCmManagerImpl *Cmmgr()

Returns pointer to the CmManager object Used in 'R' classes

CommitTransactionL(TInt)

voidCommitTransactionL(TIntaError)[private]
  • Check if the transaction is ours.

  • If yes, commits the transaction.

  • anyway does nothing aError - error id

Parameters

TInt aError

ConnectMethodIdArrayL(RArray< TUint32 > &)

voidConnectMethodIdArrayL(RArray< TUint32 > &aCmIds)

Parameters

RArray< TUint32 > & aCmIds

ConnectionMethodByIDL(TUint32)

CCmPluginBase *ConnectionMethodByIDL(TUint32anIapId)

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

Parameters

TUint32 anIapIdIAP id of the queried connection method

ConnectionMethodCount()

IMPORT_C TIntConnectionMethodCount()

Returns the number of connection methods of the destination

ConnectionMethodDeletedL(const CCmPluginBase &)

voidConnectionMethodDeletedL(const CCmPluginBase &aConnectionMethod)

Notification from child plugin that it was deleted. Remove it from the array and update priorities.

Parameters

const CCmPluginBase & aConnectionMethodchild connection method that was deleted.

ConnectionMethodIndex(TUint32)

TInt ConnectionMethodIndex(TUint32aCmId)[private]

Return the index value of the connection method.

Parameters

TUint32 aCmIdid of the connection method

ConnectionMethodL(TInt)

IMPORT_C CCmPluginBaseEng *ConnectionMethodL(TIntanIndex)

Obsolete

Parameters

TInt anIndex

ConstructL(const TDesC &)

voidConstructL(const TDesC &aName)[private]

Parameters

const TDesC & aName

ConstructL(const TDesC &, TUint32)

voidConstructL(const TDesC &aName,
TUint32aDestId
)[private]

Parameters

const TDesC & aName
TUint32 aDestId

ConstructL(TUint)

voidConstructL(TUintaDestinationId)[private]

Parameters

TUint aDestinationId

CreateConnectionMethodL(TUint32)

CCmPluginBase *CreateConnectionMethodL(TUint32aBearerType)

Create a connection method belonging to the destination

Parameters

TUint32 aBearerType

CreateConnectionMethodL(TUint32, TUint32)

CCmPluginBase *CreateConnectionMethodL(TUint32aBearerType,
TUint32aConnMethId
)

Create a connection method belonging to the destination

Parameters

TUint32 aBearerType- implementation uid of the connection method
TUint32 aConnMethId- Predefined id for the connection method.

CreateConnectionMethodL(TUid, TCmPluginInitParam &)

CCmPluginBase *CreateConnectionMethodL(TUidaImplementationUid,
TCmPluginInitParam &aParams
)[private]

Create a connection method belonging to the destination

Parameters

TUid aImplementationUid- implementation uid of the connection method
TCmPluginInitParam & aParams- plugin init param

CreateDestinationAPTagIdL()

TUint32 CreateDestinationAPTagIdL()[private]

Creates an unique (tag)id to the record of the accesspoint table for this destination.

CreateEmbeddedDestinationPluginL(CPluginItem &, TInt)

voidCreateEmbeddedDestinationPluginL(CPluginItem &aItem,
TIntaDestinationId
)[private]

Create embedded destination plugin.

Parameters

CPluginItem & aItem- plugin item
TInt aDestinationId

DecrementRefCounter()

voidDecrementRefCounter()

Increments the reference counter. Used by the object pool.

DeleteConnectionMethodL(CCmPluginBase &)

voidDeleteConnectionMethodL(CCmPluginBase &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

CCmPluginBase & aConnectionMethodthe connection method to be deleted

DeleteConnectionMethodsL()

voidDeleteConnectionMethodsL()[private]
Delete all connection methods.
Since
S60 3.2

DeleteIAPRecordsL(CommsDat::CMDBRecordBase *)

voidDeleteIAPRecordsL(CommsDat::CMDBRecordBase *aSnapRecord)[private]

Reference to a non-existing IAP found in the SNAP table. Remove the SNAP record and the metadata record of this IAP. IAP is most probably deleted by APEngine.

Parameters

CommsDat::CMDBRecordBase * aSnapRecordSNAP record point to a non-existing IAP

DeleteLD()

IMPORT_C voidDeleteLD()

Deletes it's connection methods from comms.dat (unless shared) then deletes itself

DeleteRelatedRecordsL(TInt)

voidDeleteRelatedRecordsL(TIntaCount)[private]

Deletes all the recordsrelated to this Destination to be deleted.

Parameters

TInt aCount

ElementId()

TUint32 ElementId()[inline]

Returns the destination's ElementId attribute

EmbeddedL()

CCmDestinationImpl *EmbeddedL()

Returns pointer to embedded destination if there is any

FindConnectionMethodL(const CCmPluginBase &)

TInt FindConnectionMethodL(const CCmPluginBase &aConnectionMethod)[private]

Find the connection method in iConnMethodArray.

Parameters

const CCmPluginBase & aConnectionMethodconnection method to be searched for

FindConnectionMethodL(const CCmPluginBaseEng &)

TInt FindConnectionMethodL(const CCmPluginBaseEng &aConnectionMethod)[private]

Find the connection method in iConnMethodArray.

Parameters

const CCmPluginBaseEng & aConnectionMethodconnection method to be searched for

GetConnectionMethodL(TInt)

IMPORT_C CCmPluginBase *GetConnectionMethodL(TIntanIndex)

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

Parameters

TInt anIndex

GetData()

CCmDestinationData *GetData()

Returns iData. Used by the object pool and the API oprators.

GetDestinationAPTagId()

TUint32 GetDestinationAPTagId()

Returns the Id of this Destination which is used to identify the Destination. It is the Id saved to Destination Access Point's Tag field.

GetRefCounter()

TInt GetRefCounter()

Returns the reference counter. Used by the object pool.

HasEmbeddedL()

TBool HasEmbeddedL()[private]
Check if the destination contains and embedded destination
Since
S60 3.2

IconIdL(CCmManagerImpl &, CommsDat::TMDBElementId)

CGulIcon *IconIdL(CCmManagerImpl &aCmMgr,
CommsDat::TMDBElementIdaId
)[static]

Parameters

CCmManagerImpl & aCmMgr
CommsDat::TMDBElementId aId

IconL()

IMPORT_C CGulIcon *IconL()

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

IconL(TInt)

CGulIcon *IconL(TIntaIconIndex)[private, static]

Parameters

TInt aIconIndex

Id()

TUint32 Id()[inline]

Returns the destination's Id attribute

IdIsValid()

TBool IdIsValid()

Indicates if the Id is valid or if this is a new object which sitll haven't been updated. Used by the object pool.

IncrementRefCounter()

voidIncrementRefCounter()

Increments the reference counter. Used by the object pool.

InitializeDestAPRecordL()

voidInitializeDestAPRecordL()[private]

Initializes the Destination AccessPoint record deleted.

InsertPriorityMethodL(TUint32, TUint32)

TInt InsertPriorityMethodL(TUint32aPrio,
TUint32aExtLevel
)[private]

Determines the position of the inserted item into the cm list. This determination is based on the priority and the extension level of the cm's.

Parameters

TUint32 aPriodefault bearer type of the inserted cm
TUint32 aExtLevelextension level of the inserted cm

InsertSameMethodL(TUint32, TBool)

TInt InsertSameMethodL(TUint32aBearerType,
TBoolaIsVirtual
)[private]

Determines the position of the inserted item into the cm list. This determination is based on the similarity of the bearer types. The inserted position is just after the last item with the same bearer type and virtuality - if exist else -1.

Parameters

TUint32 aBearerTypebearer type od the inserted cm
TBool aIsVirtualvirtuality of the inserted cm

IsConnectedL()

IMPORT_C TBoolIsConnectedL()const

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

IsHidden()

IMPORT_C TBoolIsHidden()

Returns that the destination is hidden or not.

LoadConnectionMethodsL()

voidLoadConnectionMethodsL()[private]

Load connection methods of the destination

LoadDestAPRecordL(TUint32)

voidLoadDestAPRecordL(TUint32aDestinationId)[private]

Load Destination AP record. Destination id is passed, because id is from the client application, and destinaion id is the network id for them. :)

Parameters

TUint32 aDestinationIdnetwork record id

LoadEmbeddedDestinationPluginL(CPluginItem &)

voidLoadEmbeddedDestinationPluginL(CPluginItem &aItem)[private]

Load embedded destination plugin.

Parameters

CPluginItem & aItem- plugin item

LoadNetworkRecordL(TUint32)

voidLoadNetworkRecordL(TUint32aDestinationId)[private]

Load network record. Destination id is passed, because id is from the client application, and destinaion id is the network id for them. :)

Parameters

TUint32 aDestinationIdnetwork record id

LoadPluginL(CPluginItem &)

voidLoadPluginL(CPluginItem &aItem)[private]

Create and load plugin.

Parameters

CPluginItem & aItem

LoadSNAPMetadataTableL()

voidLoadSNAPMetadataTableL()[private]

Load SNAP Metadata table

MetadataL(CMManager::TSnapMetadataField)

TUint32 MetadataL(CMManager::TSnapMetadataFieldaMetaField)const

Returns the Metadata

Parameters

CMManager::TSnapMetadataField aMetaField

ModifyPriorityL(CCmPluginBase &, TUint)

voidModifyPriorityL(CCmPluginBase &aCCMItem,
TUintaIndex
)

Set the CCMItem's priority based on the passed new index

Parameters

CCmPluginBase & aCCMItemThe connection method item
TUint aIndexThe new index of the item in the list

NameLC()

IMPORT_C HBufC *NameLC()

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

NewL(CCmManagerImpl &, const TDesC &)

IMPORT_C CCmDestinationImpl *NewL(CCmManagerImpl &aCmMgr,
const TDesC &aName
)[static]

Epoc constructor This should be used only by the object pool

Parameters

CCmManagerImpl & aCmMgr
const TDesC & aName

NewL(CCmManagerImpl &, CCmDestinationData *)

CCmDestinationImpl *NewL(CCmManagerImpl &aCmMgr,
CCmDestinationData *aData
)[static]

Epoc constructor This should be used only by the object pool

Parameters

CCmManagerImpl & aCmMgr
CCmDestinationData * aData

NewL(CCmManagerImpl &, TUint)

IMPORT_C CCmDestinationImpl *NewL(CCmManagerImpl &aCmMgr,
TUintaDestinationId
)[static]

Epoc constructor This should be used only by the object pool

Parameters

CCmManagerImpl & aCmMgr
TUint aDestinationId

NewL(CCmManagerImpl &, const TDesC &, TUint32)

CCmDestinationImpl *NewL(CCmManagerImpl &aCmMgr,
const TDesC &aName,
TUint32aDestId
)[static]

Epoc constructor This should be used only by the object pool

Parameters

CCmManagerImpl & aCmMgr
const TDesC & aName
TUint32 aDestId

NewLC(CCmDestinationData *)

CCmDestinationImpl *NewLC(CCmDestinationData *aData)[static]

Epoc constructor This should be used only by the 'R' classes

Parameters

CCmDestinationData * aData

OpenTransactionLC()

voidOpenTransactionLC()[private]
  • Check if transaction is already opened

  • Set iOwnTransaction is not and opens it and put 'this' on cleanup&close stack

PluginClosed(CCmPluginBase *)

voidPluginClosed(CCmPluginBase *aPlugin)

Set iPlugin to NULL in plugin array, but not delete it. Next reference to this connection method will load the plugin again.

Parameters

CCmPluginBase * aPlugin

PrioDataL(CPluginItem *, TUint32 &, TUint32 &, TUint32 &)

TBool PrioDataL(CPluginItem *aItem,
TUint32 &aRetPrio,
TUint32 &aRetBearer,
TUint32 &aRetExtLevel
)[private]

Retrieves the base of the priority counts in cm list It is the data of the plugin in case of none VPN. It is the data of the underlying cm in case of VPN over cm. It is "wildcard" in case of VPN over destination. aRetBearer and aRetExtLevel are not filled in this case

Parameters

CPluginItem * aItemthe plugin list item which data is get
TUint32 & aRetPriothe default priority of the cm in return
TUint32 & aRetBearerthe bearer of the cm in return
TUint32 & aRetExtLevelthe extenson level of the cm in return

PriorityL(CCmPluginBaseEng &)

TUint PriorityL(CCmPluginBaseEng &aCCMItem)

Obsolete

Parameters

CCmPluginBaseEng & aCCMItem

PriorityL(CCmPluginBase &)

TUint PriorityL(CCmPluginBase &aCCMItem)

Return the priority of the passed connection method

Parameters

CCmPluginBase & aCCMItemqueried connection method

ProtectionLevel()

IMPORT_C CMManager::TProtectionLevelProtectionLevel()

Returns that the destination is protected or not.

ProtectionLevel(CCDSNAPMetadataRecord *)

CMManager::TProtectionLevel ProtectionLevel(CCDSNAPMetadataRecord *aMetaDataRec)[private, static]

Parameters

CCDSNAPMetadataRecord * aMetaDataRec

ProtectionLevelL(CCmManagerImpl &, CommsDat::TMDBElementId)

CMManager::TProtectionLevel ProtectionLevelL(CCmManagerImpl &aCmMgr,
CommsDat::TMDBElementIdaId
)[static]

Parameters

CCmManagerImpl & aCmMgr
CommsDat::TMDBElementId aId

ReLoadConnectionMethodsL()

voidReLoadConnectionMethodsL()

Reload connection method under this destination so as to keep synchronization with CommsDat

RemoveConnectionMethodL(const CCmPluginBase &)

voidRemoveConnectionMethodL(const CCmPluginBase &aConnectionMethod)

Remove connection method from the destination

Parameters

const CCmPluginBase & aConnectionMethodconnection method to be removed

RemoveConnectionMethodL(const CCmPluginBaseEng &)

voidRemoveConnectionMethodL(const CCmPluginBaseEng &aConnectionMethod)

Remove connection method from the destination

Parameters

const CCmPluginBaseEng & aConnectionMethodconnection method to be removed

RemoveFromPool()

IMPORT_C voidRemoveFromPool()

Removes this destination from the object pool.

RollbackTransaction()

voidRollbackTransaction()[private]

Rollback transaction.

Session()

CommsDat::CMDBSession &Session()const [private]

Returns the CommsDat session. Do not close!

SetAttribute(CommsDat::CMDBRecordBase *, TUint32, TBool)

voidSetAttribute(CommsDat::CMDBRecordBase *aRecord,
TUint32aAttribute,
TBoolaSet
)[private]

Set or clear attribute record of which the attribute is to be set or clear attribute to be set or clear ETrue to set

Parameters

CommsDat::CMDBRecordBase * aRecord
TUint32 aAttribute
TBool aSet

SetData(CCmDestinationData *)

voidSetData(CCmDestinationData *aData)

Used by the object pool and the API oprators.

Parameters

CCmDestinationData * aData

SetDefaultCprL()

voidSetDefaultCprL()[private]

Sets the default Connection Provider to the accesspoint record for this destination.

SetDefaultMCprL()

voidSetDefaultMCprL()[private]

Sets the default Meta Connection Provider to the accesspoint record for this destination.

SetDefaultProtocolL()

voidSetDefaultProtocolL()[private]

Sets the default Protocol to the accesspoint record for this destination.

SetDefaultSCprL()

voidSetDefaultSCprL()[private]

Sets the default Subconnection Provider to the accesspoint record for this destination.

SetDefaultTierManagerL()

voidSetDefaultTierManagerL()[private]

Sets the default Tier Manager to the accesspoint record for this destination.

SetHiddenL(TBool)

IMPORT_C voidSetHiddenL(TBoolaHidden)

Set that the destination is hidden or not.

Parameters

TBool aHidden- True if it 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

SetIdL(TInt)

voidSetIdL(TIntaDestId)[private]

Sets the given (tag)id to the accesspoint record

Parameters

TInt aDestIdId to be set

SetMetadataL(CMManager::TSnapMetadataField, TUint32)

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 attribute. Leaves if the name already exists

Parameters

const TDesC & aName

SetProtectionL(CMManager::TProtectionLevel)

IMPORT_C voidSetProtectionL(CMManager::TProtectionLevelaProtectionLevel)

Set the protection of the destination.

Parameters

CMManager::TProtectionLevel aProtectionLevel

SortRecordsByPriority(const CommsDat::CMDBRecordBase &, const CommsDat::CMDBRecordBase &)

TInt SortRecordsByPriority(const CommsDat::CMDBRecordBase &aLeft,
const CommsDat::CMDBRecordBase &aRight
)[private, static]

Compare two records from DNIAP by their priority field.

Parameters

const CommsDat::CMDBRecordBase & aLeftone record from DN_IAP table.
const CommsDat::CMDBRecordBase & aRightone record from DN_IAP table.

UpdateConnectionMethodsL()

voidUpdateConnectionMethodsL()[private]

Update every connection method.

UpdateDestAPRecordL()

voidUpdateDestAPRecordL()[private]

Create or update the record of the accesspoint table for this destination.

UpdateL()

IMPORT_C voidUpdateL()

Update all the attributes of the Connection Methods and the Destination.

UpdateNetworkRecordL()

voidUpdateNetworkRecordL()[private]

Create or update the record of the network table for this destination.

UpdateProtectionL()

voidUpdateProtectionL()[private]

Update protection attributes of every connection method if changed.

UpdateSNAPMetadataTableL()

voidUpdateSNAPMetadataTableL()[private]

Update the SNAP Metadata table

UpdateSNAPTableL()

voidUpdateSNAPTableL()[private]

Update the SNAP table

Member Data Documentation

CCmManagerImpl & iCmMgr

CCmManagerImpl &iCmMgr[private]

CCmDestinationData * iData

CCmDestinationData *iData[private]