CCommsDbConnectionPrefTableView Class Reference
class CCommsDbConnectionPrefTableView : public CBase
|
Inherits from
-
CCommsDbConnectionPrefTableView
Nested Classes and Structures
Public Member Functions
|
|
~CCommsDbConnectionPrefTableView
()
|
IMPORT_C void
|
ChangeConnectionPreferenceRankL
(
TUint32
)
|
IMPORT_C void
|
DeleteConnectionPreferenceL
()
|
IMPORT_C
TInt
|
GotoFirstRecord
()
|
IMPORT_C
TInt
|
GotoNextRecord
()
|
IMPORT_C
TInt
|
GotoPreviousRecord
()
|
IMPORT_C void
|
InsertConnectionPreferenceL
(const
TCommDbIapConnectionPref
&,
TBool
)
|
IMPORT_C void
|
InsertConnectionPreferenceL
(const
TCommDbIspConnectionPref
&,
TBool
)
|
CCommsDbConnectionPrefTableView
*
|
NewL
(
CCommsDatabase
&,
TCommDbConnectionDirection
,
TUint32
)
|
CCommsDbConnectionPrefTableView
*
|
NewLC
(
CCommsDatabase
&, const
TDbQuery
&)
|
CCommsDbConnectionPrefTableView
*
|
NewLC
(
CCommsDatabase
&,
TCommDbConnectionDirection
,
TBool
)
|
IMPORT_C void
|
ReadConnectionPreferenceL
(
TCommDbIapConnectionPref
&)
|
IMPORT_C void
|
ReadConnectionPreferenceL
(
TCommDbIspConnectionPref
&)
|
IMPORT_C void
|
SwapConnectionPreferencesL
(
TCommDbConnectionDirection
,
TUint32
,
TUint32
)
|
IMPORT_C void
|
UpdateBearerL
(const
TCommDbIapBearer
&,
TBool
)
|
IMPORT_C void
|
UpdateBearerL
(const
TCommDbIspBearer
&,
TBool
)
|
IMPORT_C void
|
UpdateDialogPrefL
(const
TCommDbDialogPref
&)
|
Constructor & Destructor Documentation
CCommsDbConnectionPrefTableView(CCommsDatabase &)
~CCommsDbConnectionPrefTableView()
IMPORT_C
|
~CCommsDbConnectionPrefTableView
|
(
|
)
|
[virtual]
|
Member Functions Documentation
ChangeConnectionPreferenceRankL(TUint32)
IMPORT_C void
|
ChangeConnectionPreferenceRankL
|
(
|
TUint32
|
aNewRank
|
)
|
|
Sets the rank field (CONNECT_PREF_RANKING) in the currently selected connection preference 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.
-
leave
-
KErrAccessDenied The record cannot be updated as it is read-only
-
leave
-
KErrNotFound There is no current record in the view
-
leave
-
KErrOverflow aNewRank is greater than the maximum allowed
-
capability
-
Dependent on table, see the guide page referenced below.
Parameters
TUint32
aNewRank
|
The new rank for the record.
|
Close()
void
|
Close
|
(
|
)
|
[protected]
|
Closes the rowset and releases any owned resources.
ColNum(const TDesC &)
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
Parameters
const
TDesC
& aColumn
|
A reference to a descriptor containing the name of a column in the current record.
|
ConstructL(const TDbQuery &)
void
|
ConstructL
|
(
|
const
TDbQuery
&
|
aQuery
|
)
|
[protected]
|
Prepares and evaluates the table view using the SQL query aQuery
This method is deprecated from 9.1 and always returns/leaves with KErrNotSupported instead of describing past operation/parameters.
Parameters
const
TDbQuery
& aQuery
|
Query to perform
|
ConstructL(TCommDbConnectionDirection, TBool)
Creates RecordSet Container and loads date to it.
ConstructL(TCommDbConnectionDirection, TUint32)
Prepares and evaluates the table view using params
DeleteConnectionPreferenceL()
IMPORT_C void
|
DeleteConnectionPreferenceL
|
(
|
)
|
|
Deletes the currently selected connection preference record in the view.
-
capability
-
Dependent on table, see the guide page referenced below.
DoSwapConnectionPreferencesL(TCommDbConnectionDirection, TUint32, TUint32)
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).
Note that the dialogue option is not altered.
-
leave
-
KErrAccessDenied The record cannot be updated as it is read-only
-
leave
-
KErrArgument There is more than one record with the same ranking as one of the rankings
-
leave
-
KErrNotFound A record with one of the rankings does not exist
-
leave
-
KErrOverflow One of the rankings is greater than the maximum allowed
-
capability
-
Dependent on table, see the guide page referenced below.
GetL()
Gets the operations that can be performed on the current connection preference record If there isn't an access table at all, then treat the table as updatable.
GetUint32L(const TDesC &, TUint32 &)
void
|
GetUint32L
|
(
|
const
TDesC
&
|
aColumnName,
|
|
TUint32
&
|
aValue
|
|
)
|
[protected]
|
GotoFirstRecord()
IMPORT_C
TInt
|
GotoFirstRecord
|
(
|
)
|
|
Sets the first connection preference record in this view as the current record.
-
capability
-
Dependent on table, see the guide page referenced below.
GotoNextRecord()
IMPORT_C
TInt
|
GotoNextRecord
|
(
|
)
|
|
Sets the next connection preference record in the view as the current record.
-
capability
-
Dependent on table, see the guide page referenced below.
GotoPreviousRecord()
IMPORT_C
TInt
|
GotoPreviousRecord
|
(
|
)
|
|
Sets the previous connection preference record in the view as the current record.
-
capability
-
Dependent on table, see the guide page referenced below.
InsertConnectionPreferenceL(const TCommDbIapConnectionPref &, TBool)
Inserts a new IAP connection preference into the connetion preference table. The supplied `aPref` is checked to ensure that the rank and direction do not conflict with existing records. The dialog option, bearer set and IAP are checked for consistancy. Deprecated in 7.0 but re-instated to accommodate 6.1 BC
-
capability
-
Dependent on table, see the guide page referenced below.
Parameters
const
TCommDbIapConnectionPref
& aPref
|
Settings for the new connection preference.
|
TBool
aReadOnly = EFalse
|
If ETrue the record is set to be read-only. If left unspecified the default is EFalse.
|
InsertConnectionPreferenceL(const TCommDbIspConnectionPref &, TBool)
Override version of InsertConnectionPreferenceL for BC purposes. This method is deprecated from 9.1 and always returns/leaves with KErrNotSupported instead of describing past operation/parameters.
NewL(CCommsDatabase &, TCommDbConnectionDirection, TUint32)
Create a view. Usually, however, views are created by calling one of the CCommsDatabase::OpenConnectionPrefTable*LC() functions.
NewLC(CCommsDatabase &, const TDbQuery &)
CCommsDbConnectionPrefTableView
definitions Create a view. Usually, however, views are created by calling one of the CCommsDatabase::OpenConnectionPrefTable*LC() functions.
This method is deprecated from 9.1 and always returns/leaves with KErrNotSupported instead of describing past operation/parameters.
NewLC(CCommsDatabase &, TCommDbConnectionDirection, TBool)
Create a view. Usually, however, views are created by calling one of the CCommsDatabase::OpenConnectionPrefTable*LC() functions.
OpenL(const TDbQuery &)
void
|
OpenL
|
(
|
const
TDbQuery
&
|
aQuery
|
)
|
[protected]
|
ReadConnectionPreferenceL(TCommDbIapConnectionPref &)
Gets the IAP connection preferences record currently selected in the view.
-
leave
-
KErrNotFound There is no current record in the view
-
leave
-
KErrUnknown A field in the connection preference record is null
-
capability
-
Dependent on table, see the guide page referenced below.
ReadConnectionPreferenceL(TCommDbIspConnectionPref &)
in v7.0
Framework left to support BC with v6.1
-
leave
-
KErrNotSupported
SetRankL(TUint32)
void
|
SetRankL
|
(
|
TUint32
|
aNewRank
|
)
|
[private]
|
SwapConnectionPreferencesL(TCommDbConnectionDirection, TUint32, TUint32)
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).
Note that the dialogue option is not altered.
-
leave
-
KErrAccessDenied The record cannot be updated as it is read-only
-
leave
-
KErrArgument There is more than one record with the same ranking as one of the rankings
-
leave
-
KErrNotFound A record with one of the rankings does not exist
-
leave
-
KErrOverflow One of the rankings is greater than the maximum allowed
-
capability
-
Dependent on table, see the guide page referenced below.
UpdateBearerL(const TCommDbIapBearer &, TBool)
Update the bearer set and IAP for the currently selected IAP connection preference record. The dialog option, bearer set and IAP are checked for consistancy. Deprecated in 7.0 but re-instated to accomodate 6.1 BC. Update the bearer set and iap for the currently selected connection preference. The dialog option, bearer set and IAP are checked for consistancy. 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.
-
leave
-
KErrAccessDenied The record cannot be updated as it is read-only; KErrArgument The specified IAP (aPref.iBearer.iIapId) cannot be used, as it does not fall in the bearer set defined by aPref.iBearer.iBearerSet and have the same direction as aPref.iDirection; KErrNotFound There is no current record in the view.
-
capability
-
Dependent on table, see the guide page referenced below.
Parameters
const
TCommDbIapBearer
& aUpdate
|
Updated settings for the connection preference. Note that all fields need to be set, including any unchanged fields.
|
TBool
aReadOnly = EFalse
|
If true, the record is set to be read-only. If unspecified, EFalse by default.
|
UpdateBearerL(const TCommDbIspBearer &, TBool)
Override version of UpdateBearerL for BC purposes. This method is deprecated from 9.1 and always returns/leaves with KErrNotSupported instead of describing past operation/parameters.
UpdateDialogPrefL(const TCommDbDialogPref &)
Updates the dialog preference field (CONNECT_PREF_DIALOG_PREF) in the currently selected connection preferences IAP record in the view.
-
leave
-
KErrAccessDenied The record cannot be updated as it is read-only
-
leave
-
KErrNotFound There is no current record in the view
-
capability
-
Dependent on table, see the guide page referenced below.
Member Data Documentation
CCommsDatabase & iDb
Comms data base that is being viewed.
CCommDbTableExtension * iTableExt
RDbView
iTableView
DBMS view. Variable not used in shim. Not removed because of BC break
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.