CCommsDbProtectTableView Class Reference

class CCommsDbProtectTableView : public CCommsDbTableView

Inherits from

Public Member Functions
~CCommsDbProtectTableView()
IMPORT_C TIntGetRecordAccess(TInt &)
IMPORT_C TIntGetTableAccess(RDbRowSet::TAccess &)
CCommsDbProtectTableView *NewL(CCommsDatabaseBase &, const TDesC &, const TDbQuery &, TBool)
IMPORT_C TIntProtectRecord()
IMPORT_C TIntProtectTable()
IMPORT_C TIntUnprotectRecord()
IMPORT_C TIntUnprotectTable()
Private Member Functions
CCommsDbProtectTableView(CCommsDatabaseBase &, const TDesC &)
voidConstructL(const TDbQuery &, TBool)
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()
CCommsDbTableView::CCommsDbTableView(CCommsDatabaseBase &,const TDesC &)
CCommsDbTableView::CancelRecordChanges()
CCommsDbTableView::Close()
CCommsDbTableView::ColNumL(const TDesC &)const
CCommsDbTableView::ConstructL(TUint32)
CCommsDbTableView::ConstructL(TUint32,TCommDbConnectionDirection)
CCommsDbTableView::ConstructL(TUint32,const TDesC &)
CCommsDbTableView::ConstructL(const TDesC &)
CCommsDbTableView::ConstructL(const TDesC &,TBool,TBool)
CCommsDbTableView::ConstructL(const TDesC &,const TDesC &,TBool)
CCommsDbTableView::ConstructL(const TDesC &,const TDesC &,TUint32)
CCommsDbTableView::ConstructL(const TDesC &,const TDesC &,const TDesC16 &)
CCommsDbTableView::ConstructL(const TDesC &,const TDesC &,const TDesC8 &)
CCommsDbTableView::Database()const
CCommsDbTableView::DeleteRecord()
CCommsDbTableView::GetL()
CCommsDbTableView::GetTableName(TDes &)const
CCommsDbTableView::GotoFirstRecord()
CCommsDbTableView::GotoNextRecord()
CCommsDbTableView::GotoPreviousRecord()
CCommsDbTableView::InsertCopyRecord(TUint32 &)
CCommsDbTableView::InsertRecord(TUint32 &)
CCommsDbTableView::NewL(CCommsDatabaseBase &,const TDesC &,const TDesC &,TUint32)
CCommsDbTableView::NewL(CCommsDatabaseBase &,const TDesC &,const TDesC &,const TDesC16 &)
CCommsDbTableView::NewL(CCommsDatabaseBase &,const TDesC &,const TDesC &,const TDesC8 &)
CCommsDbTableView::NewLC(CCommsDatabaseBase &,TUint32)
CCommsDbTableView::NewLC(CCommsDatabaseBase &,TUint32,TCommDbConnectionDirection)
CCommsDbTableView::NewLC(CCommsDatabaseBase &,TUint32,const TDesC &)
CCommsDbTableView::NewLC(CCommsDatabaseBase &,const TDesC &,TBool)
CCommsDbTableView::NewLC(CCommsDatabaseBase &,const TDesC &,const TDesC &,TBool)
CCommsDbTableView::NewLC(const TDesC &,CCommsDatabaseBase &)
CCommsDbTableView::OpenL(const TDbQuery &)
CCommsDbTableView::PutRecordChanges(TBool,TBool)
CCommsDbTableView::ReadBoolL(const TDesC &,TBool &)
CCommsDbTableView::ReadColumnLengthL(const TDesC &,TInt &)
CCommsDbTableView::ReadColumnMaxLengthL(const TDesC &,TInt &)
CCommsDbTableView::ReadLongTextLC(const TDesC &)
CCommsDbTableView::ReadTextL(const TDesC &,TDes16 &)
CCommsDbTableView::ReadTextL(const TDesC &,TDes8 &)
CCommsDbTableView::ReadTypeAttribL(const TDesC &,TDbColType &,TUint32 &)
CCommsDbTableView::ReadUintL(const TDesC &,TUint32 &)
CCommsDbTableView::SetNullL(const TDesC &)
CCommsDbTableView::UpdateRecord()
CCommsDbTableView::WriteBoolL(const TDesC &,const TBool &)
CCommsDbTableView::WriteLongTextL(const TDesC &,const TDesC &)
CCommsDbTableView::WriteTextL(const TDesC &,const TDesC16 &)
CCommsDbTableView::WriteTextL(const TDesC &,const TDesC8 &)
CCommsDbTableView::WriteUintL(const TDesC &,const TUint32 &)
CCommsDbTableView::~CCommsDbTableView()
Inherited Attributes
CCommsDbTableView::iDb
CCommsDbTableView::iTableExt
CCommsDbTableView::iTableName
CCommsDbTableView::iTableView

Constructor & Destructor Documentation

CCommsDbProtectTableView(CCommsDatabaseBase &, const TDesC &)

CCommsDbProtectTableView(CCommsDatabaseBase &aDb,
const TDesC &aTableName
)[private]

Constructor

Parameters

CCommsDatabaseBase & aDbreference to the database to use.
const TDesC & aTableNameA reference to a descriptor containing the name of a table in the communications database protect table view.

~CCommsDbProtectTableView()

IMPORT_C~CCommsDbProtectTableView()

Destructor.

Member Functions Documentation

ConstructL(const TDbQuery &, TBool)

voidConstructL(const TDbQuery &aQuery,
TBoolaUseTemplate
)[private]

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

Prepare and evaluate the table view using the SQL query aQuery

Parameters

const TDbQuery & aQuery
TBool aUseTemplate

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)

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

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

Parameters

TInt & aAccessOn return contains the value of the column ordinal

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 & aAccessType

NewL(CCommsDatabaseBase &, const TDesC &, const TDbQuery &, TBool)

CCommsDbProtectTableView *NewL(CCommsDatabaseBase &aDb,
const TDesC &aTableName,
const TDbQuery &aQuery,
TBoolaUseTemplate
)[static]

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

Parameters

CCommsDatabaseBase & aDbreference to the database to use.
const TDesC & aTableNameA reference to a descriptor containing the name of a table in the communications database protect table view.
const TDbQuery & aQueryQuery to perform
TBool aUseTemplateA boolean value whether to use template while creating the object or not

ProtectRecord()

IMPORT_C TIntProtectRecord()

Marks record as read-only so that it cannot be modified or deleted.

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

ProtectTable()

IMPORT_C TIntProtectTable()
Protects the 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 the table

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