CCommDbTableExtension Class Reference

class CCommDbTableExtension : public CBase

CCommDbTableExtension class Contains data items & access functions moved here rather than CCommsDbConnectionPrefTableView to preserve the size of the class and hence BC.

Inherits from

  • CCommDbTableExtension
Public Member Functions
~CCommDbTableExtension()
TInt CancelRecordChanges(CMDBSession &)
voidCommitTransaction()
voidDeleteCurrentRecordL(CMDBSession &, TBool)
TDbColType GetColType(TInt)
TInt GetCurrentRecord(CMDBRecordBase *&)
CMDBRecordBase *GetCurrentRecordL()
TInt GetMaxTypeLength(TInt)
voidGetRecordInfoL(const TDesC &, TDbColType &, TUint32 &)
TInt GetRecordSet(CMDBRecordSetBase *&)
TInt GetRecordSetIndex(TInt &)
TInt GetRecordSetIndexL()
CMDBRecordSetBase *GetRecordSetL()
TInt GetTableAccess(RDbRowSet::TAccess &)
TInt GotoFirstRecord(CMDBSession &)
TInt GotoNextRecord(CMDBSession &)
TInt GotoPreviousRecord(CMDBSession &)
voidInsertConnPrefRecordL(CCDConnectionPrefsRecord *, CMDBSession &)
voidInsertRecordL(TBool, TUint32 &, CMDBSession &, TBool)
TBool IsGenericRecord(TMDBElementId)
CCommDbTableExtension *NewL()
CMDBRecordSetBase *RecordSetFactoryL(const TDesC &, TBool, CMDBSession &)
voidRefreshDatabaseL(CMDBSession &)
voidResetAndDestroyL()
voidResetArrays(CMDBSession &)
voidRollBackTransaction()
voidSetRecordSet(CMDBRecordSetBase *)
voidSetRecordSetL(const TDesC &, CMDBSession &, TBool, TBool, TBool)
voidSetShowHiddenRecords(TBool)
voidSortById()
voidSortByRank()
Private Member Functions
CCommDbTableExtension()
TBool AdvanceIndexToNextValidRecord(TInt &)
TBool AdvanceIndexToPrevValidRecord(TInt &)
TInt CompareRecordsById(const CMDBRecordBase &, const CMDBRecordBase &)
TInt CompareRecordsByRank(const CMDBRecordBase &, const CMDBRecordBase &)
TBool FindFirstNextValidRecord(TBool)
TBool FindFirstPrevValidRecord()
TInt FindValueInRecSet(TInt)
TInt GetCurrentRecordIndex()
TInt MaybeRefreshCurrentRecord(CMDBSession &)
voidUpdateLastCommitSeq()
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()
Public Attributes
RArray< TUint32 >iDeletedRecords
RArray< TUint32 >iInsertedRecords
Private Attributes
CMDBRecordBase *iBeginingOfTableRecordBackup
RProperty iCommitSeqProperty
CMDBRecordBase *iCurrentRecord
CMDBRecordBase *iEndOfTableRecordBackup
TInt iLastCommitSeq
CMDBRecordSetBase *iRecordSetContainer
TBool iShowHidden

Constructor & Destructor Documentation

CCommDbTableExtension()

CCommDbTableExtension()[private]

Constructor

~CCommDbTableExtension()

~CCommDbTableExtension()

Deletes the memory allocated to the members iColSet, iQueryText and iAccess

Member Functions Documentation

AdvanceIndexToNextValidRecord(TInt &)

TBool AdvanceIndexToNextValidRecord(TInt &aIdx)const [private]

Parameters

TInt & aIdx

AdvanceIndexToPrevValidRecord(TInt &)

TBool AdvanceIndexToPrevValidRecord(TInt &aIdx)const [private]

Parameters

TInt & aIdx

CancelRecordChanges(CMDBSession &)

TInt CancelRecordChanges(CMDBSession &aDbs)

Parameters

CMDBSession & aDbs

CommitTransaction()

voidCommitTransaction()

CompareRecordsById(const CMDBRecordBase &, const CMDBRecordBase &)

TInt CompareRecordsById(const CMDBRecordBase &aLeft,
const CMDBRecordBase &aRight
)[private, static]

Parameters

const CMDBRecordBase & aLeft
const CMDBRecordBase & aRight

CompareRecordsByRank(const CMDBRecordBase &, const CMDBRecordBase &)

TInt CompareRecordsByRank(const CMDBRecordBase &aLeft,
const CMDBRecordBase &aRight
)[private, static]

Parameters

const CMDBRecordBase & aLeft
const CMDBRecordBase & aRight

DeleteCurrentRecordL(CMDBSession &, TBool)

voidDeleteCurrentRecordL(CMDBSession &aDbs,
TBoolaContainerOnly = EFalse
)

Parameters

CMDBSession & aDbs
TBool aContainerOnly = EFalse

FindFirstNextValidRecord(TBool)

TBool FindFirstNextValidRecord(TBoolaResetToStart)[private]

Parameters

TBool aResetToStart

FindFirstPrevValidRecord()

TBool FindFirstPrevValidRecord()[private]

FindValueInRecSet(TInt)

TInt FindValueInRecSet(TIntaValue)const [private]

Parameters

TInt aValue

GetColType(TInt)

TDbColType GetColType(TIntaType)

Parameters

TInt aType

GetCurrentRecord(CMDBRecordBase *&)

TInt GetCurrentRecord(CMDBRecordBase *&aRecord)

Parameters

CMDBRecordBase *& aRecord

GetCurrentRecordIndex()

TInt GetCurrentRecordIndex()const [private]

GetCurrentRecordL()

CMDBRecordBase *GetCurrentRecordL()

GetMaxTypeLength(TInt)

TInt GetMaxTypeLength(TIntaType)

Parameters

TInt aType

GetRecordInfoL(const TDesC &, TDbColType &, TUint32 &)

voidGetRecordInfoL(const TDesC &aColumn,
TDbColType &aColType,
TUint32 &aAttrib
)

Parameters

const TDesC & aColumn
TDbColType & aColType
TUint32 & aAttrib

GetRecordSet(CMDBRecordSetBase *&)

TInt GetRecordSet(CMDBRecordSetBase *&aRecSet)

Parameters

CMDBRecordSetBase *& aRecSet

GetRecordSetIndex(TInt &)

TInt GetRecordSetIndex(TInt &aIndex)

Gets the value of the member iRecordIndex

Parameters

TInt & aIndex

GetRecordSetIndexL()

TInt GetRecordSetIndexL()

Gets the value of the member iRecordIndex

GetRecordSetL()

CMDBRecordSetBase *GetRecordSetL()

Gets the value of the member iRecordIndex

GetTableAccess(RDbRowSet::TAccess &)

TInt GetTableAccess(RDbRowSet::TAccess &aAccess)

Parameters

RDbRowSet::TAccess & aAccess

GotoFirstRecord(CMDBSession &)

TInt GotoFirstRecord(CMDBSession &aDbs)

Parameters

CMDBSession & aDbs

GotoNextRecord(CMDBSession &)

TInt GotoNextRecord(CMDBSession &aDbs)

Parameters

CMDBSession & aDbs

GotoPreviousRecord(CMDBSession &)

TInt GotoPreviousRecord(CMDBSession &aDbs)

Parameters

CMDBSession & aDbs

InsertConnPrefRecordL(CCDConnectionPrefsRecord *, CMDBSession &)

voidInsertConnPrefRecordL(CCDConnectionPrefsRecord *aConnPref,
CMDBSession &aDbs
)

Parameters

CCDConnectionPrefsRecord * aConnPref
CMDBSession & aDbs

InsertRecordL(TBool, TUint32 &, CMDBSession &, TBool)

voidInsertRecordL(TBoolaCopy,
TUint32 &aId,
CMDBSession &aDbs,
TBoolaIsTemplate
)

Parameters

TBool aCopy
TUint32 & aId
CMDBSession & aDbs
TBool aIsTemplate

IsGenericRecord(TMDBElementId)

TBool IsGenericRecord(TMDBElementIdaElementId)const

Parameters

TMDBElementId aElementId

MaybeRefreshCurrentRecord(CMDBSession &)

TInt MaybeRefreshCurrentRecord(CMDBSession &aDbs)[private]

Parameters

CMDBSession & aDbs

NewL()

CCommDbTableExtension *NewL()[static]

RecordSetFactoryL(const TDesC &, TBool, CMDBSession &)

CMDBRecordSetBase *RecordSetFactoryL(const TDesC &aTableName,
TBoolpreparePriming,
CMDBSession &aDbs
)

Parameters

const TDesC & aTableName
TBool preparePriming
CMDBSession & aDbs

RefreshDatabaseL(CMDBSession &)

voidRefreshDatabaseL(CMDBSession &aDbs)

Parameters

CMDBSession & aDbs

ResetAndDestroyL()

voidResetAndDestroyL()

ResetArrays(CMDBSession &)

voidResetArrays(CMDBSession &aSession)

Parameters

CMDBSession & aSession

RollBackTransaction()

voidRollBackTransaction()

SetRecordSet(CMDBRecordSetBase *)

voidSetRecordSet(CMDBRecordSetBase *aRecordSetContainer)

Parameters

CMDBRecordSetBase * aRecordSetContainer

SetRecordSetL(const TDesC &, CMDBSession &, TBool, TBool, TBool)

voidSetRecordSetL(const TDesC &aTableName,
CMDBSession &aDbs,
TBoolpreparePriming,
TBoolaLoadTable,
TBoolaTemplate = EFalse
)

Parameters

const TDesC & aTableName
CMDBSession & aDbs
TBool preparePriming
TBool aLoadTable
TBool aTemplate = EFalse

SetShowHiddenRecords(TBool)

voidSetShowHiddenRecords(TBoolaShowHidden)[inline]

Parameters

TBool aShowHidden

SortById()

voidSortById()

Sorting values in iRecordSetContainer by Id value

SortByRank()

voidSortByRank()

UpdateLastCommitSeq()

voidUpdateLastCommitSeq()[private]

Member Data Documentation

CMDBRecordBase * iBeginingOfTableRecordBackup

CMDBRecordBase *iBeginingOfTableRecordBackup[private]

RProperty iCommitSeqProperty

RProperty iCommitSeqProperty[private]

CMDBRecordBase * iCurrentRecord

CMDBRecordBase *iCurrentRecord[private]

RArray< TUint32 > iDeletedRecords

RArray< TUint32 >iDeletedRecords

CMDBRecordBase * iEndOfTableRecordBackup

CMDBRecordBase *iEndOfTableRecordBackup[private]

RArray< TUint32 > iInsertedRecords

RArray< TUint32 >iInsertedRecords

TInt iLastCommitSeq

TInt iLastCommitSeq[private]

CMDBRecordSetBase * iRecordSetContainer

CMDBRecordSetBase *iRecordSetContainer[private]

TBool iShowHidden

TBool iShowHidden[private]