CCommsDbProtectConnectPrefTableView Class Reference

class CCommsDbProtectConnectPrefTableView : public CCommsDbConnectionPrefTableView

Inherits from

Public Member Functions
~CCommsDbProtectConnectPrefTableView()
IMPORT_C TIntGetRecordAccess(TInt &)
IMPORT_C TIntGetTableAccess(RDbRowSet::TAccess &)
CCommsDbProtectConnectPrefTableView *NewL(CCommsDatabase &, const TDbQuery &)
IMPORT_C TIntProtectRecord()
IMPORT_C TIntProtectTable()
IMPORT_C TIntUnprotectRecord()
IMPORT_C TIntUnprotectTable()
Protected Member Functions
CCommsDbProtectConnectPrefTableView(CCommsDatabase &)
Private Member Functions
voidConstructL(const TDbQuery &)
voidDoProtectionL(CMDBSession *, CMDBElement *, TBool)
Inherited Functions
CBase::CBase()
CBase::Delete(CBase *)
CBase::Extension_(TUint,TAny *&,TAny *)
CBase::operator new(TUint)
CBase::operator new(TUint,TAny *)
CBase::operator new(TUint,TLeave)
CBase::operator new(TUint,TLeave,TUint)
CBase::operator new(TUint,TUint)
CBase::~CBase()
CCommsDbConnectionPrefTableView::CCommsDbConnectionPrefTableView(CCommsDatabase &)
CCommsDbConnectionPrefTableView::ChangeConnectionPreferenceRankL(TUint32)
CCommsDbConnectionPrefTableView::Close()
CCommsDbConnectionPrefTableView::ColNum(const TDesC &)const
CCommsDbConnectionPrefTableView::ConstructL(TCommDbConnectionDirection,TBool)
CCommsDbConnectionPrefTableView::ConstructL(TCommDbConnectionDirection,TUint32)
CCommsDbConnectionPrefTableView::DeleteConnectionPreferenceL()
CCommsDbConnectionPrefTableView::GetL()
CCommsDbConnectionPrefTableView::GetUint32L(const TDesC &,TUint32 &)
CCommsDbConnectionPrefTableView::GotoFirstRecord()
CCommsDbConnectionPrefTableView::GotoNextRecord()
CCommsDbConnectionPrefTableView::GotoPreviousRecord()
CCommsDbConnectionPrefTableView::InsertConnectionPreferenceL(const TCommDbIapConnectionPref &,TBool)
CCommsDbConnectionPrefTableView::InsertConnectionPreferenceL(const TCommDbIspConnectionPref &,TBool)
CCommsDbConnectionPrefTableView::NewL(CCommsDatabase &,TCommDbConnectionDirection,TUint32)
CCommsDbConnectionPrefTableView::NewLC(CCommsDatabase &,TCommDbConnectionDirection,TBool)
CCommsDbConnectionPrefTableView::NewLC(CCommsDatabase &,const TDbQuery &)
CCommsDbConnectionPrefTableView::OpenL(const TDbQuery &)
CCommsDbConnectionPrefTableView::ReadConnectionPreferenceL(TCommDbIapConnectionPref &)
CCommsDbConnectionPrefTableView::ReadConnectionPreferenceL(TCommDbIspConnectionPref &)
CCommsDbConnectionPrefTableView::SwapConnectionPreferencesL(TCommDbConnectionDirection,TUint32,TUint32)
CCommsDbConnectionPrefTableView::UpdateBearerL(const TCommDbIapBearer &,TBool)
CCommsDbConnectionPrefTableView::UpdateBearerL(const TCommDbIspBearer &,TBool)
CCommsDbConnectionPrefTableView::UpdateDialogPrefL(const TCommDbDialogPref &)
CCommsDbConnectionPrefTableView::~CCommsDbConnectionPrefTableView()
Inherited Attributes
CCommsDbConnectionPrefTableView::iDb
CCommsDbConnectionPrefTableView::iTableExt
CCommsDbConnectionPrefTableView::iTableView

Constructor & Destructor Documentation

CCommsDbProtectConnectPrefTableView(CCommsDatabase &)

CCommsDbProtectConnectPrefTableView(CCommsDatabase &aDb)[protected]

Default Constructor

Parameters

CCommsDatabase & aDb

~CCommsDbProtectConnectPrefTableView()

IMPORT_C~CCommsDbProtectConnectPrefTableView()

Destructor

Member Functions Documentation

ConstructL(const TDbQuery &)

voidConstructL(const TDbQuery &aQuery)[private]

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 & aQueryQuery to perform

DoProtectionL(CMDBSession *, CMDBElement *, TBool)

voidDoProtectionL(CMDBSession *aSession,
CMDBElement *aElement,
TBoolaProtect
)[private]

Parameters

CMDBSession * aSession
CMDBElement * aElement
TBool aProtect

GetRecordAccess(TInt &)

IMPORT_C TIntGetRecordAccess(TInt &aAccess)

Checks record's protection setting Currently a record can be Writable (0) or Read Only (1). Read Only records cannot be amended until they are unprotected via this API.

From v9.1 there is behavioural change. Column ordinal value is replaced with ElementID

capability
Dependent on table, see the guide page referenced below.

Parameters

TInt & aAccessOn return contains the value of the column ordinal(look line above)

GetTableAccess(RDbRowSet::TAccess &)

IMPORT_C TIntGetTableAccess(RDbRowSet::TAccess &aAccessType)

Checks table's ReadOnly Setting

capability
Dependent on table, see the guide page referenced below.

Parameters

RDbRowSet::TAccess & aAccessTypeAccess type

NewL(CCommsDatabase &, const TDbQuery &)

CCommsDbProtectConnectPrefTableView *NewL(CCommsDatabase &aDb,
const TDbQuery &aQuery
)[static]

Allocates and constructs a new communications database connection preference view object. aUseTemplate defaults to ETrue

This method is deprecated from 9.1 and always returns/leaves with KErrNotSupported instead of describing past operation/parameters.

Parameters

CCommsDatabase & aDbreference to the database to use.
const TDbQuery & aQueryQuery to perform

ProtectRecord()

IMPORT_C TIntProtectRecord()

Marks record as read-only so that it cannot be modified This does not protect it from deletion.

capability
Dependent on table, see the guide page referenced below.

ProtectTable()

IMPORT_C TIntProtectTable()
Protects table Protection of settings
capability
Dependent on table, see the guide page referenced below.

UnprotectRecord()

IMPORT_C TIntUnprotectRecord()

Marks record as not read-only so that it can be modified or deleted

capability
Dependent on table, see the guide page referenced below.

UnprotectTable()

IMPORT_C TIntUnprotectTable()

Unprotects table

capability
Dependent on table, see the guide page referenced below.