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

Public Member Functions
~CCommDbTableExtension ()
TInt CancelRecordChanges ( CMDBSession &)
void CommitTransaction ()
void DeleteCurrentRecordL ( CMDBSession &, TBool )
TDbColType GetColType ( TInt )
TInt GetCurrentRecord ( CMDBRecordBase *&)
CMDBRecordBase * GetCurrentRecordL ()
TInt GetMaxTypeLength ( TInt )
void GetRecordInfoL (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 &)
void InsertConnPrefRecordL ( CCDConnectionPrefsRecord *, CMDBSession &)
void InsertRecordL ( TBool , TUint32 &, CMDBSession &, TBool )
TBool IsGenericRecord (TMDBElementId)
CCommDbTableExtension * NewL ()
CMDBRecordSetBase * RecordSetFactoryL (const TDesC &, TBool , CMDBSession &)
void RefreshDatabaseL ( CMDBSession &)
void ResetAndDestroyL ()
void ResetArrays ( CMDBSession &)
void RollBackTransaction ()
void SetRecordSet ( CMDBRecordSetBase *)
void SetRecordSetL (const TDesC &, CMDBSession &, TBool , TBool , TBool )
void SetShowHiddenRecords ( TBool )
void SortById ()
void SortByRank ()
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 &)
void UpdateLastCommitSeq ()
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()

void CommitTransaction ( )

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)

void DeleteCurrentRecordL ( CMDBSession & aDbs,
TBool aContainerOnly = EFalse
)

Parameters

CMDBSession & aDbs
TBool aContainerOnly = EFalse

FindFirstNextValidRecord(TBool)

TBool FindFirstNextValidRecord ( TBool aResetToStart ) [private]

Parameters

TBool aResetToStart

FindFirstPrevValidRecord()

TBool FindFirstPrevValidRecord ( ) [private]

FindValueInRecSet(TInt)

TInt FindValueInRecSet ( TInt aValue ) const [private]

Parameters

TInt aValue

GetColType(TInt)

TDbColType GetColType ( TInt aType )

Parameters

TInt aType

GetCurrentRecord(CMDBRecordBase *&)

TInt GetCurrentRecord ( CMDBRecordBase *& aRecord )

Parameters

CMDBRecordBase *& aRecord

GetCurrentRecordIndex()

TInt GetCurrentRecordIndex ( ) const [private]

GetCurrentRecordL()

CMDBRecordBase * GetCurrentRecordL ( )

GetMaxTypeLength(TInt)

TInt GetMaxTypeLength ( TInt aType )

Parameters

TInt aType

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

void GetRecordInfoL ( 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 &)

void InsertConnPrefRecordL ( CCDConnectionPrefsRecord * aConnPref,
CMDBSession & aDbs
)

Parameters

CCDConnectionPrefsRecord * aConnPref
CMDBSession & aDbs

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

void InsertRecordL ( TBool aCopy,
TUint32 & aId,
CMDBSession & aDbs,
TBool aIsTemplate
)

Parameters

TBool aCopy
TUint32 & aId
CMDBSession & aDbs
TBool aIsTemplate

IsGenericRecord(TMDBElementId)

TBool IsGenericRecord ( TMDBElementId aElementId ) 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,
TBool preparePriming,
CMDBSession & aDbs
)

Parameters

const TDesC & aTableName
TBool preparePriming
CMDBSession & aDbs

RefreshDatabaseL(CMDBSession &)

void RefreshDatabaseL ( CMDBSession & aDbs )

Parameters

CMDBSession & aDbs

ResetAndDestroyL()

void ResetAndDestroyL ( )

ResetArrays(CMDBSession &)

void ResetArrays ( CMDBSession & aSession )

Parameters

CMDBSession & aSession

RollBackTransaction()

void RollBackTransaction ( )

SetRecordSet(CMDBRecordSetBase *)

void SetRecordSet ( CMDBRecordSetBase * aRecordSetContainer )

Parameters

CMDBRecordSetBase * aRecordSetContainer

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

void SetRecordSetL ( const TDesC & aTableName,
CMDBSession & aDbs,
TBool preparePriming,
TBool aLoadTable,
TBool aTemplate = EFalse
)

Parameters

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

SetShowHiddenRecords(TBool)

void SetShowHiddenRecords ( TBool aShowHidden ) [inline]

Parameters

TBool aShowHidden

SortById()

void SortById ( )

Sorting values in iRecordSetContainer by Id value

SortByRank()

void SortByRank ( )

UpdateLastCommitSeq()

void UpdateLastCommitSeq ( ) [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]