API published in: S60 1st Ed
API deprecated in: S60 3rd Ed FP 2
Link against: apengine.lib
Required Capabilities
None
Exceptions
Functions modifying database (Create, Update, Delete) need WriteDeviceData. (CApDataHandler, CApUtils Setxxx functions)
#include <apdatahandler.h>
Encapsulates a session with the CommsDB Provides a way to access the database and manipulate its data.
Public Member Functions |
|
virtual IMPORT_C | ~CApDataHandler () |
Destructor. |
|
IMPORT_C void | AccessPointDataL (TUint32 aUid, CApAccessPointItem &aApItem) |
Reads up one access point's data from the database. |
|
IMPORT_C void | UpdateAccessPointDataL (CApAccessPointItem &aApItem, TBool &aNameChanged) |
Updates data stored in an existing access point. |
|
IMPORT_C TUint32 | CreateCopyFromL (TUint32 aBaseId) |
Creates a copy of a previously existing access point. |
|
IMPORT_C TUint32 | CreateFromDataL (CApAccessPointItem &aApItem) |
Create a new access point from supplied data Expects that CApDataHandler has been created and the database had been opened.
|
|
IMPORT_C void | RemoveAPL (TUint32 aUid) |
Removes the given access point from the database. |
|
IMPORT_C TUint32 | DefaultL (TBool aIsWap) const |
Reads the UID of the default access point. |
|
IMPORT_C void | SetAsDefaultL (TUint32 aUid, TCommsDbIspType aIntendedType) |
Sets the default access point. |
|
IMPORT_C void | SetPreferredIfDbIapTypeL (TUint32 aRank, TCommDbConnectionDirection aDirection, TUint32 aBearers, TCommDbDialogPref aPrompt, TUint32 aIAP, TBool aOverwrite) |
Sets the access point preference. |
|
IMPORT_C void | SetPreferredIfDbIspTypeL (TUint32 aRank, TCommDbConnectionDirection aDirection, TUint32 aBearers, TCommDbDialogPref aPrompt, TUint32 aISP, TUint32 aChargeCard, const TDesC &aServiceType, TBool aOverwrite) |
Sets the access point preference. |
|
IMPORT_C void | GetPreferredIfDbIapTypeL (TUint32 aRank, TCommDbConnectionDirection aDirection, TUint32 &aBearers, TUint32 &aPrompt, TUint32 &aIAP) |
Gets the access point preference. |
|
IMPORT_C const TDesC & | GetPreferredIfDbIspTypeL (TUint32 aRank, TCommDbConnectionDirection aDirection, TUint32 &aBearers, TUint32 &aPrompt, TUint32 &aISP, TUint32 &aChargeCard) |
Gets the access point preference. |
|
IMPORT_C TUint32 | DefaultL (TBool aIsWap, TBool &aReadOnly) const |
Reads the UID of the default access point. |
|
IMPORT_C void | RemoveNetworkL (TUint32 aUid) |
Removes the given network group from the database. |
|
IMPORT_C void | CreateNetworkL (CApNetworkItem &aNetwork) |
Creates a network group from the data. |
|
IMPORT_C void | ReadNetworkPartL (CApAccessPointItem &aItem) |
Reads up a network part of the access point Network is identified by the iNetworkId of the passed access point. |
|
IMPORT_C void | ReadNetworkL (TUint32 aUid, CApNetworkItem &aNetwork) |
Reads up a network Network is identified by passed uid. |
|
Static Public Member Functions |
|
static IMPORT_C CApDataHandler * | NewLC (CCommsDatabase &aDb) |
Two-phased constructor. |
|
Protected Member Functions |
|
IMPORT_C | CApDataHandler () |
C++ default constructor. |
|
IMPORT_C void | ConstructL (CCommsDatabase &aDb) |
Second-phase constructor. |
|
void | ReadWapDataL (TUint32 aWapId, CApAccessPointItem &aApItem) |
Reads the WAP part of the data from the database. |
|
void | ReadIapDataL (TUint32 aIapId, CApAccessPointItem &aApItem) |
Reads the IAP part of the data from the database. |
|
void | ReadIspDataL (TUint32 aIspId, CApAccessPointItem &aApItem) |
Reads the ISP part of the data from the database. |
|
void | ReadGprsDataL (TUint32 aIspId, CApAccessPointItem &aApItem) |
Reads the GPRS data from the database. |
|
void | ReadCdmaDataL (TUint32 aIspId, CApAccessPointItem &aApItem) |
Reads the CDMA data from the database. |
|
void | ReadLanDataL (TUint32 aIspId, CApAccessPointItem &aApItem) |
Reads the LAN data from the database. |
|
void | ReadDialInOutDataL (TUint32 aIspId, CApAccessPointItem &aApItem) |
Reads the DialIn/Out ISP data from the database. |
|
void | ReadVpnInfoL (TUint32 aIspId, CApAccessPointItem &aApItem) |
Reads up the VPN bearer type info in case of a VPN access point In case of error, leaves with CommDb error codes. |
|
void | WriteWapBearerDataL (TBool aIsNew, TUint32 aWapId, CApAccessPointItem &aApItem) |
Writes the WAP bearer part of the data to the database. |
|
void | WriteWapApDataL (TBool aIsNew, TUint32 aWapId, CApAccessPointItem &aApItem) |
Writes the WAP AP part of the data to the database. |
|
void | WriteIapDataL (TBool aIsNew, TUint32 aIapId, CApAccessPointItem &aApItem) |
Writes the IAP part of the data to the database. |
|
void | WriteIspDataL (TBool aIsNew, TUint32 aIspId, CApAccessPointItem &aApItem) |
Writes the ISP part of the data to the database. |
|
void | WriteCdmaDataL (TBool aIsNew, CApAccessPointItem &aApItem) |
Writes the Cdma data to the database. |
|
void | WriteGprsDataL (TBool aIsNew, CApAccessPointItem &aApItem) |
Writes the Gprs data to the database. |
|
void | WriteLanDataL (TBool aIsNew, CApAccessPointItem &aApItem) |
Writes the LAN data to the database. |
|
TUint32 | DoUpdateAccessPointDataL (CApAccessPointItem &aApItem, TBool aIsNew, TBool &aNameChanged) |
Writes the data to the database. |
|
void | SetDefaultIapIspL (TUint32 aUid) |
Sets the default IAP & ISP records in Global Settings. |
|
void | RemoveWapBearerApL (TUint32 aUid) |
Removes the WAP_BEARER table part of the access point from the database. |
|
void | RemoveWapApL (TUint32 aUid) |
Removes the WAP_ACCESS_POINT table part of the access point from the database. |
|
void | RemoveIapL (TUint32 aUid) |
Removes the IAP part of the access point from the database. |
|
void | RemoveIspL (TUint32 aUid, TBool aOut) |
Removes the ISP part of the access point from the database. |
|
void | RemoveGprsL (TUint32 aUid, TBool aOut) |
Removes the GPRS part of the access point from the database. |
|
void | RemoveCdmaL (TUint32 aUid) |
Removes the CDMA part of the access point from the database. |
|
void | RemoveLanL (TUint32 aUid) |
Removes the LAN part of the access point from the database. |
|
void | RemoveWlanL (TUint32 aUid) |
Removes the WLAN part of the access point from the database. |
|
TBool | HandleBearerChangeIfNeededL (CApAccessPointItem &aApItem) |
Handles the bearer change related things (deleting old links, inserting new ones if needed in the database). |
|
void | DoAccessPointDataL (TUint32 aUid, CApAccessPointItem &aApItem) |
Reads up one access point's data from the database. |
|
void | DoRemoveAPL (TUint32 aUid) |
Removes the given access point from the database. |
|
void | DoSetAsDefaultL (TUint32 aUid, TCommsDbIspType aIntendedType) |
Sets the default access point. |
|
void | DoSetPreferredIfDbIapTypeL (TUint32 aRank, TCommDbConnectionDirection aDirection, TUint32 aBearers, TCommDbDialogPref aPrompt, TUint32 aIAP, TBool aOverwrite) |
Sets the access point preference. |
|
void | DoSetPreferredIfDbIspTypeL (TUint32 aRank, TCommDbConnectionDirection aDirection, TUint32 aBearers, TCommDbDialogPref aPrompt, TUint32 aISP, TUint32 aChargeCard, const TDesC &aServiceType, TBool aOverwrite) |
Sets the access point preference. |
|
void | ApSpeed2EtelL (CApAccessPointItem *aItem) |
Converts setted AP speed from TApCallSpeed to commsdb values. |
|
void | EtelSpeed2ApL (CApAccessPointItem &aItem) |
Converts commsdb speed values to TApCallSpeed. |
|
TUint32 | DoGetDefaultL (TBool aIsWap, TBool *aReadOnly) const |
Reads the UID of the default access point. |
|
void | WriteProxyDataL (TBool aIsNew, const CApAccessPointItem &aApItem) |
Writes the proxy data of an access point. |
|
void | ReadProxyDataL (CApAccessPointItem &aApItem) |
Reads up the proxy data of an access point. |
|
void | RemoveProxyDataL (HBufC *aServiceType, TUint32 aIspId) |
Removes a proxy data. |
|
void | WriteNetworkDataL (TBool aIsNew, CApAccessPointItem &aApItem) |
Writes the network data of an access point. |
|
void | ReadNetworkDataL (CApAccessPointItem &aApItem) |
Reads up the network data of an access point. |
|
void | RemoveNetworkDataL (TUint32 aIspId) |
Removes the network data. |
|
TUint32 | GetLocationIdL () |
Gets the location record ID. |
|
TUint32 | GetModemBearerIDL (CApAccessPointItem &aApItem) |
Gets the modem record ID. |
|
TUint32 | ProtocolL (CApAccessPointItem &aApItem) |
Returns the protocol for the passed item. |
|
TUint32 | CommsDbSpeedL (CApAccessPointItem &aApItem) |
Returns the commsdb speed for the passed item. |
|
void | ReadServiceL (CCommsDbTableView &ispt, CApAccessPointItem &aApItem) |
Reads up common IP & PPP SERVICE data parts of an access point. |
|
void | ReadServiceIp6L (CCommsDbTableView &ispt, CApAccessPointItem &aApItem) |
Reads up CSD/GPRS IPv6 parts of an access point. |
|
void | WriteServiceL (CCommsDbTableView &aTable, CApAccessPointItem &aApItem) |
Writes common IP & PPP SERVICE data parts of an access point. |
|
void | WriteServiceIp6L (CCommsDbTableView &ispt, CApAccessPointItem &aApItem) |
Writes the IPv6 parts of an access point. |
|
void | WriteCsdDataL (TBool aIsNew, CApAccessPointItem &aApItem) |
Writes the CSD isp data to the database. |
|
void | ReadWlanL (CCommsDbTableView &lant, CApAccessPointItem &aApItem) |
Reads up WLAN data parts of an access point. |
|
void | WriteWlanL (CCommsDbTableView &aTable, CApAccessPointItem &aApItem) |
Writes the WLAN parts of an access point. |
|
TUint32 | CreateLanBearerIfNeededL () |
Creates a new record in the LANBearer table if there is none for WLAN. |
|
void | ReadModemBearerNameL (CApAccessPointItem &aApItem) |
Reads up the name of the LAN/Modem bearer record. |
|
Destructor. |
|
C++ default constructor. |
|
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.
|
|
Converts setted AP speed from TApCallSpeed to commsdb values.
|
|
Returns the commsdb speed for the passed item.
|
|
Second-phase constructor. |
|
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.
|
|
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.
|
|
Creates a new record in the LANBearer table if there is none for WLAN.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
Writes the data to the database. In case of error, leaves with CommDb error codes.
|
|
Converts commsdb speed values to TApCallSpeed.
|
|
Gets the location record ID.
|
|
Gets the modem record ID.
|
|
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.
|
|
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.
|
|
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.
|
|
Two-phased constructor. Leaves on failure, places instance on cleanup stack.
|
|
Returns the protocol for the passed item.
|
|
Reads the CDMA data from the database. In case of error, leaves with CommDb error codes.
|
|
Reads the DialIn/Out ISP data from the database. In case of error, leaves with CommDb error codes.
|
|
Reads the GPRS data from the database. In case of error, leaves with CommDb error codes.
|
|
Reads the IAP part of the data from the database. In case of error, leaves with CommDb error codes.
|
|
Reads the ISP part of the data from the database. In case of error, leaves with CommDb error codes.
|
|
Reads the LAN data from the database. In case of error, leaves with CommDb error codes.
|
|
Reads up the name of the LAN/Modem bearer record. |
|
Reads up the network data of an access point.
|
|
Reads up a network Network is identified by passed uid. |
|
Reads up a network part of the access point Network is identified by the iNetworkId of the passed access point. |
|
Reads up the proxy data of an access point.
|
|
Reads up CSD/GPRS IPv6 parts of an access point. Leaves if it is not persent in the database
|
|
Reads up common IP & PPP SERVICE data parts of an access point. Leaves if it is not persent in the database
|
|
Reads up the VPN bearer type info in case of a VPN access point In case of error, leaves with CommDb error codes.
|
|
Reads the WAP part of the data from the database. In case of error, leaves with CommDb error codes.
|
|
Reads up WLAN data parts of an access point. Leaves if it is not persent in the database
|
|
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.
|
|
Removes the CDMA 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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
Removes the network data.
|
|
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.
|
|
Removes a proxy data.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
Sets the default IAP & ISP records in Global Settings. In case of error, leaves with CommDb error codes.
|
|
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.
|
|
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.
|
|
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.
|
|
Writes the Cdma data to the database. In case of error, leaves with CommDb error codes.
|
|
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.
|
|
Writes the Gprs data to the database. In case of error, leaves with CommDb error codes.
|
|
Writes the IAP part of the data to the database. In case of error, leaves with CommDb error codes.
|
|
Writes the ISP part of the data to the database. In case of error, leaves with CommDb error codes.
|
|
Writes the LAN data to the database. In case of error, leaves with CommDb error codes.
|
|
Writes the network data of an access point.
|
|
Writes the proxy data of an access point.
|
|
Writes the IPv6 parts of an access point. Leaves if it is not persent in the database
|
|
Writes common IP & PPP SERVICE data parts of an access point. Leaves if it is not persent in the database
|
|
Writes the WAP AP part of the data to the database. In case of error, leaves with CommDb error codes.
|
|
Writes the WAP bearer part of the data to the database. In case of error, leaves with CommDb error codes.
|
|
Writes the WLAN parts of an access point. Leaves if it is not persent in the database
|