class CCommsDbConnectionPrefTableView : public CBase |
Implements actions on records of the Connection Preferences table, to allow clients to set the preferred order in which connections are attempted.
The class is similiar to CCommsDbTableView, but only allows access to connection preferences as a set and not to individual fields in the table. This prevents inappropriate updates of the records. Like CCommsDbTableView, the class has a group of functions for navigating through the records in the view, and another group for setting fields in the current record.
Clients do not create this type of object, but get an instance through CCommsDatabase::OpenConnectionPrefTableLC(), CCommsDatabase::OpenConnectionPrefTableInRankOrderLC(), or CCommsDatabase::OpenConnectionPrefTableViewOnRankLC().
In addition to the leave codes documented, all leaving functions can leave with any error returned by DBMS during database manipulation.
CCommDbOverrideSettings::GetConnectionPreferenceOverride()
CCommDbOverrideSettings::SetConnectionPreferenceOverride()
Protected Member Functions | |
---|---|
CCommsDbConnectionPrefTableView(CCommsDatabase &) | |
void | Close() |
TDbColNo | ColNum(const TDesC &) |
void | ConstructL(const TDbQuery &) |
void | ConstructL(TCommDbConnectionDirection, TBool) |
void | ConstructL(TCommDbConnectionDirection, TUint32) |
RDbRowSet::TAccess | GetL() |
void | GetUint32L(const TDesC &, TUint32 &) |
void | OpenL(const TDbQuery &) |
Private Member Functions | |
---|---|
void | DoSwapConnectionPreferencesL(TCommDbConnectionDirection, TUint32, TUint32) |
void | SetRankL(TUint32) |
Protected Attributes | |
---|---|
CCommsDatabase & | iDb |
CCommDbTableExtension * | iTableExt |
RDbView | iTableView |
CCommsDbConnectionPrefTableView | ( | CCommsDatabase & | aDb | ) | [protected] |
CCommsDatabase & aDb |
IMPORT_C void | ChangeConnectionPreferenceRankL | ( | TUint32 | aNewRank | ) |
TUint32 aNewRank |
TDbColNo | ColNum | ( | const TDesC & | aColumn | ) | const [protected, inline] |
Returns the column number of the Column aColumn in the table
Coloumn concept doesn't exist in CommsDat depNot supported from v9.1
The ordinal number of the column else KDbNullColNo if no such column exists.
const TDesC & aColumn | A reference to a descriptor containing the name of a column in the current record. |
void | ConstructL | ( | const TDbQuery & | aQuery | ) | [protected] |
const TDbQuery & aQuery |
void | ConstructL | ( | TCommDbConnectionDirection | aDirection, |
TBool | aSortRanking | |||
) | [protected] |
TCommDbConnectionDirection aDirection | |
TBool aSortRanking |
void | ConstructL | ( | TCommDbConnectionDirection | aDirection, |
TUint32 | aRank | |||
) | [protected] |
TCommDbConnectionDirection aDirection | |
TUint32 aRank |
void | DoSwapConnectionPreferencesL | ( | TCommDbConnectionDirection | aDirection, |
TUint32 | aFirstRank, | |||
TUint32 | aSecondRank | |||
) | [private] |
TCommDbConnectionDirection aDirection | |
TUint32 aFirstRank | |
TUint32 aSecondRank |
void | GetUint32L | ( | const TDesC & | aColumnName, |
TUint32 & | aValue | |||
) | [protected] |
IMPORT_C void | InsertConnectionPreferenceL | ( | const TCommDbIapConnectionPref & | aPref, |
TBool | aReadOnly = EFalse | |||
) |
const TCommDbIapConnectionPref & aPref | |
TBool aReadOnly = EFalse |
IMPORT_C void | InsertConnectionPreferenceL | ( | const TCommDbIspConnectionPref & | aPref, |
TBool | aReadOnly = EFalse | |||
) |
const TCommDbIspConnectionPref & aPref | |
TBool aReadOnly = EFalse |
CCommsDbConnectionPrefTableView * | NewL | ( | CCommsDatabase & | aDb, |
TCommDbConnectionDirection | aDirection, | |||
TUint32 | aRank | |||
) | [static] |
CCommsDatabase & aDb | |
TCommDbConnectionDirection aDirection | |
TUint32 aRank |
CCommsDbConnectionPrefTableView * | NewLC | ( | CCommsDatabase & | aDb, |
const TDbQuery & | aQuery | |||
) | [static] |
CCommsDatabase & aDb | |
const TDbQuery & aQuery |
CCommsDbConnectionPrefTableView * | NewLC | ( | CCommsDatabase & | aDb, |
TCommDbConnectionDirection | aDirection, | |||
TBool | aSortRanking = EFalse | |||
) | [static] |
CCommsDatabase & aDb | |
TCommDbConnectionDirection aDirection | |
TBool aSortRanking = EFalse |
void | OpenL | ( | const TDbQuery & | aQuery | ) | [protected] |
const TDbQuery & aQuery |
IMPORT_C void | ReadConnectionPreferenceL | ( | TCommDbIapConnectionPref & | aPref | ) |
TCommDbIapConnectionPref & aPref |
IMPORT_C void | ReadConnectionPreferenceL | ( | TCommDbIspConnectionPref & | aPref | ) |
TCommDbIspConnectionPref & aPref |
IMPORT_C void | SwapConnectionPreferencesL | ( | TCommDbConnectionDirection | aDirection, |
TUint32 | aFirstRank, | |||
TUint32 | aSecondRank | |||
) |
TCommDbConnectionDirection aDirection | |
TUint32 aFirstRank | |
TUint32 aSecondRank |
IMPORT_C void | UpdateBearerL | ( | const TCommDbIapBearer & | aUpdate, |
TBool | aReadOnly = EFalse | |||
) |
const TCommDbIapBearer & aUpdate | |
TBool aReadOnly = EFalse |
IMPORT_C void | UpdateBearerL | ( | const TCommDbIspBearer & | aUpdate, |
TBool | aReadOnly = EFalse | |||
) |
const TCommDbIspBearer & aUpdate | |
TBool aReadOnly = EFalse |
IMPORT_C void | UpdateDialogPrefL | ( | const TCommDbDialogPref & | aUpdate | ) |
const TCommDbDialogPref & aUpdate |
RDbView | iTableView | [protected] |
DBMS view. Variable not used in shim. Not removed because of BC break