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 &)
void CheckIfEmbeddedL ( TInt )
void Close ()
CCmManagerImpl * Cmmgr ()
void ConnectMethodIdArrayL ( RArray < TUint32 > &)
CCmPluginBase * ConnectionMethodByIDL ( TUint32 )
IMPORT_C TInt ConnectionMethodCount ()
void ConnectionMethodDeletedL (const CCmPluginBase &)
IMPORT_C CCmPluginBaseEng * ConnectionMethodL ( TInt )
CCmPluginBase * CreateConnectionMethodL ( TUint32 )
CCmPluginBase * CreateConnectionMethodL ( TUint32 , TUint32 )
void DecrementRefCounter ()
void DeleteConnectionMethodL ( CCmPluginBase &)
IMPORT_C void DeleteLD ()
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 ()
void IncrementRefCounter ()
IMPORT_C TBool IsConnectedL ()
IMPORT_C TBool IsHidden ()
TUint32 MetadataL ( CMManager::TSnapMetadataField )
void ModifyPriorityL ( 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 *)
void PluginClosed ( CCmPluginBase *)
TUint PriorityL ( CCmPluginBaseEng &)
TUint PriorityL ( CCmPluginBase &)
IMPORT_C CMManager::TProtectionLevel ProtectionLevel ()
CMManager::TProtectionLevel ProtectionLevelL ( CCmManagerImpl &, CommsDat::TMDBElementId )
void ReLoadConnectionMethodsL ()
void RemoveConnectionMethodL (const CCmPluginBase &)
void RemoveConnectionMethodL (const CCmPluginBaseEng &)
IMPORT_C void RemoveFromPool ()
void SetData ( CCmDestinationData *)
IMPORT_C void SetHiddenL ( TBool )
IMPORT_C void SetIconL ( TUint32 )
void SetMetadataL ( CMManager::TSnapMetadataField , TUint32 )
IMPORT_C void SetNameL (const TDesC &)
IMPORT_C void SetProtectionL ( CMManager::TProtectionLevel )
IMPORT_C void UpdateL ()
Private Member Functions
CCmDestinationImpl ( CCmManagerImpl &)
TInt AddToArrayL ( CPluginItem *)
void CheckIfDestinationIdExistsL ( TUint32 )
void CheckIfDestinationNameExistL (const TDesC &)
void CheckIfInternetExistsL ()
void CheckIfLocalisedDestExistL ( TUint32 )
void CheckIfNameModifiedL ( CCDSnapRecord *)
void CheckIfPurposeExistL ( TUint32 )
void CheckIfReferencedByVirtualCML ()
void CleanUpEmbeddedL ( TUint32 )
void CleanUpSeamlessnessTableL ( TUint32 )
void CleanUpSnapMetadataTableL ( TUint32 )
void CommitTransactionL ( TInt )
TInt ConnectionMethodIndex ( TUint32 )
void ConstructL (const TDesC &)
void ConstructL (const TDesC &, TUint32 )
void ConstructL ( TUint )
CCmPluginBase * CreateConnectionMethodL ( TUid , TCmPluginInitParam &)
TUint32 CreateDestinationAPTagIdL ()
void CreateEmbeddedDestinationPluginL ( CPluginItem &, TInt )
void DeleteConnectionMethodsL ()
void DeleteIAPRecordsL ( CommsDat::CMDBRecordBase *)
void DeleteRelatedRecordsL ( TInt )
TInt FindConnectionMethodL (const CCmPluginBase &)
TInt FindConnectionMethodL (const CCmPluginBaseEng &)
TBool HasEmbeddedL ()
CGulIcon * IconL ( TInt )
void InitializeDestAPRecordL ()
TInt InsertPriorityMethodL ( TUint32 , TUint32 )
TInt InsertSameMethodL ( TUint32 , TBool )
void LoadConnectionMethodsL ()
void LoadDestAPRecordL ( TUint32 )
void LoadEmbeddedDestinationPluginL ( CPluginItem &)
void LoadNetworkRecordL ( TUint32 )
void LoadPluginL ( CPluginItem &)
void LoadSNAPMetadataTableL ()
void OpenTransactionLC ()
TBool PrioDataL ( CPluginItem *, TUint32 &, TUint32 &, TUint32 &)
CMManager::TProtectionLevel ProtectionLevel ( CCDSNAPMetadataRecord *)
void RollbackTransaction ()
CommsDat::CMDBSession & Session ()
void SetAttribute ( CommsDat::CMDBRecordBase *, TUint32 , TBool )
void SetDefaultCprL ()
void SetDefaultMCprL ()
void SetDefaultProtocolL ()
void SetDefaultSCprL ()
void SetDefaultTierManagerL ()
void SetIdL ( TInt )
TInt SortRecordsByPriority (const CommsDat::CMDBRecordBase &, const CommsDat::CMDBRecordBase &)
void UpdateConnectionMethodsL ()
void UpdateDestAPRecordL ()
void UpdateNetworkRecordL ()
void UpdateProtectionL ()
void UpdateSNAPMetadataTableL ()
void UpdateSNAPTableL ()
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 * aItem An 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 & aConnectionMethod Connection Method to be checked whether it already exists.

CheckIfDestinationIdExistsL(TUint32)

void CheckIfDestinationIdExistsL ( TUint32 aDestId ) [private]

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

Parameters

TUint32 aDestId Id to be checked

CheckIfDestinationNameExistL(const TDesC &)

void CheckIfDestinationNameExistL ( const TDesC & aName ) [private]

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

Parameters

const TDesC & aName destination name

CheckIfEmbeddedL(TInt)

void CheckIfEmbeddedL ( TInt aId )

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

Parameters

TInt aId

CheckIfInternetExistsL()

void CheckIfInternetExistsL ( ) [private]

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

CheckIfLocalisedDestExistL(TUint32)

void CheckIfLocalisedDestExistL ( TUint32 aValue ) [private]

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

Parameters

TUint32 aValue

CheckIfNameModifiedL(CCDSnapRecord *)

void CheckIfNameModifiedL ( 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 * aRecord record to be checked and updated if needed

CheckIfPurposeExistL(TUint32)

void CheckIfPurposeExistL ( TUint32 aValue ) [private]

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

Parameters

TUint32 aValue

CheckIfReferencedByVirtualCML()

void CheckIfReferencedByVirtualCML ( ) [private]

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

CleanUpEmbeddedL(TUint32)

void CleanUpEmbeddedL ( TUint32 aDestId ) [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)

void CleanUpSeamlessnessTableL ( TUint32 aIapId ) [private]

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

Parameters

TUint32 aIapId Iap was removed

CleanUpSnapMetadataTableL(TUint32)

void CleanUpSnapMetadataTableL ( TUint32 aSnap ) [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 aSnap Id was removed

Close()

void Close ( )

Performs RollbackTransactionL().

Cmmgr()

CCmManagerImpl * Cmmgr ( )

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

CommitTransactionL(TInt)

void CommitTransactionL ( TInt aError ) [private]
  • Check if the transaction is ours.

  • If yes, commits the transaction.

  • anyway does nothing aError - error id

Parameters

TInt aError

ConnectMethodIdArrayL(RArray< TUint32 > &)

void ConnectMethodIdArrayL ( RArray < TUint32 > & aCmIds )

Parameters

RArray < TUint32 > & aCmIds

ConnectionMethodByIDL(TUint32)

CCmPluginBase * ConnectionMethodByIDL ( TUint32 anIapId )

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

Parameters

TUint32 anIapId IAP id of the queried connection method

ConnectionMethodCount()

IMPORT_C TInt ConnectionMethodCount ( )

Returns the number of connection methods of the destination

ConnectionMethodDeletedL(const CCmPluginBase &)

void ConnectionMethodDeletedL ( const CCmPluginBase & aConnectionMethod )

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

Parameters

const CCmPluginBase & aConnectionMethod child connection method that was deleted.

ConnectionMethodIndex(TUint32)

TInt ConnectionMethodIndex ( TUint32 aCmId ) [private]

Return the index value of the connection method.

Parameters

TUint32 aCmId id of the connection method

ConnectionMethodL(TInt)

IMPORT_C CCmPluginBaseEng * ConnectionMethodL ( TInt anIndex )

Obsolete

Parameters

TInt anIndex

ConstructL(const TDesC &)

void ConstructL ( const TDesC & aName ) [private]

Parameters

const TDesC & aName

ConstructL(const TDesC &, TUint32)

void ConstructL ( const TDesC & aName,
TUint32 aDestId
) [private]

Parameters

const TDesC & aName
TUint32 aDestId

ConstructL(TUint)

void ConstructL ( TUint aDestinationId ) [private]

Parameters

TUint aDestinationId

CreateConnectionMethodL(TUint32)

CCmPluginBase * CreateConnectionMethodL ( TUint32 aBearerType )

Create a connection method belonging to the destination

Parameters

TUint32 aBearerType

CreateConnectionMethodL(TUint32, TUint32)

CCmPluginBase * CreateConnectionMethodL ( TUint32 aBearerType,
TUint32 aConnMethId
)

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 ( TUid aImplementationUid,
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)

void CreateEmbeddedDestinationPluginL ( CPluginItem & aItem,
TInt aDestinationId
) [private]

Create embedded destination plugin.

Parameters

CPluginItem & aItem - plugin item
TInt aDestinationId

DecrementRefCounter()

void DecrementRefCounter ( )

Increments the reference counter. Used by the object pool.

DeleteConnectionMethodL(CCmPluginBase &)

void DeleteConnectionMethodL ( 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 & aConnectionMethod the connection method to be deleted

DeleteConnectionMethodsL()

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

DeleteIAPRecordsL(CommsDat::CMDBRecordBase *)

void DeleteIAPRecordsL ( 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 * aSnapRecord SNAP record point to a non-existing IAP

DeleteLD()

IMPORT_C void DeleteLD ( )

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

DeleteRelatedRecordsL(TInt)

void DeleteRelatedRecordsL ( TInt aCount ) [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 & aConnectionMethod connection method to be searched for

FindConnectionMethodL(const CCmPluginBaseEng &)

TInt FindConnectionMethodL ( const CCmPluginBaseEng & aConnectionMethod ) [private]

Find the connection method in iConnMethodArray.

Parameters

const CCmPluginBaseEng & aConnectionMethod connection method to be searched for

GetConnectionMethodL(TInt)

IMPORT_C CCmPluginBase * GetConnectionMethodL ( TInt anIndex )

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::TMDBElementId aId
) [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 ( TInt aIconIndex ) [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()

void IncrementRefCounter ( )

Increments the reference counter. Used by the object pool.

InitializeDestAPRecordL()

void InitializeDestAPRecordL ( ) [private]

Initializes the Destination AccessPoint record deleted.

InsertPriorityMethodL(TUint32, TUint32)

TInt InsertPriorityMethodL ( TUint32 aPrio,
TUint32 aExtLevel
) [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 aPrio default bearer type of the inserted cm
TUint32 aExtLevel extension level of the inserted cm

InsertSameMethodL(TUint32, TBool)

TInt InsertSameMethodL ( TUint32 aBearerType,
TBool aIsVirtual
) [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 aBearerType bearer type od the inserted cm
TBool aIsVirtual virtuality of the inserted cm

IsConnectedL()

IMPORT_C TBool IsConnectedL ( ) const

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

IsHidden()

IMPORT_C TBool IsHidden ( )

Returns that the destination is hidden or not.

LoadConnectionMethodsL()

void LoadConnectionMethodsL ( ) [private]

Load connection methods of the destination

LoadDestAPRecordL(TUint32)

void LoadDestAPRecordL ( TUint32 aDestinationId ) [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 aDestinationId network record id

LoadEmbeddedDestinationPluginL(CPluginItem &)

void LoadEmbeddedDestinationPluginL ( CPluginItem & aItem ) [private]

Load embedded destination plugin.

Parameters

CPluginItem & aItem - plugin item

LoadNetworkRecordL(TUint32)

void LoadNetworkRecordL ( TUint32 aDestinationId ) [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 aDestinationId network record id

LoadPluginL(CPluginItem &)

void LoadPluginL ( CPluginItem & aItem ) [private]

Create and load plugin.

Parameters

CPluginItem & aItem

LoadSNAPMetadataTableL()

void LoadSNAPMetadataTableL ( ) [private]

Load SNAP Metadata table

MetadataL(CMManager::TSnapMetadataField)

TUint32 MetadataL ( CMManager::TSnapMetadataField aMetaField ) const

Returns the Metadata

Parameters

CMManager::TSnapMetadataField aMetaField

ModifyPriorityL(CCmPluginBase &, TUint)

void ModifyPriorityL ( CCmPluginBase & aCCMItem,
TUint aIndex
)

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

Parameters

CCmPluginBase & aCCMItem The connection method item
TUint aIndex The 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,
TUint aDestinationId
) [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,
TUint32 aDestId
) [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()

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

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

PluginClosed(CCmPluginBase *)

void PluginClosed ( 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 * aItem the plugin list item which data is get
TUint32 & aRetPrio the default priority of the cm in return
TUint32 & aRetBearer the bearer of the cm in return
TUint32 & aRetExtLevel the 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 & aCCMItem queried connection method

ProtectionLevel()

IMPORT_C CMManager::TProtectionLevel ProtectionLevel ( )

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::TMDBElementId aId
) [static]

Parameters

CCmManagerImpl & aCmMgr
CommsDat::TMDBElementId aId

ReLoadConnectionMethodsL()

void ReLoadConnectionMethodsL ( )

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

RemoveConnectionMethodL(const CCmPluginBase &)

void RemoveConnectionMethodL ( const CCmPluginBase & aConnectionMethod )

Remove connection method from the destination

Parameters

const CCmPluginBase & aConnectionMethod connection method to be removed

RemoveConnectionMethodL(const CCmPluginBaseEng &)

void RemoveConnectionMethodL ( const CCmPluginBaseEng & aConnectionMethod )

Remove connection method from the destination

Parameters

const CCmPluginBaseEng & aConnectionMethod connection method to be removed

RemoveFromPool()

IMPORT_C void RemoveFromPool ( )

Removes this destination from the object pool.

RollbackTransaction()

void RollbackTransaction ( ) [private]

Rollback transaction.

Session()

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

Returns the CommsDat session. Do not close!

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

void SetAttribute ( CommsDat::CMDBRecordBase * aRecord,
TUint32 aAttribute,
TBool aSet
) [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 *)

void SetData ( CCmDestinationData * aData )

Used by the object pool and the API oprators.

Parameters

CCmDestinationData * aData

SetDefaultCprL()

void SetDefaultCprL ( ) [private]

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

SetDefaultMCprL()

void SetDefaultMCprL ( ) [private]

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

SetDefaultProtocolL()

void SetDefaultProtocolL ( ) [private]

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

SetDefaultSCprL()

void SetDefaultSCprL ( ) [private]

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

SetDefaultTierManagerL()

void SetDefaultTierManagerL ( ) [private]

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

SetHiddenL(TBool)

IMPORT_C void SetHiddenL ( TBool aHidden )

Set that the destination is hidden or not.

Parameters

TBool aHidden - True if it is hidden.

SetIconL(TUint32)

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

Parameters

TUint32 anIndex

SetIdL(TInt)

void SetIdL ( TInt aDestId ) [private]

Sets the given (tag)id to the accesspoint record

Parameters

TInt aDestId Id to be set

SetMetadataL(CMManager::TSnapMetadataField, TUint32)

void SetMetadataL ( CMManager::TSnapMetadataField aMetaField,
TUint32 aValue
)

Set the Metadata

Parameters

CMManager::TSnapMetadataField aMetaField field to be modified
TUint32 aValue value to be set

SetNameL(const TDesC &)

IMPORT_C void SetNameL ( const TDesC & aName )

Set the destination's Name attribute. Leaves if the name already exists

Parameters

const TDesC & aName

SetProtectionL(CMManager::TProtectionLevel)

IMPORT_C void SetProtectionL ( CMManager::TProtectionLevel aProtectionLevel )

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 & aLeft one record from DN_IAP table.
const CommsDat::CMDBRecordBase & aRight one record from DN_IAP table.

UpdateConnectionMethodsL()

void UpdateConnectionMethodsL ( ) [private]

Update every connection method.

UpdateDestAPRecordL()

void UpdateDestAPRecordL ( ) [private]

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

UpdateL()

IMPORT_C void UpdateL ( )

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

UpdateNetworkRecordL()

void UpdateNetworkRecordL ( ) [private]

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

UpdateProtectionL()

void UpdateProtectionL ( ) [private]

Update protection attributes of every connection method if changed.

UpdateSNAPMetadataTableL()

void UpdateSNAPMetadataTableL ( ) [private]

Update the SNAP Metadata table

UpdateSNAPTableL()

void UpdateSNAPTableL ( ) [private]

Update the SNAP table

Member Data Documentation

CCmManagerImpl & iCmMgr

CCmManagerImpl & iCmMgr [private]

CCmDestinationData * iData

CCmDestinationData * iData [private]