CCmPluginBaseEng Class Reference

class CCmPluginBaseEng : public CBase

CCmPluginBaseEng is base class for every connection method plugin

cmmanager.lib
Since
S60 v3.2

Inherits from

Public Member Functions
~CCmPluginBaseEng()
TBool CanHandleIapIdL(TUint32)
TBool CanHandleIapIdL(CommsDat::CCDIAPRecord *)
IMPORT_C voidCheckDNSServerAddressL(TBool, CommsDat::CMDBField< TDesC > &, CommsDat::CMDBField< TDesC > &, CommsDat::CMDBField< TBool > &)
IMPORT_C TBoolCheckSpaceBelowCriticalLevelL()
CCmManagerImpl &CmMgr()
IMPORT_C const TCmAttribConvTable *ConvTableItem(TUint32)
IMPORT_C CCmPluginBaseEng *CreateCopyL()
CCmPluginBaseEng *CreateInstanceL(TCmPluginInitParam &)
IMPORT_C voidCreateNewL()
voidDecrementRefCounter()
IMPORT_C TBoolDeleteL(TBool, TBool)
IMPORT_C CCmDestinationImpl *Destination()
IMPORT_C TBoolFeatureSupported(TInt)
voidFilterPossibleParentsL(RArray< TUint32 > &)
IMPORT_C voidGetAdditionalUids(RArray< TUint32 > &)
IMPORT_C TBoolGetBoolAttributeL(const TUint32)
IMPORT_C TUint32GetIntAttributeL(const TUint32)
TInt GetRefCounter()
IMPORT_C HBufC8 *GetString8AttributeL(const TUint32)
IMPORT_C HBufC *GetStringAttributeL(const TUint32)
IMPORT_C CommsDat::TMDBElementIdIAPRecordElementId()
TBool IdIsValid()
voidIncrementRefCounter()
TBool InitializeWithUiL(TBool)
TBool IsLinkedToIap(TUint32)
TBool IsLinkedToSnap(TUint32)
IMPORT_C TBoolIsProtected()
IMPORT_C voidLoadL(TUint32)
IMPORT_C TIntNumOfConnMethodReferencesL()
IMPORT_C CCmDestinationImpl *ParentDestination()
IMPORT_C voidRestoreAttributeL(const TUint32)
TInt RunSettingsL()
IMPORT_C CommsDat::CMDBSession &Session()
IMPORT_C voidSetBoolAttributeL(const TUint32, TBool)
IMPORT_C voidSetDNSServerAddressL(TUint32, const TDesC &, TUint32, const TDesC &, TUint32, TBool)
voidSetIdValidity(TBool)
IMPORT_C voidSetIntAttributeL(const TUint32, TUint32)
IMPORT_C voidSetPreDefinedId(const TUint32)
TBool SetProxyServerNameL(const TDesC &)
IMPORT_C voidSetString8AttributeL(const TUint32, const TDesC8 &)
IMPORT_C voidSetStringAttributeL(const TUint32, const TDesC16 &)
IMPORT_C voidUpdateL()
Protected Member Functions
CCmPluginBaseEng(TCmPluginInitParam *)
IMPORT_C voidAddCommonConversionTableL(const TCmCommonAttrConvArrayItem *)
IMPORT_C voidAddConverstionTableL(CommsDat::CCDRecordBase **, TBool *, const TCmAttribConvTable *)
IMPORT_C voidAddResourceFileL(const TDesC &)
voidAdditionalReset()
IMPORT_C HBufC *AllocReadL(TInt)
voidBearerRecordIdLC(HBufC *&, TUint32 &)
IMPORT_C TBoolCheckIfAlreadyConnected()
IMPORT_C voidCheckIfNameModifiedL(CommsDat::CCDRecordBase *)
voidCommitTransactionL(TInt)
IMPORT_C voidConstructL()
voidCopyAdditionalDataL(CCmPluginBaseEng &)
voidCreateAdditionalRecordsL()
voidCreateNewServiceRecordL()
voidDeleteAdditionalRecordsL()
IMPORT_C TIntGlobalBearerPriority(const TDesC &)
IMPORT_C TIntGlobalUiBearerPriority(const TDesC &)
voidLoadAdditionalRecordsL()
IMPORT_C voidLoadServiceSettingL()
voidOpenTransactionLC()
voidPrepareToCopyDataL(CCmPluginBaseEng &)
voidPrepareToDeleteRecordsL()
IMPORT_C voidPrepareToLoadRecordsL()
IMPORT_C voidPrepareToUpdateRecordsL()
IMPORT_C voidRemoveCommonConversionTable(const TCmCommonAttrConvArrayItem *)
IMPORT_C voidRemoveConversionTable(const TCmAttribConvTable *)
IMPORT_C voidRemoveResourceFile(const TDesC &)
IMPORT_C voidReset()
voidRollbackTransaction()
voidServiceRecordIdLC(HBufC *&, TUint32 &)
voidUpdateAdditionalRecordsL()
IMPORT_C voidUpdateServiceRecordL()
Private Member Functions
TUint32 CheckForCommonAttribute(const TUint32)
TUint32 CommonAttribute(const TUint32)
TCmAttrConvArrayItem *ConversionTable(TUint32)
voidCopyAttributes(CommsDat::CCDRecordBase *, CommsDat::CCDRecordBase *)
voidDoLoadL(TUint32)
HBufC *DoMakeValidNameL(const TDesC &)
voidEnableChargeCardL(TBool)
voidEnableLocationL(TBool)
voidEnableProxyL(TBool)
HBufC *EnsureMaxLengthLC(const TDesC &, TBool &)
HBufC *EscapeTextLC(const TDesC &)
CommsDat::CMDBElement &FieldByAttributeL(const TCmAttrConvArrayItem *, const TUint32, TInt &)
TValidationFunctionL FindFieldL(TUint32, TCMFieldTypes, CommsDat::CMDBElement *&)
CCDIAPMetadataRecord *FindSeamlessnessRecordL()
CommsDat::CCDWAPIPBearerRecord *FindWAPRecordL()
voidGenericStringWriterL(const TUint32, const TDesC16 &)
TUint32 GetLocationIdL()
TInt GetPostfix(const TDesC &, const TDesC &)
TPtrC GetPrefix(const TDesC &)
TBool IsValidNameL(const TDesC &)
voidLoadChargeCardSettingL(TUint32)
voidLoadIAPRecordL(TUint32)
voidLoadLocationSettingL()
voidLoadNetworkSettingL()
voidLoadProxySettingL()
voidLoadSeamlessnessRecordL()
voidLoadWapRecordL()
TUint32 MappedCommonAttribute(const TUint32)
CCDIAPMetadataRecord *NewSeamlessnessRecordL(TBool)
voidNewWapRecordL()
voidSetAttribute(CommsDat::CCDRecordBase *, TUint32, TBool)
voidSetNameL(const TDesC &)
voidUpdateChargeCardRecordL()
voidUpdateConnPrefSettingL()
voidUpdateIAPRecordL()
voidUpdateLocationRecordL()
voidUpdateNetworkRecordL()
voidUpdateProxyRecordL()
voidUpdateSeamlessnessRecordL()
voidUpdateWapRecordL()
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()
Public Attributes
TUid iDtor_ID_Key
Protected Attributes
TUint32 iBearerType
TBool iChargeCardEnabled
CommsDat::CCDChargecardRecord *iChargeCardRecord
CCmManagerImpl &iCmMgr
TUint32 iIapId
CommsDat::CCDIAPRecord *iIapRecord
TUint32 iInvalidAttribute
TBool iLocationEnabled
CommsDat::CCDLocationRecord *iLocationRecord
CommsDat::CCDNetworkRecord *iNetworkRecord
TUint32 iParentDest
CommsDat::CCDProxiesRecord *iProxyRecord
CommsDat::CCDRecordBase *iServiceRecord
Private Attributes
TBool iIdIsValid
TUint32 iPreDefIapId
CCmPluginBasePrivate *iPriv
TInt iRefCounter

Constructor & Destructor Documentation

CCmPluginBaseEng(TCmPluginInitParam *)

IMPORT_CCCmPluginBaseEng(TCmPluginInitParam *aInitParam)[protected]

Constructor

Parameters

TCmPluginInitParam * aInitParam

~CCmPluginBaseEng()

IMPORT_C~CCmPluginBaseEng()[virtual]

Destructor.

Member Functions Documentation

AddCommonConversionTableL(const TCmCommonAttrConvArrayItem *)

IMPORT_C voidAddCommonConversionTableL(const TCmCommonAttrConvArrayItem *aConvTable)[protected]

Parameters

const TCmCommonAttrConvArrayItem * aConvTable

AddConverstionTableL(CommsDat::CCDRecordBase **, TBool *, const TCmAttribConvTable *)

IMPORT_C voidAddConverstionTableL(CommsDat::CCDRecordBase **aRecord,
TBool *aEnabled,
const TCmAttribConvTable *aConvTable
)[protected]

Parameters

CommsDat::CCDRecordBase ** aRecord
TBool * aEnabled
const TCmAttribConvTable * aConvTable

AddResourceFileL(const TDesC &)

IMPORT_C voidAddResourceFileL(const TDesC &aName)[protected]

Add file name to the resource file array. Open it and/or increment reference count.

Parameters

const TDesC & aNameresource file name

AdditionalReset()

voidAdditionalReset()[protected, pure virtual]

Plug-in implementation can make its on cleanup in this function. Always called from LoadL() and should be called from plugin's destructor.

AllocReadL(TInt)

IMPORT_C HBufC *AllocReadL(TIntaResourceId)const [protected]

Read string from resource file. Resource file has to be opened prior this by calling AddResourceFileL().

Parameters

TInt aResourceId

BearerRecordIdLC(HBufC *&, TUint32 &)

voidBearerRecordIdLC(HBufC *&aBearerName,
TUint32 &aRecordId
)[protected, pure virtual]

Return the bearer table name and record id of this connection in the bearer table.

Parameters

HBufC *& aBearerName
TUint32 & aRecordId

CanHandleIapIdL(TUint32)

TBool CanHandleIapIdL(TUint32aIapId)const [pure virtual]

Checks if the plug-in can handle the given AP.

Parameters

TUint32 aIapIdIAPId of the AP to be checked

CanHandleIapIdL(CommsDat::CCDIAPRecord *)

TBool CanHandleIapIdL(CommsDat::CCDIAPRecord *aIapRecord)const [pure virtual]

Checks if the plug-in can handle the given AP.

Parameters

CommsDat::CCDIAPRecord * aIapRecordIAP record to be checked

CheckDNSServerAddressL(TBool, CommsDat::CMDBField< TDesC > &, CommsDat::CMDBField< TDesC > &, CommsDat::CMDBField< TBool > &)

IMPORT_C voidCheckDNSServerAddressL(TBoolaIPv6,
CommsDat::CMDBField< TDesC > &aDNS1,
CommsDat::CMDBField< TDesC > &aDNS2,
CommsDat::CMDBField< TBool > &aDNSFromServer
)

Plugins can check DNS setting with this function. Suggested to be called from PrepareToUpdateRecordsL(). It checked the DNS server addresses, moves secord into first if first is dynamic, and update DNSFromServer field according to address values.

Parameters

TBool aIPv6passed DNS server address are in IPv6 form
CommsDat::CMDBField< TDesC > & aDNS1secord DNS server address
CommsDat::CMDBField< TDesC > & aDNS2
CommsDat::CMDBField< TBool > & aDNSFromServerDNS address from server flag

CheckForCommonAttribute(const TUint32)

TUint32 CheckForCommonAttribute(const TUint32aAttribute)const [private]

Search for common attribute and convert it to plugin specific one.

Parameters

const TUint32 aAttributecommon attribute id

CheckIfAlreadyConnected()

IMPORT_C TBoolCheckIfAlreadyConnected()const [protected, virtual]

Check if there's connection established with this connection method (IAP id).

CheckIfNameModifiedL(CommsDat::CCDRecordBase *)

IMPORT_C voidCheckIfNameModifiedL(CommsDat::CCDRecordBase *aRecord)const [protected]

Checks if the ECmName attribute was set since the last update. If so, name is updated in passed record

Parameters

CommsDat::CCDRecordBase * aRecordrecord to be checked against iIapRecord

CheckSpaceBelowCriticalLevelL()

IMPORT_C TBoolCheckSpaceBelowCriticalLevelL()const

Check if there is space to save record

CmMgr()

CCmManagerImpl &CmMgr()const [inline]

Returns a pointer to the cmmanager

CommitTransactionL(TInt)

voidCommitTransactionL(TIntaError)[protected]

Commit transaction.

Parameters

TInt aError- error id

CommonAttribute(const TUint32)

TUint32 CommonAttribute(const TUint32aAttribute)const [private]

Returns the common attribute for the bearer specific attribute. Panics if there is no matching common attribute.

Parameters

const TUint32 aAttributebearer specific attribute

ConstructL()

IMPORT_C voidConstructL()[protected, virtual]

Second phase constructor

ConvTableItem(TUint32)

IMPORT_C const TCmAttribConvTable *ConvTableItem(TUint32aAttribute)

Return the coversion table item of the attribute

Parameters

TUint32 aAttributeattribute of which conversion item is requested

ConversionTable(TUint32)

TCmAttrConvArrayItem *ConversionTable(TUint32aAttribute)const [private]

Parameters

TUint32 aAttribute

CopyAdditionalDataL(CCmPluginBaseEng &)

voidCopyAdditionalDataL(CCmPluginBaseEng &)const [protected, inline, virtual]

Copy data of the connection method that is not added to the conversion table. (e.g. bearer specific flags)

Parameters

CCmPluginBaseEng &

CopyAttributes(CommsDat::CCDRecordBase *, CommsDat::CCDRecordBase *)

voidCopyAttributes(CommsDat::CCDRecordBase *aSrcRecord,
CommsDat::CCDRecordBase *aDstRecord
)[private]

Copy the attributes of the source record to the destination.

Parameters

CommsDat::CCDRecordBase * aSrcRecordrecord of which attributes are copied
CommsDat::CCDRecordBase * aDstRecord

CreateAdditionalRecordsL()

voidCreateAdditionalRecordsL()[protected, inline, virtual]

Plugin can create and initialize its bearer specific record(s) here. Do NOT store them in CommsDat yet.

CreateCopyL()

IMPORT_C CCmPluginBaseEng *CreateCopyL()const [virtual]
Create a copy of the connection method:

CreateInstanceL(TCmPluginInitParam &)

CCmPluginBaseEng *CreateInstanceL(TCmPluginInitParam &aInitParam)const [pure virtual]

Create a new instance of the given bearer type plugin. Used from framework to avoid using slow ECom framework.

Parameters

TCmPluginInitParam & aInitParaminitialization data

CreateNewL()

IMPORT_C voidCreateNewL()[virtual]
Create a new connection method in memory. Call UpdateL() to store it in CommsDat. No transaction operation is performed.

CreateNewServiceRecordL()

voidCreateNewServiceRecordL()[protected, pure virtual]

Plugin has to create and initialize its bearer specific object that points to the service record here. Pointer has to be stored in iServiceRecord data member. Do NOT store service record in CommsDat yet.

DecrementRefCounter()

voidDecrementRefCounter()

Increments the reference counter. Used by the object pool.

DeleteAdditionalRecordsL()

voidDeleteAdditionalRecordsL()[protected, inline, virtual]

Plugin can delete additional, bearer specific record with this function. Called from DeleteL().

DeleteL(TBool, TBool)

IMPORT_C TBoolDeleteL(TBoolaForced,
TBoolaOneRefAllowed = ETrue
)[virtual]

Parameters

TBool aForced
TBool aOneRefAllowed = ETrue

Destination()

IMPORT_C CCmDestinationImpl *Destination()const [virtual]

Returns the CCmDestinationImpl* if this is an embedded destination CM. Otherwise returns NULL.

DoLoadL(TUint32)

voidDoLoadL(TUint32aIapId)[private]

Parameters

TUint32 aIapId

DoMakeValidNameL(const TDesC &)

HBufC *DoMakeValidNameL(const TDesC &aName)[private]

Parameters

const TDesC & aName

EnableChargeCardL(TBool)

voidEnableChargeCardL(TBoolaEnable)[private]

Parameters

TBool aEnable

EnableLocationL(TBool)

voidEnableLocationL(TBoolaEnable)[private]

Parameters

TBool aEnable

EnableProxyL(TBool)

voidEnableProxyL(TBoolaEnable)[private]

Parameters

TBool aEnable

EnsureMaxLengthLC(const TDesC &, TBool &)

HBufC *EnsureMaxLengthLC(const TDesC &aName,
TBool &aChanged
)[private]

Parameters

const TDesC & aName
TBool & aChanged

EscapeTextLC(const TDesC &)

HBufC *EscapeTextLC(const TDesC &aLiteral)[private]

Parameters

const TDesC & aLiteral

FeatureSupported(TInt)

IMPORT_C TBoolFeatureSupported(TIntaFeature)[static]
Calls FeatureManager::FeatureSupported directly.
Since
3.2

Parameters

TInt aFeaturefeature ID

FieldByAttributeL(const TCmAttrConvArrayItem *, const TUint32, TInt &)

CommsDat::CMDBElement &FieldByAttributeL(const TCmAttrConvArrayItem *aItem,
const TUint32aAttribute,
TInt &aIndex
)const [private]

Parameters

const TCmAttrConvArrayItem * aItem
const TUint32 aAttribute
TInt & aIndex

FilterPossibleParentsL(RArray< TUint32 > &)

voidFilterPossibleParentsL(RArray< TUint32 > &)[inline, virtual]

Scans aDests for destinations that may be valid parents for this plugin and removes those that may not. The function may be overriden by virtual bearer type plugins.

Parameters

RArray< TUint32 > &

FindFieldL(TUint32, TCMFieldTypes, CommsDat::CMDBElement *&)

TValidationFunctionL FindFieldL(TUint32aAttribute,
TCMFieldTypesaType,
CommsDat::CMDBElement *&aElement
)const [private]

Find field element associated with the passed attribute.

Parameters

TUint32 aAttributeaatribute to find type of the attribute (e.g. bool, int or string)
TCMFieldTypes aType
CommsDat::CMDBElement *& aElement

FindSeamlessnessRecordL()

CCDIAPMetadataRecord *FindSeamlessnessRecordL()[private]

FindWAPRecordL()

CommsDat::CCDWAPIPBearerRecord *FindWAPRecordL()[private]

GenericStringWriterL(const TUint32, const TDesC16 &)

voidGenericStringWriterL(const TUint32aAttribute,
const TDesC16 &aValue
)[private]

Writes the passed text into the passed attribute.

Parameters

const TUint32 aAttributeThe attribute to write into
const TDesC16 & aValueThe value to write

GetAdditionalUids(RArray< TUint32 > &)

IMPORT_C voidGetAdditionalUids(RArray< TUint32 > &aIapIds)[virtual]

Appends uids of connection methods - which were also created during connection method creation - to the array given as parameter

Parameters

RArray< TUint32 > & aIapIdsthe array the additonal cm uids are appended to

GetBoolAttributeL(const TUint32)

IMPORT_C TBoolGetBoolAttributeL(const TUint32aAttribute)const [virtual]

Gets the value for a TBool attribute.

Parameters

const TUint32 aAttributeIdentifies the attribute to be retrived.

GetIntAttributeL(const TUint32)

IMPORT_C TUint32GetIntAttributeL(const TUint32aAttribute)const [virtual]

Gets the value for a TInt attribute.

Parameters

const TUint32 aAttributeIdentifies the attribute to be retrived.

GetLocationIdL()

TUint32 GetLocationIdL()const [private]

Return Location id

GetPostfix(const TDesC &, const TDesC &)

TInt GetPostfix(const TDesC &aName,
const TDesC &aPrefix
)[private]

Parameters

const TDesC & aName
const TDesC & aPrefix

GetPrefix(const TDesC &)

TPtrC GetPrefix(const TDesC &aName)[private]

Parameters

const TDesC & aName

GetRefCounter()

TInt GetRefCounter()

Returns the reference counter. Used by the object pool.

GetString8AttributeL(const TUint32)

IMPORT_C HBufC8 *GetString8AttributeL(const TUint32aAttribute)const [virtual]

Gets the value for a String8 attribute.

Parameters

const TUint32 aAttributeIdentifies the attribute to be retrived.

GetStringAttributeL(const TUint32)

IMPORT_C HBufC *GetStringAttributeL(const TUint32aAttribute)const [virtual]

Gets the value for a String16 attribute.

Parameters

const TUint32 aAttributeIdentifies the attribute to be retrived.

GlobalBearerPriority(const TDesC &)

IMPORT_C TIntGlobalBearerPriority(const TDesC &aServiceType)const [protected]

Returns the global priority of the passed bearer type

Parameters

const TDesC & aServiceTypebearer type of which priority is requested

GlobalUiBearerPriority(const TDesC &)

IMPORT_C TIntGlobalUiBearerPriority(const TDesC &aServiceType)const [protected]

Returns the global UI priority of the passed bearer type

Parameters

const TDesC & aServiceTypebearer type of which priority is requested

IAPRecordElementId()

IMPORT_C CommsDat::TMDBElementIdIAPRecordElementId()const

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.

InitializeWithUiL(TBool)

TBool InitializeWithUiL(TBoolaManuallyConfigure)[pure virtual]

Called on a newly created connection method to initialize it properly with user interaction (e.g. APN setting for a packet data-, WEP-key setting for a WLAN connection method, etc.). Note: each plug-in should set its name (i.e. ECmName) in this function call.

Since
S60 3.2

Parameters

TBool aManuallyConfigurelet's the plugin know if a plugin should be configured manually or automatically

IsLinkedToIap(TUint32)

TBool IsLinkedToIap(TUint32)[inline, virtual]

Function should be overriden by virtual bearer type plugins. Returns if the passed IAP id is linked to that connection method.

Parameters

TUint32

IsLinkedToSnap(TUint32)

TBool IsLinkedToSnap(TUint32)[inline, virtual]

Function should be overriden by virtual bearer type plugins. Returns if the passed SNAP id is linked to that connection method.

Parameters

TUint32

IsProtected()

IMPORT_C TBoolIsProtected()const

IsValidNameL(const TDesC &)

TBool IsValidNameL(const TDesC &aNameText)[private]

Parameters

const TDesC & aNameText

LoadAdditionalRecordsL()

voidLoadAdditionalRecordsL()[protected, inline, virtual]

Inherited class can load any additional records after CCmPluginBaseEng finished.

LoadChargeCardSettingL(TUint32)

voidLoadChargeCardSettingL(TUint32aChargeCardId)[private]

Parameters

TUint32 aChargeCardId

LoadIAPRecordL(TUint32)

voidLoadIAPRecordL(TUint32aIapId)[private]

Parameters

TUint32 aIapId

LoadL(TUint32)

IMPORT_C voidLoadL(TUint32aIapId)[virtual]
Performs the basic loading of records related to this connection method:

Parameters

TUint32 aIapId

LoadLocationSettingL()

voidLoadLocationSettingL()[private]

LoadNetworkSettingL()

voidLoadNetworkSettingL()[private]

LoadProxySettingL()

voidLoadProxySettingL()[private]

LoadSeamlessnessRecordL()

voidLoadSeamlessnessRecordL()[private]

LoadServiceSettingL()

IMPORT_C voidLoadServiceSettingL()[protected, virtual]

Load service record. Default implementation can create only factory supported record instances.

LoadWapRecordL()

voidLoadWapRecordL()[private]

MappedCommonAttribute(const TUint32)

TUint32 MappedCommonAttribute(const TUint32aAttribute)const [private]

Returns the common attribute for the bearer specific attribute, if it is mapped to any. Otherwise, it returns the original attribute.

Parameters

const TUint32 aAttributebearer specific attribute

NewSeamlessnessRecordL(TBool)

CCDIAPMetadataRecord *NewSeamlessnessRecordL(TBoolaSetDef)[private]

Create a new metadata record.

Parameters

TBool aSetDefETrue if setting default seamlessness valud is needed

NewWapRecordL()

voidNewWapRecordL()[private]

No WAP record found in load process, but client wants to set start page.

NumOfConnMethodReferencesL()

IMPORT_C TIntNumOfConnMethodReferencesL()[virtual]

OpenTransactionLC()

voidOpenTransactionLC()[protected]

Open transaction

ParentDestination()

IMPORT_C CCmDestinationImpl *ParentDestination()const

Return the parent destination of this connection method.

PrepareToCopyDataL(CCmPluginBaseEng &)

voidPrepareToCopyDataL(CCmPluginBaseEng &)const [protected, inline, virtual]

Called from CreateCopyL(). Plugin can prepare for copying every records added to the conversion tables.

Parameters

CCmPluginBaseEng &

PrepareToDeleteRecordsL()

voidPrepareToDeleteRecordsL()[protected, inline, virtual]

Plugin can prepare to delete the connection method with this function. Called from DeleteL() before any record would be deleted. Do NOT delete any record here.

PrepareToLoadRecordsL()

IMPORT_C voidPrepareToLoadRecordsL()[protected, virtual]

Inherited class can make some preraration before CCmPluginBaseEng would start loading records from tables.

PrepareToUpdateRecordsL()

IMPORT_C voidPrepareToUpdateRecordsL()[protected, virtual]

Check if connection method data is valid, before it would be persisted to commsdat. If invalid data found, set its attribute id in iInvalidAttribute. Base class implementation must be called from overridden one.

RemoveCommonConversionTable(const TCmCommonAttrConvArrayItem *)

IMPORT_C voidRemoveCommonConversionTable(const TCmCommonAttrConvArrayItem *aConvTable)[protected]

Parameters

const TCmCommonAttrConvArrayItem * aConvTable

RemoveConversionTable(const TCmAttribConvTable *)

IMPORT_C voidRemoveConversionTable(const TCmAttribConvTable *aConvTable)[protected]

Parameters

const TCmAttribConvTable * aConvTable

RemoveResourceFile(const TDesC &)

IMPORT_C voidRemoveResourceFile(const TDesC &aName)[protected]

Remove file name from the resource file name array. Close the resource file and/or decrement the reference count.

Parameters

const TDesC & aNameresource file name

Reset()

IMPORT_C voidReset()[protected]

Make a reset on this class.

RestoreAttributeL(const TUint32)

IMPORT_C voidRestoreAttributeL(const TUint32aAttribute)[virtual]

Restore the original value of the attribute from commsdat field. Base implementation can be used only with attributes stored directly in commsdat.

Parameters

const TUint32 aAttributeattribute to be restored

RollbackTransaction()

voidRollbackTransaction()[protected]

Rollback transaction.

RunSettingsL()

TInt RunSettingsL()[pure virtual]

Launches the settings dialog of the plugin

Since
S60 3.2

ServiceRecordIdLC(HBufC *&, TUint32 &)

voidServiceRecordIdLC(HBufC *&aServiceName,
TUint32 &aRecordId
)[protected, pure virtual]

Return the service table name and record id of this connection in the service table.

Parameters

HBufC *& aServiceName
TUint32 & aRecordId

Session()

IMPORT_C CommsDat::CMDBSession &Session()const

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

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

Set attribute flag on the given record

Parameters

CommsDat::CCDRecordBase * aRecordrecord to be set
TUint32 aAttributee.g. ECDHidden
TBool aSetETrue to set, EFalse to clear

SetBoolAttributeL(const TUint32, TBool)

IMPORT_C voidSetBoolAttributeL(const TUint32aAttribute,
TBoolaValue
)[virtual]

Sets the value for a TBool attribute.

Parameters

const TUint32 aAttributeIdentifies the attribute to be set.
TBool aValueThe value to be set.

SetDNSServerAddressL(TUint32, const TDesC &, TUint32, const TDesC &, TUint32, TBool)

IMPORT_C voidSetDNSServerAddressL(TUint32aSrv1Attr,
const TDesC &aSrv1,
TUint32aSrv2Attr,
const TDesC &aSrv2,
TUint32aAddrFromSrvAttr,
TBoolaIPv6
)

Function to set up DNS addresses and DNS address from server flag. Can be used with both IPv4 and IPv6 attribute. Passed bearer specific attributes must be defined in common conversion table.

Parameters

TUint32 aSrv1Attrfirst DNS server address attribute
const TDesC & aSrv1DNS first DNS server address
TUint32 aSrv2Attrsecond DNS server address
const TDesC & aSrv2DNS second DNS server address attribute
TUint32 aAddrFromSrvAttrDNS address from server flag attribute
TBool aIPv6ETrue if passed addresses are in IPv6 form

SetIdValidity(TBool)

voidSetIdValidity(TBoolvalidity)

Sets iIdIsValid attribute Used by the object pool.

Parameters

TBool validity

SetIntAttributeL(const TUint32, TUint32)

IMPORT_C voidSetIntAttributeL(const TUint32aAttribute,
TUint32aValue
)[virtual]

Sets the value for a TInt attribute.

Parameters

const TUint32 aAttributeIdentifies the attribute to be set.
TUint32 aValueThe value to be set.

SetNameL(const TDesC &)

voidSetNameL(const TDesC &aName)[private]

Parameters

const TDesC & aName

SetPreDefinedId(const TUint32)

IMPORT_C voidSetPreDefinedId(const TUint32aPreDefId)

Sets the predefined id for the plugin. This should only be used by cmmanager framework.

Parameters

const TUint32 aPreDefId

SetProxyServerNameL(const TDesC &)

TBool SetProxyServerNameL(const TDesC &aProxyServer)

Parameters

const TDesC & aProxyServer

SetString8AttributeL(const TUint32, const TDesC8 &)

IMPORT_C voidSetString8AttributeL(const TUint32aAttribute,
const TDesC8 &aValue
)[virtual]

Sets the value for a String8 attribute.

Parameters

const TUint32 aAttributeIdentifies the attribute to be set.
const TDesC8 & aValueThe value to be set.

SetStringAttributeL(const TUint32, const TDesC16 &)

IMPORT_C voidSetStringAttributeL(const TUint32aAttribute,
const TDesC16 &aValue
)[virtual]

Sets the value for a String16 attribute.

Parameters

const TUint32 aAttributeIdentifies the attribute to be set.
const TDesC16 & aValueThe value to be set.

UpdateAdditionalRecordsL()

voidUpdateAdditionalRecordsL()[protected, inline, virtual]

Inherited class can update its additional records here.

UpdateChargeCardRecordL()

voidUpdateChargeCardRecordL()[private]

UpdateConnPrefSettingL()

voidUpdateConnPrefSettingL()[private]

UpdateIAPRecordL()

voidUpdateIAPRecordL()[private]

UpdateLocationRecordL()

voidUpdateLocationRecordL()[private]

UpdateNetworkRecordL()

voidUpdateNetworkRecordL()[private]

UpdateProxyRecordL()

voidUpdateProxyRecordL()[private]

UpdateSeamlessnessRecordL()

voidUpdateSeamlessnessRecordL()[private]

UpdateServiceRecordL()

IMPORT_C voidUpdateServiceRecordL()[protected, virtual]

Update service record.

UpdateWapRecordL()

voidUpdateWapRecordL()[private]

Member Data Documentation

TUint32 iBearerType

TUint32 iBearerType[protected]

TBool iChargeCardEnabled

TBool iChargeCardEnabled[protected]

CommsDat::CCDChargecardRecord * iChargeCardRecord

CommsDat::CCDChargecardRecord *iChargeCardRecord[protected]

CCmManagerImpl & iCmMgr

CCmManagerImpl &iCmMgr[protected]

TUid iDtor_ID_Key

TUid iDtor_ID_Key

TUint32 iIapId

TUint32 iIapId[protected]

CommsDat::CCDIAPRecord * iIapRecord

CommsDat::CCDIAPRecord *iIapRecord[protected]

TBool iIdIsValid

TBool iIdIsValid[private]

TUint32 iInvalidAttribute

TUint32 iInvalidAttribute[protected]

TBool iLocationEnabled

TBool iLocationEnabled[protected]

CommsDat::CCDLocationRecord * iLocationRecord

CommsDat::CCDLocationRecord *iLocationRecord[protected]

CommsDat::CCDNetworkRecord * iNetworkRecord

CommsDat::CCDNetworkRecord *iNetworkRecord[protected]

TUint32 iParentDest

TUint32 iParentDest[protected]

TUint32 iPreDefIapId

TUint32 iPreDefIapId[private]

CCmPluginBasePrivate * iPriv

CCmPluginBasePrivate *iPriv[private]

CommsDat::CCDProxiesRecord * iProxyRecord

CommsDat::CCDProxiesRecord *iProxyRecord[protected]

TInt iRefCounter

TInt iRefCounter[private]

CommsDat::CCDRecordBase * iServiceRecord

CommsDat::CCDRecordBase *iServiceRecord[protected]