CApDataHandler Class Reference

#include <mw/ApDataHandler.h>

Link against: APEngine.lib

class CApDataHandler : public CBase

Inherits from

  • CApDataHandler
    Public Member Functions
    virtual ~CApDataHandler()
    IMPORT_C voidAccessPointDataL(TUint32, CApAccessPointItem &)
    IMPORT_C TUint32CreateCopyFromL(TUint32)
    IMPORT_C TUint32CreateFromDataL(CApAccessPointItem &)
    IMPORT_C voidCreateNetworkL(CApNetworkItem &)
    IMPORT_C TUint32DefaultL(TBool)
    IMPORT_C TUint32DefaultL(TBool, TBool &)
    IMPORT_C voidGetPreferredIfDbIapTypeL(TUint32, TCommDbConnectionDirection, TUint32 &, TUint32 &, TUint32 &)
    IMPORT_C const TDesC &GetPreferredIfDbIspTypeL(TUint32, TCommDbConnectionDirection, TUint32 &, TUint32 &, TUint32 &, TUint32 &)
    IMPORT_C CApDataHandler *NewLC(CCommsDatabase &)
    IMPORT_C voidReadNetworkL(TUint32, CApNetworkItem &)
    IMPORT_C voidReadNetworkPartL(CApAccessPointItem &)
    IMPORT_C voidRemoveAPL(TUint32)
    IMPORT_C voidRemoveNetworkL(TUint32)
    IMPORT_C voidSetAsDefaultL(TUint32, TCommsDbIspType)
    IMPORT_C voidSetPreferredIfDbIapTypeL(TUint32, TCommDbConnectionDirection, TUint32, TCommDbDialogPref, TUint32, TBool)
    IMPORT_C voidSetPreferredIfDbIspTypeL(TUint32, TCommDbConnectionDirection, TUint32, TCommDbDialogPref, TUint32, TUint32, const TDesC &, TBool)
    IMPORT_C voidUpdateAccessPointDataL(CApAccessPointItem &, TBool &)
    Protected Member Functions
    CApDataHandler()
    voidApSpeed2EtelL(CApAccessPointItem *)
    TUint32 CommsDbSpeedL(CApAccessPointItem &)
    IMPORT_C voidConstructL(CCommsDatabase &)
    TUint32 CreateLanBearerIfNeededL()
    voidDoAccessPointDataL(TUint32, CApAccessPointItem &)
    TUint32 DoGetDefaultL(TBool, TBool *)
    voidDoRemoveAPL(TUint32)
    voidDoSetAsDefaultL(TUint32, TCommsDbIspType)
    voidDoSetPreferredIfDbIapTypeL(TUint32, TCommDbConnectionDirection, TUint32, TCommDbDialogPref, TUint32, TBool)
    voidDoSetPreferredIfDbIspTypeL(TUint32, TCommDbConnectionDirection, TUint32, TCommDbDialogPref, TUint32, TUint32, const TDesC &, TBool)
    TUint32 DoUpdateAccessPointDataL(CApAccessPointItem &, TBool, TBool &)
    voidEtelSpeed2ApL(CApAccessPointItem &)
    TUint32 GetLocationIdL()
    TUint32 GetModemBearerIDL(CApAccessPointItem &)
    TBool HandleBearerChangeIfNeededL(CApAccessPointItem &)
    TUint32 ProtocolL(CApAccessPointItem &)
    voidReadDialInOutDataL(TUint32, CApAccessPointItem &)
    voidReadGprsDataL(TUint32, CApAccessPointItem &)
    voidReadIapDataL(TUint32, CApAccessPointItem &)
    voidReadIspDataL(TUint32, CApAccessPointItem &)
    voidReadLanDataL(TUint32, CApAccessPointItem &)
    voidReadModemBearerNameL(CApAccessPointItem &)
    voidReadNetworkDataL(CApAccessPointItem &)
    voidReadProxyDataL(CApAccessPointItem &)
    voidReadServiceIp6L(CCommsDbTableView &, CApAccessPointItem &)
    voidReadServiceL(CCommsDbTableView &, CApAccessPointItem &)
    voidReadVpnInfoL(TUint32, CApAccessPointItem &)
    voidReadWapDataL(TUint32, CApAccessPointItem &)
    voidReadWlanL(CCommsDbTableView &, CApAccessPointItem &)
    voidRemoveGprsL(TUint32, TBool)
    voidRemoveIapL(TUint32)
    voidRemoveIspL(TUint32, TBool)
    voidRemoveLanL(TUint32)
    voidRemoveNetworkDataL(TUint32)
    voidRemoveProxyDataL(HBufC *, TUint32)
    voidRemoveWapApL(TUint32)
    voidRemoveWapBearerApL(TUint32)
    voidRemoveWlanL(TUint32)
    voidSetDefaultIapIspL(TUint32)
    voidWriteCsdDataL(TBool, CApAccessPointItem &)
    voidWriteGprsDataL(TBool, CApAccessPointItem &)
    voidWriteIapDataL(TBool, TUint32, CApAccessPointItem &)
    voidWriteIspDataL(TBool, TUint32, CApAccessPointItem &)
    voidWriteLanDataL(TBool, CApAccessPointItem &)
    voidWriteNetworkDataL(TBool, CApAccessPointItem &)
    voidWriteProxyDataL(TBool, const CApAccessPointItem &)
    voidWriteServiceIp6L(CCommsDbTableView &, CApAccessPointItem &)
    voidWriteServiceL(CCommsDbTableView &, CApAccessPointItem &)
    voidWriteWapApDataL(TBool, TUint32, CApAccessPointItem &)
    voidWriteWapBearerDataL(TBool, TUint32, CApAccessPointItem &)
    voidWriteWlanL(CCommsDbTableView &, CApAccessPointItem &)
    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()

    Detailed Description

    Representation of the access point handler. Encapsulates a session with the CommsDB Provides a way to access the database and manipulate its data.

    Constructor & Destructor Documentation

    CApDataHandler ( )

    IMPORT_CCApDataHandler()[protected]

    C++ default constructor.

    Deprecated

    ~CApDataHandler ( )

    IMPORT_C~CApDataHandler()[virtual]

    Destructor.

    Deprecated

    Member Function Documentation

    AccessPointDataL ( TUint32, CApAccessPointItem & )

    IMPORT_C voidAccessPointDataL(TUint32aUid,
    CApAccessPointItem &aApItem
    )
    Reads up one access point's data from the database. Expects that CApDataHandler has been created and the database had been opened. In case of error, function leaves with error code. Error conditions:
    • Insufficient memory,

    • AP does not exists,

    • Server connection failure.

    Deprecated

    ParameterDescription
    aUidThe Uid of the access point to be read
    aApItemA reference to a CApAccessPointItem to hold the data.

    Returns: no return value.

    ApSpeed2EtelL ( CApAccessPointItem * )

    voidApSpeed2EtelL(CApAccessPointItem *aItem)[protected]

    Converts setted AP speed from TApCallSpeed to commsdb values

    Returns: no return value

    CommsDbSpeedL ( CApAccessPointItem & )

    TUint32 CommsDbSpeedL(CApAccessPointItem &aApItem)[protected]

    Returns the commsdb speed for the passed item

    ParameterDescription
    aApItemAn access point item

    Returns: The speed of the passed item.

    ConstructL ( CCommsDatabase & )

    IMPORT_C voidConstructL(CCommsDatabase &aDb)[protected]

    Second-phase constructor.

    Deprecated

    CreateCopyFromL ( TUint32 )

    IMPORT_C TUint32CreateCopyFromL(TUint32aBaseId)
    Creates a copy of a previously existing access point. Expects that CApDataHandler has been created and the database had been opened. In case of error, no access point will be created. Error conditions:
    • Insufficient memory

    • Server connection failure.

    • Lock already present by other task.

    • Access point does not exist.

    • Attempting to create new in protected tables will results in KErrAccessDenied

    Deprecated

    ParameterDescription
    aBaseIdThe UID of the existing access point to copy from.

    Returns: The Uid of the newly constructed and saved access point.

    CreateFromDataL ( CApAccessPointItem & )

    IMPORT_C TUint32CreateFromDataL(CApAccessPointItem &aApItem)
    Create a new access point from supplied data Expects that CApDataHandler has been created and the database had been opened. The name of the AP will be corrected to be unique if necessary and returned in the passed aApItem. In case of error, no access point will be created and the passed one will remain intact. Error conditions:
    • Insufficient memory

    • Server connection failure.

    • Lock already present by other task.

    • Attempting to create new in protected tables will result in KErrAccessDenied

    Deprecated

    ParameterDescription
    aApItemReference to a CApAccessPointItem holding the data

    Returns: The UID of the newly created and saved access point.

    CreateLanBearerIfNeededL ( )

    TUint32 CreateLanBearerIfNeededL()[protected]

    Creates a new record in the LANBearer table if there is none for WLAN

    Returns: The UID of the LANBEarer record.

    CreateNetworkL ( CApNetworkItem & )

    IMPORT_C voidCreateNetworkL(CApNetworkItem &aNetwork)
    Creates a network group from the data. Expects that CApDataHandler has been created and the database had been opened. In case of error, network group will not be created. Error conditions:
    • Insufficient memory,

    • Server connection failure.

    • Lock already present by other task.

    • network group does not exist.

    • Attempting to remove read-only records will result in KErrAccessDenied

    Deprecated

    ParameterDescription
    aNetworkThe network item to create/write into db.

    Returns: no return value.

    DefaultL ( TBool )

    IMPORT_C TUint32DefaultL(TBoolaIsWap)const
    Reads the UID of the default access point. Expects that CApDataHandler has been created and the database had been opened. In case of error, leaves with CommsDb or system error codes. Error conditions:
    • Insufficient memory;

    • Server connection failure;

    • Lock already present;

    • Access point does not exists.

    Deprecated

    Returns: The UID of the default access point.

    DefaultL ( TBool, TBool & )

    IMPORT_C TUint32DefaultL(TBoolaIsWap,
    TBool &aReadOnly
    )const
    Reads the UID of the default access point. Expects that CApDataHandler has been created and the database had been opened. In case of error, leaves with CommsDb or system error codes. Error conditions:
    • Insufficient memory;

    • Server connection failure;

    • Lock already present;

    • Access point does not exists.

    Deprecated

    ParameterDescription
    aReadOnlyA TBool passed by reference to hold whether the the default access point record is read-only or not.

    Returns: The UID of the default access point.

    DoAccessPointDataL ( TUint32, CApAccessPointItem & )

    voidDoAccessPointDataL(TUint32aUid,
    CApAccessPointItem &aApItem
    )[protected]
    Reads up one access point's data from the database. Expects that CApDataHandler has been created and the database had been opened. In case of error, function leaves with error code. Error conditions:
    • Insufficient memory,

    • AP does not exists,

    • Server connection failure.

    ParameterDescription
    aUidThe Uid of the access point to be read
    aApItemA reference to a CApAccessPointItem to hold the data.

    Returns: no return value.

    DoGetDefaultL ( TBool, TBool * )

    TUint32 DoGetDefaultL(TBoolaIsWap,
    TBool *aReadOnly
    )const [protected]
    Reads the UID of the default access point. Expects that CApDataHandler has been created and the database had been opened. In case of error, leaves with CommsDb or system error codes. Error conditions:
    • Insufficient memory;

    • Server connection failure;

    • Lock already present;

    • Access point does not exists.

    Returns: The UID of the default access point.

    DoRemoveAPL ( TUint32 )

    voidDoRemoveAPL(TUint32aUid)[protected]
    Removes the given access point from the database. Expects that CApDataHandler has been created and the database had been opened. In case of error, access point will not be removed. Error conditions:
    • Insufficient memory,

    • Server connection failure.

    • Lock already present by other task.

    • Access point does not exist.

    • Attempting to remove read-only records will result in KErrAccessDenied

    ParameterDescription
    aUidThe UID of the access point to remove.

    Returns: no return value.

    DoSetAsDefaultL ( TUint32, TCommsDbIspType )

    voidDoSetAsDefaultL(TUint32aUid,
    TCommsDbIspTypeaIntendedType
    )[protected]
    Sets the default access point. Expects that CApDataHandler has been created and the database had been opened. In case of error, leaves with CommsDb or system error codes. Error conditions:
    • Insufficient memory;

    • Server connection failure;

    • Lock already present;

    • Access point does not exists.

    • Given Access Point is not of the desired type.

    ParameterDescription
    aUidThe UID of the access point to be set as default.
    aIntendedTypeThe default type ( IAP, WAP, Both).

    DoSetPreferredIfDbIapTypeL ( TUint32, TCommDbConnectionDirection, TUint32, TCommDbDialogPref, TUint32, TBool )

    voidDoSetPreferredIfDbIapTypeL(TUint32aRank,
    TCommDbConnectionDirectionaDirection,
    TUint32aBearers,
    TCommDbDialogPrefaPrompt,
    TUint32aIAP,
    TBoolaOverwrite
    )[protected]
    Sets the access point preference. Can be used only if the database type is IAP. Expects that CApDataHandler has been created and the database had been opened. In case of error, leaves with CommsDb or system error codes. Error conditions:
    • Insufficient memory;

    • Server connection failure;

    • Lock already present; Can also leave with KErrAlreadyExists (if aOverWrite is EFalse ).

    ParameterDescription
    aRankThe ranking of the connection preference.
    aBearersThe bearer set beeing valid for this connection preference
    aPromptEnum value indicating whether or not the user should be prompted or warned on connection
    aIAPThe identifier of the preferred IAP for this connection.
    aOverwriteBoolean value indicating that if a same record present, overwrite it or not.

    DoSetPreferredIfDbIspTypeL ( TUint32, TCommDbConnectionDirection, TUint32, TCommDbDialogPref, TUint32, TUint32, const TDesC &, TBool )

    voidDoSetPreferredIfDbIspTypeL(TUint32aRank,
    TCommDbConnectionDirectionaDirection,
    TUint32aBearers,
    TCommDbDialogPrefaPrompt,
    TUint32aISP,
    TUint32aChargeCard,
    const TDesC &aServiceType,
    TBoolaOverwrite
    )[protected]
    Sets the access point preference. Can be used only if the database type is ISP. Expects that CApDataHandler has been created and the database had been opened. In case of error, leaves with CommsDb or system error codes. Error conditions:
    • Insufficient memory;

    • Server connection failure;

    • Lock already present; Can also leave with KErrAlreadyExists (if aOverWrite is EFalse ).

    ParameterDescription
    aRankThe ranking of the connection preference.
    aBearersThe bearer set beeing valid for this connection preference
    aPromptEnum value indicating whether or not the user should be prompted or warned on connection
    aISPThe identifier of the preferred ISP for this connection.
    aChargeCardIdentifier of the preferred chargecard for this connection.
    aServiceTypeThe type of the service.
    aOverwriteBoolean value indicating that if a same record present, overwrite it or not.

    DoUpdateAccessPointDataL ( CApAccessPointItem &, TBool, TBool & )

    TUint32 DoUpdateAccessPointDataL(CApAccessPointItem &aApItem,
    TBoolaIsNew,
    TBool &aNameChanged
    )[protected]

    Writes the data to the database. In case of error, leaves with CommDb error codes.

    ParameterDescription
    aApItemReference to a CApAccessPointItem which holds the data
    aIsNewA Boolean indicating whether it is a new record or it is an update operation.

    Returns: No return value.

    EtelSpeed2ApL ( CApAccessPointItem & )

    voidEtelSpeed2ApL(CApAccessPointItem &aItem)[protected]

    Converts commsdb speed values to TApCallSpeed

    Returns: no return value

    GetLocationIdL ( )

    TUint32 GetLocationIdL()[protected]

    Gets the location record ID

    Returns: The UID of the location.

    GetModemBearerIDL ( CApAccessPointItem & )

    TUint32 GetModemBearerIDL(CApAccessPointItem &aApItem)[protected]

    Gets the modem record ID

    Returns: The UID of the modem record.

    GetPreferredIfDbIapTypeL ( TUint32, TCommDbConnectionDirection, TUint32 &, TUint32 &, TUint32 & )

    IMPORT_C voidGetPreferredIfDbIapTypeL(TUint32aRank,
    TCommDbConnectionDirectionaDirection,
    TUint32 &aBearers,
    TUint32 &aPrompt,
    TUint32 &aIAP
    )
    Gets the access point preference. Can be used only if the database type is IAP. Expects that CApDataHandler has been created and the database had been opened. In case of error, leaves with CommsDb or system error codes. Error conditions:
    • Insufficient memory;

    • Server connection failure;

    • Lock already present; Deprecated

    ParameterDescription
    aRankThe ranking of the desired connection preference.
    aBearersThe bearer set beeing valid for this connection preference
    aPromptEnum value indicating whether or not the user should be prompted or warned on connection
    aIAPThe identifier of the preferred IAP for this connection preference.

    GetPreferredIfDbIspTypeL ( TUint32, TCommDbConnectionDirection, TUint32 &, TUint32 &, TUint32 &, TUint32 & )

    IMPORT_C const TDesC &GetPreferredIfDbIspTypeL(TUint32aRank,
    TCommDbConnectionDirectionaDirection,
    TUint32 &aBearers,
    TUint32 &aPrompt,
    TUint32 &aISP,
    TUint32 &aChargeCard
    )
    Gets the access point preference. Can be used only if the database type is ISP. Expects that CApDataHandler has been created and the database had been opened. In case of error, leaves with CommsDb or system error codes. Error conditions:
    • Insufficient memory;

    • Server connection failure;

    • Lock already present; Deprecated

    ParameterDescription
    aRankThe ranking of the desired connection preference.
    aBearersThe bearer set beeing valid for this connection preference
    aPromptEnum value indicating whether or not the user should be prompted or warned on connection
    aISPThe identifier of the preferred ISP for this connection preference.
    aChargeCardIdentifier of the preferred chargecard for this connection preference.

    Returns: The type of the service.

    HandleBearerChangeIfNeededL ( CApAccessPointItem & )

    TBool HandleBearerChangeIfNeededL(CApAccessPointItem &aApItem)[protected]

    Handles the bearer change related things (deleting old links, inserting new ones if needed in the database). Expects that CApDataHandler has been created and the database had been opened. In case of error, access point data will not be changed.

    ParameterDescription
    aApItemA reference to a CApAccessPointItem holding the CHANGED data.

    Returns: Boolean indicating whether bearer has changed or not.

    NewLC ( CCommsDatabase & )

    IMPORT_C CApDataHandler *NewLC(CCommsDatabase &aDb)[static]

    Two-phased constructor. Leaves on failure, places instance on cleanup stack. Deprecated

    ParameterDescription
    aDba reference to a CCommsDataBase object.

    Returns: The constructed CApDataHandler.

    ProtocolL ( CApAccessPointItem & )

    TUint32 ProtocolL(CApAccessPointItem &aApItem)[protected]

    Returns the protocol for the passed item

    ParameterDescription
    aApItemAn access point item

    Returns: The protocol of the passed item.

    ReadDialInOutDataL ( TUint32, CApAccessPointItem & )

    voidReadDialInOutDataL(TUint32aIspId,
    CApAccessPointItem &aApItem
    )[protected]

    Reads the DialIn/Out ISP data from the database. In case of error, leaves with CommDb error codes.

    ParameterDescription
    aIspIdThe UID of the record in the Dialup table to read the data from.
    aApItemA reference to a CApAccessPointItem to hold the data

    Returns: No return value.

    ReadGprsDataL ( TUint32, CApAccessPointItem & )

    voidReadGprsDataL(TUint32aIspId,
    CApAccessPointItem &aApItem
    )[protected]

    Reads the GPRS data from the database. In case of error, leaves with CommDb error codes.

    ParameterDescription
    aIspIdThe UID of the record in the GPRS table to read the data from.
    aApItemA reference to a CApAccessPointItem to hold the data

    Returns: No return value.

    ReadIapDataL ( TUint32, CApAccessPointItem & )

    voidReadIapDataL(TUint32aIapId,
    CApAccessPointItem &aApItem
    )[protected]

    Reads the IAP part of the data from the database. In case of error, leaves with CommDb error codes.

    ParameterDescription
    aIapIdThe UID of the record in the IAP table to read the data.
    aApItemA reference to a CApAccessPointItem to hold the data

    Returns: No return value.

    ReadIspDataL ( TUint32, CApAccessPointItem & )

    voidReadIspDataL(TUint32aIspId,
    CApAccessPointItem &aApItem
    )[protected]

    Reads the ISP part of the data from the database. In case of error, leaves with CommDb error codes.

    ParameterDescription
    aIspIdThe UID of the record in the ISP table to read the data.
    aApItemA reference to a CApAccessPointItem to hold the data

    Returns: No return value.

    ReadLanDataL ( TUint32, CApAccessPointItem & )

    voidReadLanDataL(TUint32aIspId,
    CApAccessPointItem &aApItem
    )[protected]

    Reads the LAN data from the database. In case of error, leaves with CommDb error codes.

    ParameterDescription
    aIspIdThe UID of the record in the LAN table to read the data from.
    aApItemA reference to a CApAccessPointItem to hold the data

    Returns: No return value.

    ReadModemBearerNameL ( CApAccessPointItem & )

    voidReadModemBearerNameL(CApAccessPointItem &aApItem)[protected]

    Reads up the name of the LAN/Modem bearer record

    ReadNetworkDataL ( CApAccessPointItem & )

    voidReadNetworkDataL(CApAccessPointItem &aApItem)[protected]

    Reads up the network data of an access point

    ParameterDescription
    aApItemA CApAccessPointItem passed by reference holding the current access point data.

    ReadNetworkL ( TUint32, CApNetworkItem & )

    IMPORT_C voidReadNetworkL(TUint32aUid,
    CApNetworkItem &aNetwork
    )

    Reads up a network Network is identified by passed uid

    Deprecated

    ReadNetworkPartL ( CApAccessPointItem & )

    IMPORT_C voidReadNetworkPartL(CApAccessPointItem &aItem)

    Reads up a network part of the access point Network is identified by the iNetworkId of the passed access point

    Deprecated

    ReadProxyDataL ( CApAccessPointItem & )

    voidReadProxyDataL(CApAccessPointItem &aApItem)[protected]

    Reads up the proxy data of an access point

    ParameterDescription
    aApItemA CApAccessPointItem passed by reference holding the current access point data.

    ReadServiceIp6L ( CCommsDbTableView &, CApAccessPointItem & )

    voidReadServiceIp6L(CCommsDbTableView &ispt,
    CApAccessPointItem &aApItem
    )[protected]

    Reads up CSD/GPRS IPv6 parts of an access point. Leaves if it is not persent in the database

    ReadServiceL ( CCommsDbTableView &, CApAccessPointItem & )

    voidReadServiceL(CCommsDbTableView &ispt,
    CApAccessPointItem &aApItem
    )[protected]

    Reads up common IP & PPP SERVICE data parts of an access point. Leaves if it is not persent in the database

    ReadVpnInfoL ( TUint32, CApAccessPointItem & )

    voidReadVpnInfoL(TUint32aIspId,
    CApAccessPointItem &aApItem
    )[protected]

    Reads up the VPN bearer type info in case of a VPN access point In case of error, leaves with CommDb error codes.

    ParameterDescription
    aIspIdThe UID of the record in the VPN table to read the data from.
    aApItemA reference to a CApAccessPointItem to hold the data

    Returns: No return value.

    ReadWapDataL ( TUint32, CApAccessPointItem & )

    voidReadWapDataL(TUint32aWapId,
    CApAccessPointItem &aApItem
    )[protected]

    Reads the WAP part of the data from the database. In case of error, leaves with CommDb error codes.

    ParameterDescription
    aWapIdThe UID of the Access Point to read the data from.
    aApItemA reference to a CApAccessPointItem to hold the data

    Returns: No return value.

    ReadWlanL ( CCommsDbTableView &, CApAccessPointItem & )

    voidReadWlanL(CCommsDbTableView &lant,
    CApAccessPointItem &aApItem
    )[protected]

    Gets the local variant value

    Returns: A TInt stating the variant Reads up WLAN data parts of an access point. Leaves if it is not persent in the database

    RemoveAPL ( TUint32 )

    IMPORT_C voidRemoveAPL(TUint32aUid)
    Removes the given access point from the database. Expects that CApDataHandler has been created and the database had been opened. In case of error, access point will not be removed. Error conditions:
    • Insufficient memory,

    • Server connection failure.

    • Lock already present by other task.

    • Access point does not exist.

    • Attempting to remove read-only records will result in KErrAccessDenied

    Deprecated

    ParameterDescription
    aUidThe UID of the access point to remove.

    Returns: no return value.

    RemoveGprsL ( TUint32, TBool )

    voidRemoveGprsL(TUint32aUid,
    TBoolaOut
    )[protected]

    Removes the GPRS part of the access point from the database. Expects that CApDataHandler has been created and the database had been opened. In case of error, access point will not be removed.

    ParameterDescription
    aUidThe UID of the GPRS part of the access point to remove.

    Returns: No return value.

    RemoveIapL ( TUint32 )

    voidRemoveIapL(TUint32aUid)[protected]

    Removes the IAP part of the access point from the database. Expects that CApDataHandler has been created and the database had been opened. In case of error, access point will not be removed.

    ParameterDescription
    aUidThe UID of the IAP part of the access point to remove.

    Returns: No return value.

    RemoveIspL ( TUint32, TBool )

    voidRemoveIspL(TUint32aUid,
    TBoolaOut
    )[protected]

    Removes the ISP part of the access point from the database. Expects that CApDataHandler has been created and the database had been opened. In case of error, access point will not be removed.

    ParameterDescription
    aUidThe UID of the ISP part of the access point to remove.
    aOutTBool indicating whether Dial out or dial in ISP.

    Returns: No return value.

    RemoveLanL ( TUint32 )

    voidRemoveLanL(TUint32aUid)[protected]

    Removes the LAN part of the access point from the database. Expects that CApDataHandler has been created and the database had been opened. In case of error, access point will not be removed.

    ParameterDescription
    aUidThe UID of the LAN part of the access point to remove.

    Returns: No return value.

    RemoveNetworkDataL ( TUint32 )

    voidRemoveNetworkDataL(TUint32aIspId)[protected]

    Removes the network data

    ParameterDescription
    aIspIdThe record ID to remove

    RemoveNetworkL ( TUint32 )

    IMPORT_C voidRemoveNetworkL(TUint32aUid)
    Removes the given network group from the database. Expects that CApDataHandler has been created and the database had been opened. In case of error, network group will not be removed. Error conditions:
    • Insufficient memory,

    • Server connection failure.

    • Lock already present by other task.

    • network group does not exist.

    • Attempting to remove read-only records will result in KErrAccessDenied

    Deprecated

    ParameterDescription
    aUidThe UID of the network group to remove.

    Returns: no return value.

    RemoveProxyDataL ( HBufC *, TUint32 )

    voidRemoveProxyDataL(HBufC *aServiceType,
    TUint32aIspId
    )[protected]

    Removes a proxy data

    ParameterDescription
    aServiceTypeThe service type to remove for
    aIspIdThe service record ID

    RemoveWapApL ( TUint32 )

    voidRemoveWapApL(TUint32aUid)[protected]

    Removes the WAP_ACCESS_POINT table part of the access point from the database. Expects that CApDataHandler has been created and the database had been opened. In case of error, access point will not be removed.

    ParameterDescription
    aUidThe UID of the access point to remove.

    Returns: No return value.

    RemoveWapBearerApL ( TUint32 )

    voidRemoveWapBearerApL(TUint32aUid)[protected]

    Removes the WAP_BEARER table part of the access point from the database. Expects that CApDataHandler has been created and the database had been opened. In case of error, access point will not be removed.

    ParameterDescription
    aUidThe UID of the access point to remove.

    Returns: No return value.

    RemoveWlanL ( TUint32 )

    voidRemoveWlanL(TUint32aUid)[protected]

    Removes the WLAN part of the access point from the database. Expects that CApDataHandler has been created and the database had been opened. In case of error, access point will not be removed.

    ParameterDescription
    aUidThe UID of the LAN part of the access point to remove.

    Returns: No return value.

    SetAsDefaultL ( TUint32, TCommsDbIspType )

    IMPORT_C voidSetAsDefaultL(TUint32aUid,
    TCommsDbIspTypeaIntendedType
    )
    Sets the default access point. Expects that CApDataHandler has been created and the database had been opened. In case of error, leaves with CommsDb or system error codes. Error conditions:
    • Insufficient memory;

    • Server connection failure;

    • Lock already present;

    • Access point does not exists.

    • Given Access Point is not of the desired type.

    Deprecated

    ParameterDescription
    aUidThe UID of the access point to be set as default.
    aIntendedTypeThe default type ( IAP, WAP, Both).

    SetDefaultIapIspL ( TUint32 )

    voidSetDefaultIapIspL(TUint32aUid)[protected]

    Sets the default IAP & ISP records in Global Settings. In case of error, leaves with CommDb error codes.

    Returns: No return value.

    SetPreferredIfDbIapTypeL ( TUint32, TCommDbConnectionDirection, TUint32, TCommDbDialogPref, TUint32, TBool )

    IMPORT_C voidSetPreferredIfDbIapTypeL(TUint32aRank,
    TCommDbConnectionDirectionaDirection,
    TUint32aBearers,
    TCommDbDialogPrefaPrompt,
    TUint32aIAP,
    TBoolaOverwrite
    )
    Sets the access point preference. Can be used only if the database type is IAP. Expects that CApDataHandler has been created and the database had been opened. In case of error, leaves with CommsDb or system error codes. Error conditions:
    • Insufficient memory;

    • Server connection failure;

    • Lock already present; Can also leave with KErrAlreadyExists (if aOverWrite is EFalse ). Deprecated

    ParameterDescription
    aRankThe ranking of the connection preference.
    aBearersThe bearer set being valid for this connection preference
    aPromptEnum value indicating whether or not the user should be prompted or warned on connection
    aIAPThe identifier of the preferred IAP for this connection.
    aOverwriteBoolean value indicating that if a same record present, overwrite it or not.

    SetPreferredIfDbIspTypeL ( TUint32, TCommDbConnectionDirection, TUint32, TCommDbDialogPref, TUint32, TUint32, const TDesC &, TBool )

    IMPORT_C voidSetPreferredIfDbIspTypeL(TUint32aRank,
    TCommDbConnectionDirectionaDirection,
    TUint32aBearers,
    TCommDbDialogPrefaPrompt,
    TUint32aISP,
    TUint32aChargeCard,
    const TDesC &aServiceType,
    TBoolaOverwrite
    )
    Sets the access point preference. Can be used only if the database type is ISP. Expects that CApDataHandler has been created and the database had been opened. In case of error, leaves with CommsDb or system error codes. Error conditions:
    • Insufficient memory;

    • Server connection failure;

    • Lock already present; Can also leave with KErrAlreadyExists (if aOverWrite is EFalse ). Deprecated

    ParameterDescription
    aRankThe ranking of the connection preference.
    aBearersThe bearer set beeing valid for this connection preference
    aPromptEnum value indicating whether or not the user should be prompted or warned on connection
    aISPThe identifier of the preferred ISP for this connection.
    aChargeCardIdentifier of the preferred chargecard for this connection.
    aServiceTypeThe type of the service.
    aOverwriteBoolean value indicating that if a same record is present, overwrite it or not.

    UpdateAccessPointDataL ( CApAccessPointItem &, TBool & )

    IMPORT_C voidUpdateAccessPointDataL(CApAccessPointItem &aApItem,
    TBool &aNameChanged
    )
    Updates data stored in an existing access point. Expects that CApDataHandler has been created and the database had been opened. In case of error, no data is stored. Error conditions:
    • Insufficient memory

    • Server connection failure

    • Lock already present by other task

    • Uid does not exists.

    • Attempting to update read-only records will result in KErrAccessDenied

    Deprecated

    ParameterDescription
    aApItemA reference to a CApAccessPointItem holding the data
    aNameChangeda reference to a TBool that will indicate whether the name has changed or not.

    Returns: No return value.

    WriteCsdDataL ( TBool, CApAccessPointItem & )

    voidWriteCsdDataL(TBoolaIsNew,
    CApAccessPointItem &aApItem
    )[protected]

    Writes the CSD isp data to the database. In case of error, leaves with CommDb error codes. Leaves with KErrNotSupported if (HS)CSD bearer type is not supported.

    ParameterDescription
    aIsNewA Boolean indicating whether it is a new record or it is an update operation.
    aApItemReference to a CApAccessPointItem which holds the data

    Returns: No return value.

    WriteGprsDataL ( TBool, CApAccessPointItem & )

    voidWriteGprsDataL(TBoolaIsNew,
    CApAccessPointItem &aApItem
    )[protected]

    Writes the Gprs data to the database. In case of error, leaves with CommDb error codes.

    ParameterDescription
    aIsNewA Boolean indicating whether it is a new record or it is an update operation.
    aApItemReference to a CApAccessPointItem which holds the data

    Returns: No return value.

    WriteIapDataL ( TBool, TUint32, CApAccessPointItem & )

    voidWriteIapDataL(TBoolaIsNew,
    TUint32aIapId,
    CApAccessPointItem &aApItem
    )[protected]

    Writes the IAP part of the data to the database. In case of error, leaves with CommDb error codes.

    ParameterDescription
    aIsNewA Boolean indicating whether it is a new record or it is an update operation.
    aIapIdThe UID of the IAP Access Point record to update. Used only if aIsNew EFalse.
    aApItemReference to a CApAccessPointItem which holds the data

    Returns: No return value.

    WriteIspDataL ( TBool, TUint32, CApAccessPointItem & )

    voidWriteIspDataL(TBoolaIsNew,
    TUint32aIspId,
    CApAccessPointItem &aApItem
    )[protected]

    Writes the ISP part of the data to the database. In case of error, leaves with CommDb error codes.

    ParameterDescription
    aIsNewA Boolean indicating whether it is a new record or it is an update operation.
    aIspIdThe UID of the ISP Access Point record to update. Used only if aIsNew EFalse.
    aApItemReference to a CApAccessPointItem which holds the data

    Returns: No return value.

    WriteLanDataL ( TBool, CApAccessPointItem & )

    voidWriteLanDataL(TBoolaIsNew,
    CApAccessPointItem &aApItem
    )[protected]

    Writes the LAN data to the database. In case of error, leaves with CommDb error codes.

    ParameterDescription
    aIsNewA Boolean indicating whether it is a new record or it is an update operation.
    aApItemReference to a CApAccessPointItem which holds the data

    Returns: No return value.

    WriteNetworkDataL ( TBool, CApAccessPointItem & )

    voidWriteNetworkDataL(TBoolaIsNew,
    CApAccessPointItem &aApItem
    )[protected]

    Writes the network data of an access point

    ParameterDescription
    aIsNewBoolean stating whether the access point is new
    aApItemA CApAccessPointItem passed by reference holding the current access point data. It's record ID's will be updated if needed (in case it is a new item )

    WriteProxyDataL ( TBool, const CApAccessPointItem & )

    voidWriteProxyDataL(TBoolaIsNew,
    const CApAccessPointItem &aApItem
    )[protected]

    Writes the proxy data of an access point

    ParameterDescription
    aIsNewBoolean stating whether the access point is new
    aApItemA CApAccessPointItem passed by reference holding the current access point data. It's record ID's will be updated if needed (in case it is a new item )

    WriteServiceIp6L ( CCommsDbTableView &, CApAccessPointItem & )

    voidWriteServiceIp6L(CCommsDbTableView &ispt,
    CApAccessPointItem &aApItem
    )[protected]

    Writes the IPv6 parts of an access point. Leaves if it is not persent in the database

    WriteServiceL ( CCommsDbTableView &, CApAccessPointItem & )

    voidWriteServiceL(CCommsDbTableView &aTable,
    CApAccessPointItem &aApItem
    )[protected]

    Writes common IP & PPP SERVICE data parts of an access point. Leaves if it is not persent in the database

    WriteWapApDataL ( TBool, TUint32, CApAccessPointItem & )

    voidWriteWapApDataL(TBoolaIsNew,
    TUint32aWapId,
    CApAccessPointItem &aApItem
    )[protected]

    Writes the WAP AP part of the data to the database. In case of error, leaves with CommDb error codes.

    ParameterDescription
    aIsNewA Boolean indicating whether it is a new record or it is an update operation.
    aWapIdThe UID of the WAP Access Point record to update. Used only if aIsNew EFalse.
    aApItemReference to a CApAccessPointItem which holds the data

    Returns: No return value.

    WriteWapBearerDataL ( TBool, TUint32, CApAccessPointItem & )

    voidWriteWapBearerDataL(TBoolaIsNew,
    TUint32aWapId,
    CApAccessPointItem &aApItem
    )[protected]

    Writes the WAP bearer part of the data to the database. In case of error, leaves with CommDb error codes.

    ParameterDescription
    aIsNewA Boolean indicating whether it is a new record or it is an update operation.
    aWapIdThe UID of the WAP Access Point record to update. Used only if aIsNew EFalse.
    aApItemReference to a CApAccessPointItem which holds the data

    Returns: No return value.

    WriteWlanL ( CCommsDbTableView &, CApAccessPointItem & )

    voidWriteWlanL(CCommsDbTableView &aTable,
    CApAccessPointItem &aApItem
    )[protected]

    Writes the WLAN parts of an access point. Leaves if it is not persent in the database