Location:
commdb.lib
Link against: cdbpreftable.h
CCommsDbConnectionPrefTableView
Supported from 6.1
Provides access to 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.
|
Defined in CCommsDbConnectionPrefTableView
:
ChangeConnectionPreferenceRankL()
, DeleteConnectionPreferenceL()
, GotoFirstRecord()
, GotoNextRecord()
, GotoPreviousRecord()
, InsertConnectionPreferenceL()
, ReadConnectionPreferenceL()
, SwapConnectionPreferencesL()
, TCommDbIapBearer
, TCommDbIapConnectionPref
, UpdateBearerL()
, UpdateDialogPrefL()
, ~CCommsDbConnectionPrefTableView()
Inherited from CBase
:
operator new()
CCommsDbTableView
CCommsDatabase::OpenConnectionPrefTableLC()
CCommsDatabase::OpenConnectionPrefTableInRankOrderLC()
CCommsDatabase::OpenConnectionPrefTableViewOnRankLC()
CCommDbOverrideSettings::GetConnectionPreferenceOverride()
CCommDbOverrideSettings::SetConnectionPreferenceOverride()
TInt GotoFirstRecord();
Sets the first record in the view as the current record.
|
TInt GotoNextRecord();
Sets the next record in the view as the current record.
|
TInt GotoPreviousRecord();
Sets the previous record in the view as the current record.
|
void ChangeConnectionPreferenceRankL(TUint32 aNewRank);
Sets the rank field (CONNECT_PREF_RANKING
) in the current record in the view.
Note that if the new rank is not zero, and there is already a record with this rank and the same direction, then the existing record's rank is set to zero. This means that record is not used when the system finds the preferred connections.
|
|
void InsertConnectionPreferenceL(const TCommDbIapConnectionPref& aPref, TBool aReadOnly = EFalse);
Sets a new connection preference.
Note that connection preference records cannot be marked as hidden.
|
|
void ReadConnectionPreferenceL(TCommDbIapConnectionPref& aPref);
Gets the connection preferences from the current record in the view.
|
|
void SwapConnectionPreferencesL(TCommDbConnectionDirection aDirection, TUint32 aFirstRank, TUint32 aSecondRank);
Swaps the bearer (CONNECT_PREF_BEARER_SET
) and the IAP (CONNECT_PREF_IAP
) fields between two connection preferences records.
The records to use are specified by their rank (CONNECT_PREF_RANKING
) and direction (CONNECTION_PREF_DIRECTION
).
|
|
void UpdateBearerL(const TCommDbIapBearer& aUpdate, TBool aReadOnly = EFalse);
Updates the connection preference record that is current in the view.
The function sets the bearer set (CONNECT_PREF_BEARER_SET
) and IAP (CONNECT_PREF_IAP
) fields. The direction field (CONNECTION_PREF_DIRECTION
) cannot be altered after it has been written to the record.
|
|
void UpdateDialogPrefL(const TCommDbDialogPref& aUpdate);
Updates the dialog preference field (CONNECT_PREF_DIALOG_PREF
) in the current record in the view.
|
|
TCommDbIapBearer
Encapsulates the bearer set (CONNECT_PREF_BEARER_SET
) and IAP (CONNECT_PREF_IAP
) fields.
Defined in CCommsDbConnectionPrefTableView::TCommDbIapBearer
:
TCommDbIapBearer()
, iBearerSet
, iIapId
TCommDbIapConnectionPref
Encapsulates the rank (CONNECT_PREF_RANKING
), direction (CONNECTION_PREF_DIRECTION
), and dialog preference (CONNECT_PREF_DIALOG_PREF
) fields, plus a TCommDbIapBearer
object.
Defined in CCommsDbConnectionPrefTableView::TCommDbIapConnectionPref
:
TCommDbIapConnectionPref()
, iBearer
, iDialogPref
, iDirection
, iRanking
, operator==()
TCommDbIapConnectionPref();
Default constructor.
The rank is set to 0, and the direction and dialog preference to unknown.
TBool operator==(const TCommDbIapConnectionPref& aPref) const;
Overloaded equality operator.
|
|
TCommDbConnectionDirection iDirection;
Value for the direction (CONNECTION_PREF_DIRECTION
) field.
TCommDbDialogPref iDialogPref;
Value for the dialog preference (CONNECT_PREF_DIALOG_PREF
) field.
TCommDbIapBearer iBearer;
Values for the bearer (CONNECT_PREF_BEARER_SET
) and IAP (CONNECT_PREF_IAP
) fields.