CCommsDbAccess Class Reference

class CCommsDbAccess : public CBase

CCommsDbAccess One of these per CAgentController object. Has a CCommsDatabase object and CCommsDbTableView's for accessing data in CommDb. Also uses a CCommDbOverrideSettings for accessing overridden fields. Also has a CDbChangeNotification for checking when the database is changed. Exported methods in CCommsDbAccess object are also used by the CScriptBase class.

Inherits from

Nested Classes and Structures

Public Member Functions
~CCommsDbAccess()
IMPORT_C voidCancelRequestNotificationOfServiceChange(MServiceChangeObserver *)
IMPORT_C TIntCheckReadCapability(const TDesC &, const RMessagePtr2 *)
IMPORT_C TIntCheckWriteCapability(const TDesC &, const RMessagePtr2 *)
IMPORT_C voidClose()
IMPORT_C TBoolDoesIapExistL(TUint32)
voidGetAgentExtL(const TDesC &, TDes &)
voidGetAuthParamsL(TBool &, TDes &, TDes &)
IMPORT_C voidGetBearerAvailabilityTsyNameL(TDes &)
IMPORT_C voidGetBoolL(const TDesC &, const TDesC &, TBool &)
IMPORT_C TIntGetConnectionAttempts()
IMPORT_C TCommDbConnectionDirectionGetConnectionDirection()
IMPORT_C voidGetCurrentSettingsL(TConnectionSettings &, TCommDbConnectionDirection, TUint32)
IMPORT_C voidGetDesL(const TDesC &, const TDesC &, TDes8 &)
IMPORT_C voidGetDesL(const TDesC &, const TDesC &, TDes16 &)
IMPORT_C voidGetFirstValidIapL(TUint32 &)
IMPORT_C voidGetGlobalL(const TDesC &, TUint32 &)
IMPORT_C voidGetIntL(const TDesC &, const TDesC &, TUint32 &)
IMPORT_C TIntGetLengthOfLongDesL(const TDesC &, const TDesC &)
IMPORT_C HBufC *GetLongDesLC(const TDesC &, const TDesC &)
IMPORT_C voidGetPreferedIapL(TUint32 &, TCommDbConnectionDirection, TUint32)
IMPORT_C voidGetServiceSettingsL(TConnectionSettings &)
IMPORT_C voidGetServiceTypeL(TDes &)
IMPORT_C voidGetTsyNameL(TDes &)
IMPORT_C TBoolIsShowingHiddenRecords()
IMPORT_C TBoolIsTelNumLengthZeroForRasConnectionL(TConnectionSettings &)
IMPORT_C TUint32LocationId()
IMPORT_C CCommsDbAccessModemTable *ModemTable()
IMPORT_C RMobilePhone::TMobilePhoneNetworkModeNetworkMode()
IMPORT_C CCommsDbAccess *NewL()
IMPORT_C CCommsDbAccess *NewL(TBool)
IMPORT_C CCommsDbAccess *NewL(MCommsDbAccess *)
IMPORT_C TIntReadBool(const TDesC &, TBool &)
IMPORT_C TIntReadDes(const TDesC &, TDes8 &)
IMPORT_C TIntReadDes(const TDesC &, TDes16 &)
IMPORT_C TIntReadInt(const TDesC &, TUint32 &)
IMPORT_C HBufC *ReadLongDesLC(const TDesC &)
IMPORT_C voidRequestNotificationOfServiceChangeL(MServiceChangeObserver *)
IMPORT_C voidSetCommPortL(const RCall::TCommPort &)
IMPORT_C voidSetCurrentSettingsL(const TConnectionSettings &)
IMPORT_C voidSetModemAndLocationL(const TConnectionSettings &)
IMPORT_C voidSetNetworkMode(const RMobilePhone::TMobilePhoneNetworkMode)
IMPORT_C voidSetOverridesL(CCommDbOverrideSettings *)
IMPORT_C voidSetPreferedIapL(TUint32 &, TCommDbConnectionDirection, TUint32)
IMPORT_C TIntWriteBool(const TDesC &, TBool)
IMPORT_C TIntWriteDes(const TDesC &, const TDesC8 &)
IMPORT_C TIntWriteDes(const TDesC &, const TDesC16 &)
IMPORT_C TIntWriteInt(const TDesC &, TUint32)
Private Member Functions
CCommsDbAccess()
CCommsDbAccess(MCommsDbAccess *)
voidConstructL(TBool)
MCommsDbAccess *GetImpl()
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
TBool iOwnImpl
MCommsDbAccess *iPimpl

Constructor & Destructor Documentation

CCommsDbAccess()

CCommsDbAccess()[private]

CCommsDbAccess(MCommsDbAccess *)

CCommsDbAccess(MCommsDbAccess *aPimpl)[private, explicit]

Parameters

MCommsDbAccess * aPimpl

~CCommsDbAccess()

IMPORT_C~CCommsDbAccess()

Member Functions Documentation

CancelRequestNotificationOfServiceChange(MServiceChangeObserver *)

IMPORT_C voidCancelRequestNotificationOfServiceChange(MServiceChangeObserver *aObserver)

Parameters

MServiceChangeObserver * aObserver

CheckReadCapability(const TDesC &, const RMessagePtr2 *)

IMPORT_C TIntCheckReadCapability(const TDesC &aField,
const RMessagePtr2 *aMessage
)

Data capability checking

Parameters

const TDesC & aField
const RMessagePtr2 * aMessage

CheckWriteCapability(const TDesC &, const RMessagePtr2 *)

IMPORT_C TIntCheckWriteCapability(const TDesC &aField,
const RMessagePtr2 *aMessage
)

Parameters

const TDesC & aField
const RMessagePtr2 * aMessage

Close()

IMPORT_C voidClose()

Close database access

ConstructL(TBool)

voidConstructL(TBoolaShowHidden)[private]

Parameters

TBool aShowHidden

DoesIapExistL(TUint32)

IMPORT_C TBoolDoesIapExistL(TUint32aIapId)

Parameters

TUint32 aIapId

GetAgentExtL(const TDesC &, TDes &)

voidGetAgentExtL(const TDesC &aServiceType,
TDes &aAgentExt
)

Agent Related

Parameters

const TDesC & aServiceType
TDes & aAgentExt

GetAuthParamsL(TBool &, TDes &, TDes &)

voidGetAuthParamsL(TBool &aPromptForAuth,
TDes &aUsername,
TDes &aPassword
)

Parameters

TBool & aPromptForAuth
TDes & aUsername
TDes & aPassword

GetBearerAvailabilityTsyNameL(TDes &)

IMPORT_C voidGetBearerAvailabilityTsyNameL(TDes &aTsyName)

Modem related

Parameters

TDes & aTsyName

GetBoolL(const TDesC &, const TDesC &, TBool &)

IMPORT_C voidGetBoolL(const TDesC &aTable,
const TDesC &aField,
TBool &aValue
)

Parameters

const TDesC & aTable
const TDesC & aField
TBool & aValue

GetConnectionAttempts()

IMPORT_C TIntGetConnectionAttempts()

GetConnectionDirection()

IMPORT_C TCommDbConnectionDirectionGetConnectionDirection()const

GetCurrentSettingsL(TConnectionSettings &, TCommDbConnectionDirection, TUint32)

IMPORT_C voidGetCurrentSettingsL(TConnectionSettings &aSettings,
TCommDbConnectionDirectionaDirection,
TUint32aRank
)

Default setting

Parameters

TConnectionSettings & aSettings
TCommDbConnectionDirection aDirection
TUint32 aRank

GetDesL(const TDesC &, const TDesC &, TDes8 &)

IMPORT_C voidGetDesL(const TDesC &aTable,
const TDesC &aField,
TDes8 &aValue
)

Parameters

const TDesC & aTable
const TDesC & aField
TDes8 & aValue

GetDesL(const TDesC &, const TDesC &, TDes16 &)

IMPORT_C voidGetDesL(const TDesC &aTable,
const TDesC &aField,
TDes16 &aValue
)

Parameters

const TDesC & aTable
const TDesC & aField
TDes16 & aValue

GetFirstValidIapL(TUint32 &)

IMPORT_C voidGetFirstValidIapL(TUint32 &aIapId)

Parameters

TUint32 & aIapId

GetGlobalL(const TDesC &, TUint32 &)

IMPORT_C voidGetGlobalL(const TDesC &aName,
TUint32 &aVal
)

Parameters

const TDesC & aName
TUint32 & aVal

GetImpl()

MCommsDbAccess *GetImpl()const [private]

GetIntL(const TDesC &, const TDesC &, TUint32 &)

IMPORT_C voidGetIntL(const TDesC &aTable,
const TDesC &aField,
TUint32 &aValue
)

Reads from the agent extensions: read from the overrides, or if they don't exist straight from the database

Parameters

const TDesC & aTable
const TDesC & aField
TUint32 & aValue

GetLengthOfLongDesL(const TDesC &, const TDesC &)

IMPORT_C TIntGetLengthOfLongDesL(const TDesC &aTable,
const TDesC &aField
)

Parameters

const TDesC & aTable
const TDesC & aField

GetLongDesLC(const TDesC &, const TDesC &)

IMPORT_C HBufC *GetLongDesLC(const TDesC &aTable,
const TDesC &aField
)

Parameters

const TDesC & aTable
const TDesC & aField

GetPreferedIapL(TUint32 &, TCommDbConnectionDirection, TUint32)

IMPORT_C voidGetPreferedIapL(TUint32 &aIapId,
TCommDbConnectionDirectionaDirection,
TUint32aRank
)

Parameters

TUint32 & aIapId
TCommDbConnectionDirection aDirection
TUint32 aRank

GetServiceSettingsL(TConnectionSettings &)

IMPORT_C voidGetServiceSettingsL(TConnectionSettings &aSettings)

Parameters

TConnectionSettings & aSettings

GetServiceTypeL(TDes &)

IMPORT_C voidGetServiceTypeL(TDes &aServiceType)

Service Related

Parameters

TDes & aServiceType

GetTsyNameL(TDes &)

IMPORT_C voidGetTsyNameL(TDes &aTsyName)

Parameters

TDes & aTsyName

IsShowingHiddenRecords()

IMPORT_C TBoolIsShowingHiddenRecords()

IsTelNumLengthZeroForRasConnectionL(TConnectionSettings &)

IMPORT_C TBoolIsTelNumLengthZeroForRasConnectionL(TConnectionSettings &aSettings)

Parameters

TConnectionSettings & aSettings

LocationId()

IMPORT_C TUint32LocationId()const

ModemTable()

IMPORT_C CCommsDbAccessModemTable *ModemTable()

The caller of this function takes ownership of the object returned and is responsible for deleting it. However the caller is not responsible for deleting the referenced record and session.

NetworkMode()

IMPORT_C RMobilePhone::TMobilePhoneNetworkModeNetworkMode()const

NewL()

IMPORT_C CCommsDbAccess *NewL()[static]

NewL(TBool)

IMPORT_C CCommsDbAccess *NewL(TBoolaShowHidden)[static]

Parameters

TBool aShowHidden

NewL(MCommsDbAccess *)

IMPORT_C CCommsDbAccess *NewL(MCommsDbAccess *aPimpl)[static]

Parameters

MCommsDbAccess * aPimpl

ReadBool(const TDesC &, TBool &)

IMPORT_C TIntReadBool(const TDesC &aField,
TBool &aValue
)

Parameters

const TDesC & aField
TBool & aValue

ReadDes(const TDesC &, TDes8 &)

IMPORT_C TIntReadDes(const TDesC &aField,
TDes8 &aValue
)

Parameters

const TDesC & aField
TDes8 & aValue

ReadDes(const TDesC &, TDes16 &)

IMPORT_C TIntReadDes(const TDesC &aField,
TDes16 &aValue
)

Parameters

const TDesC & aField
TDes16 & aValue

ReadInt(const TDesC &, TUint32 &)

IMPORT_C TIntReadInt(const TDesC &aField,
TUint32 &aValue
)

Call to database server for use by NifMan

Parameters

const TDesC & aField
TUint32 & aValue

ReadLongDesLC(const TDesC &)

IMPORT_C HBufC *ReadLongDesLC(const TDesC &aField)

Parameters

const TDesC & aField

RequestNotificationOfServiceChangeL(MServiceChangeObserver *)

IMPORT_C voidRequestNotificationOfServiceChangeL(MServiceChangeObserver *aObserver)

Service change noification

Parameters

MServiceChangeObserver * aObserver

SetCommPortL(const RCall::TCommPort &)

IMPORT_C voidSetCommPortL(const RCall::TCommPort &aCommPort)

Parameters

const RCall::TCommPort & aCommPort

SetCurrentSettingsL(const TConnectionSettings &)

IMPORT_C voidSetCurrentSettingsL(const TConnectionSettings &aSettings)

Parameters

const TConnectionSettings & aSettings

SetModemAndLocationL(const TConnectionSettings &)

IMPORT_C voidSetModemAndLocationL(const TConnectionSettings &aSettings)

Parameters

const TConnectionSettings & aSettings

SetNetworkMode(const RMobilePhone::TMobilePhoneNetworkMode)

IMPORT_C voidSetNetworkMode(const RMobilePhone::TMobilePhoneNetworkModeaNetworkMode)

MobileIP Related

Parameters

const RMobilePhone::TMobilePhoneNetworkMode aNetworkMode

SetOverridesL(CCommDbOverrideSettings *)

IMPORT_C voidSetOverridesL(CCommDbOverrideSettings *aOverrides)

Set function

Parameters

CCommDbOverrideSettings * aOverrides

SetPreferedIapL(TUint32 &, TCommDbConnectionDirection, TUint32)

IMPORT_C voidSetPreferedIapL(TUint32 &aIapId,
TCommDbConnectionDirectionaDirection,
TUint32aRank
)

Parameters

TUint32 & aIapId
TCommDbConnectionDirection aDirection
TUint32 aRank

WriteBool(const TDesC &, TBool)

IMPORT_C TIntWriteBool(const TDesC &aField,
TBoolaValuge
)

Parameters

const TDesC & aField
TBool aValuge

WriteDes(const TDesC &, const TDesC8 &)

IMPORT_C TIntWriteDes(const TDesC &aField,
const TDesC8 &aValue
)

Parameters

const TDesC & aField
const TDesC8 & aValue

WriteDes(const TDesC &, const TDesC16 &)

IMPORT_C TIntWriteDes(const TDesC &aField,
const TDesC16 &aValue
)

Parameters

const TDesC & aField
const TDesC16 & aValue

WriteInt(const TDesC &, TUint32)

IMPORT_C TIntWriteInt(const TDesC &aField,
TUint32aValue
)

Parameters

const TDesC & aField
TUint32 aValue

Member Data Documentation

TBool iOwnImpl

TBool iOwnImpl[private]

MCommsDbAccess * iPimpl

MCommsDbAccess *iPimpl[private]