CDefaultRecordAccess Class Reference

class CDefaultRecordAccess : public CBase

Inherits from

Constructor & Destructor Documentation

CDefaultRecordAccess()

CDefaultRecordAccess ( )

default constructor

CDefaultRecordAccess(const TDesC &)

CDefaultRecordAccess ( const TDesC & aName )

constructor

Parameters

const TDesC & aName

~CDefaultRecordAccess()

~CDefaultRecordAccess ( )

destructor

Member Functions Documentation

Close()

void Close ( )

Close the table, but don't reset the ID, so the next time we open a new record, we can work out if it is a different one or not.

CloseTable()

void CloseTable ( ) [private]

Id()

TUint32 Id ( ) const [inline]

Name()

TPtrC Name ( ) const [inline]

OpenRecordL(CCommsDatabase *, TUint32)

TBool OpenRecordL ( CCommsDatabase * aDb,
TUint32 aId
)

Close the view if there is one already open. If this has been overriden then use the original ID given to us, if not, then use the new one. Open the view on the table and position to the correct record.

Parameters

CCommsDatabase * aDb
TUint32 aId

OpenRecordL(CCommsDatabase *, TUint32, const TDesC &)

TBool OpenRecordL ( CCommsDatabase * aDb,
TUint32 aId,
const TDesC & aTableName
)

Open the record, from the table with aName. If the name of the table, or the ID of the record have changed, then return ETrue to signify a change in service.

Parameters

CCommsDatabase * aDb
TUint32 aId
const TDesC & aTableName

SetOverridden(TBool, TUint32)

TBool SetOverridden ( TBool aOverridden,
TUint32 aId
)

Set whether this is an overridden record and the ID to use when we open the table. Return, if this is an override, if the ID has changed. If it is not a override, this will be checked when the record is opened. If this is not an override them ignore the ID as it will be given again when the record is opened.

Parameters

TBool aOverridden
TUint32 aId

Table()

CCommsDbTableView * Table ( ) const [inline]

Member Data Documentation

TUint32 iId

TUint32 iId [private]

TBuf< KCommsDbSvrMaxColumnNameLength > iName

TBuf < KCommsDbSvrMaxColumnNameLength > iName [private]

TBool iOverridden

TBool iOverridden [private]

CCommsDbTableView * iTable

CCommsDbTableView * iTable [private]