CCommsDbProtectConnectPrefTableView Class Reference

class CCommsDbProtectConnectPrefTableView : public CCommsDbConnectionPrefTableView

Inherits from

Public Member Functions
~CCommsDbProtectConnectPrefTableView ()
IMPORT_C TInt GetRecordAccess ( TInt &)
IMPORT_C TInt GetTableAccess ( RDbRowSet::TAccess &)
CCommsDbProtectConnectPrefTableView * NewL ( CCommsDatabase &, const TDbQuery &)
IMPORT_C TInt ProtectRecord ()
IMPORT_C TInt ProtectTable ()
IMPORT_C TInt UnprotectRecord ()
IMPORT_C TInt UnprotectTable ()
Protected Member Functions
CCommsDbProtectConnectPrefTableView ( CCommsDatabase &)
Private Member Functions
void ConstructL (const TDbQuery &)
void DoProtectionL ( 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 &)

void ConstructL ( 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 & aQuery Query to perform

DoProtectionL(CMDBSession *, CMDBElement *, TBool)

void DoProtectionL ( CMDBSession * aSession,
CMDBElement * aElement,
TBool aProtect
) [private]

Parameters

CMDBSession * aSession
CMDBElement * aElement
TBool aProtect

GetRecordAccess(TInt &)

IMPORT_C TInt GetRecordAccess ( 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 & aAccess On return contains the value of the column ordinal(look line above)

GetTableAccess(RDbRowSet::TAccess &)

IMPORT_C TInt GetTableAccess ( RDbRowSet::TAccess & aAccessType )

Checks table's ReadOnly Setting

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

Parameters

RDbRowSet::TAccess & aAccessType Access 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 & aDb reference to the database to use.
const TDbQuery & aQuery Query to perform

ProtectRecord()

IMPORT_C TInt ProtectRecord ( )

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 TInt ProtectTable ( )
Protects table Protection of settings
capability
Dependent on table, see the guide page referenced below.

UnprotectRecord()

IMPORT_C TInt UnprotectRecord ( )

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 TInt UnprotectTable ( )

Unprotects table

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