class CCommsDatabase : public CCommsDatabaseBase |
Accesses the communications database through the DBMS.
An object of this type must be constructed and opened by a client before any of the tables in the database can be accessed, e.g. to create views and access template records.
Implements the pure virtual functions CreateDatabaseL() and DoOpen(). Responsible for Global settings and Connection Preferences. Has utility functions for accessing Global and Agent tables. No additional state (to CCommsDatabaseBase) is stored.
Protected Member Functions | |
---|---|
CCommsDatabase() | |
void | DoOpenL(TCommDbOpeningMethod &, TBool) |
Private Member Functions | |
---|---|
void | CreateDatabaseL() |
TGlobalSettingType | GlobalSettingTypeL(const TDesC &) |
CCommsDbTableView * | OpenGlobalSettingsTableLC(const TDesC &, TBool &) |
Private Member Enumerations | |
---|---|
enum | TGlobalSettingType { ENotASetting, EGlobalSetting, ECompatibilitySetting } |
IMPORT_C void | ClearAgentAndExtL | ( | const TDesC & | aService | ) |
const TDesC & aService |
IMPORT_C void | ClearGlobalSettingL | ( | const TDesC & | aSetting | ) |
const TDesC & aSetting |
void | DoOpenL | ( | TCommDbOpeningMethod & | aOpeningMethod, |
TBool | aUseDefaultDb | |||
) | [protected] |
TCommDbOpeningMethod & aOpeningMethod | |
TBool aUseDefaultDb |
IMPORT_C TInt | GetAgentClientTimeoutL | ( | const TDesC & | aService | ) |
const TDesC & aService |
IMPORT_C void | GetAgentExtL | ( | const TDesC & | aService, |
TDes & | aAgentExt | |||
) |
IMPORT_C TInt | GetAgentRouteTimeoutL | ( | const TDesC & | aService | ) |
const TDesC & aService |
IMPORT_C void | GetCurrentDialInSettingL | ( | const TDesC & | aSetting, |
TUint32 & | aValue | |||
) |
IMPORT_C void | GetCurrentDialOutSettingL | ( | const TDesC & | aSetting, |
TUint32 & | aValue | |||
) |
IMPORT_C void | GetGlobalSettingL | ( | const TDesC & | aSetting, |
TUint32 & | aValue | |||
) |
IMPORT_C void | GetGlobalSettingL | ( | const TDesC & | aSetting, |
TDes & | aValue | |||
) |
TGlobalSettingType | GlobalSettingTypeL | ( | const TDesC & | aSetting | ) | const [private] |
const TDesC & aSetting |
IMPORT_C CCommsDatabase * | NewL | ( | TCommDbOpeningMethod & | aOpeningMethod | ) | [static] |
TCommDbOpeningMethod & aOpeningMethod |
IMPORT_C CCommsDatabase * | NewL | ( | TCommDbDatabaseType | aDbType | ) | [static] |
TCommDbDatabaseType aDbType |
IMPORT_C CCommsDatabase * | NewL | ( | TCommDbDatabaseType | aDbType, |
TCommDbOpeningMethod & | aOpeningMethod | |||
) | [static] |
TCommDbDatabaseType aDbType | |
TCommDbOpeningMethod & aOpeningMethod |
IMPORT_C CCommsDbConnectionPrefTableView * | OpenConnectionPrefTableInRankOrderLC | ( | TCommDbConnectionDirection | aDirection | ) |
TCommDbConnectionDirection aDirection |
IMPORT_C CCommsDbConnectionPrefTableView * | OpenConnectionPrefTableLC | ( | TCommDbConnectionDirection | aDirection | ) |
TCommDbConnectionDirection aDirection |
IMPORT_C CCommsDbConnectionPrefTableView * | OpenConnectionPrefTableViewOnRankLC | ( | TCommDbConnectionDirection | aDirection, |
TUint32 | aRank | |||
) |
TCommDbConnectionDirection aDirection | |
TUint32 aRank |
CCommsDbTableView * | OpenGlobalSettingsTableLC | ( | const TDesC & | aSetting, |
TBool & | aExists | |||
) | [private] |
IMPORT_C CCommsDbTableView * | OpenIAPTableViewMatchingBearerSetLC | ( | TUint32 | aBearerSet, |
TCommDbConnectionDirection | aDirection | |||
) |
Open a view on the IAP table containing records that match the bearers and direction specified. `aBearerSet` is a bit mask of type `TCommDbBearer`.
TUint32 aBearerSet | |
TCommDbConnectionDirection aDirection |
IMPORT_C CCommsDbTableView * | OpenIAPTableViewMatchingNetworkLC | ( | TUint32 | aNetwork | ) |
Open a viewon the IAP table containing records which match the specified network
TUint32 aNetwork |
IMPORT_C CCommsDbTableView * | OpenViewOnProxyRecordLC | ( | TUint32 | aServiceId, |
const TDesC & | aServiceType | |||
) |
IMPORT_C void | SetAgentClientTimeoutL | ( | const TDesC & | aService, |
TInt | aClientTimeout | |||
) |
IMPORT_C void | SetAgentExtL | ( | const TDesC & | aService, |
const TDesC & | aAgentExt | |||
) |
IMPORT_C void | SetAgentL | ( | const TDesC & | aService, |
const TDesC & | aAgent | |||
) |
IMPORT_C void | SetAgentRouteTimeoutL | ( | const TDesC & | aService, |
TInt | aRouteTimeout | |||
) |
IMPORT_C void | SetGlobalSettingL | ( | const TDesC & | aSetting, |
TUint32 | aValue | |||
) |
IMPORT_C void | SetGlobalSettingL | ( | const TDesC & | aSetting, |
const TDesC & | aValue | |||
) |