TNSmlSnapshotItem Class Reference

class TNSmlSnapshotItem

TNSmlSnapshotItem.

nsmlchangefinder.lib

Public Member Functions
TNSmlSnapshotItem()
TNSmlSnapshotItem(const TSmlDbItemUid &)
IMPORT_C TIntCompare(const TNSmlSnapshotItem &)
IMPORT_C voidExternalizeL(RWriteStream &)
IMPORT_C voidInternalizeL(RReadStream &)
IMPORT_C const TSmlDbItemUid &ItemId()
IMPORT_C const TTime &LastChangedDate()
IMPORT_C const TSmlDbItemUid &ParentId()
IMPORT_C voidSetItemId(const TSmlDbItemUid &)
IMPORT_C voidSetLastChangedDate(const TTime &)
IMPORT_C voidSetParentId(const TSmlDbItemUid &)
IMPORT_C voidSetSoftDelete(const TBool &)
IMPORT_C const TBool &SoftDelete()
Private Attributes
TSmlDbItemUid iItemId
TTime iLastChangedDate
TSmlDbItemUid iParentId
TBool iSoftDelete

Constructor & Destructor Documentation

TNSmlSnapshotItem()

IMPORT_CTNSmlSnapshotItem()

C++ constructor

TNSmlSnapshotItem(const TSmlDbItemUid &)

IMPORT_CTNSmlSnapshotItem(const TSmlDbItemUid &aItemId)

C++ constructor.

Parameters

const TSmlDbItemUid & aItemIdUID value as TSmlDbItemUid.

Member Functions Documentation

Compare(const TNSmlSnapshotItem &)

IMPORT_C TIntCompare(const TNSmlSnapshotItem &aItem)const

Compare method for comparing last change dates of two snapshot items. Returns < 0 if this item is smaller than aItem, returns 0 if both items are equal and > 0 if aItem is greater than this snapshot item.

Parameters

const TNSmlSnapshotItem & aItemItem which this item is compared to.

ExternalizeL(RWriteStream &)

IMPORT_C voidExternalizeL(RWriteStream &aStream)const

Stream externalizer method.

Parameters

RWriteStream & aStreamStream this snapshot item will be externalized into.

InternalizeL(RReadStream &)

IMPORT_C voidInternalizeL(RReadStream &aStream)

Stream interlizer method.

Parameters

RReadStream & aStreamStream this snapshot item will be internalized from.

ItemId()

IMPORT_C const TSmlDbItemUid &ItemId()const

Getter for item UID value.

LastChangedDate()

IMPORT_C const TTime &LastChangedDate()const

Getter for last modification date value.

ParentId()

IMPORT_C const TSmlDbItemUid &ParentId()const

Getter for parent UID value.

SetItemId(const TSmlDbItemUid &)

IMPORT_C voidSetItemId(const TSmlDbItemUid &aItemId)

Setter for item UID value.

Parameters

const TSmlDbItemUid & aItemIditem UID.

SetLastChangedDate(const TTime &)

IMPORT_C voidSetLastChangedDate(const TTime &aLastChangedDate)

Setter for last modification date value.

Parameters

const TTime & aLastChangedDateLast modification date.

SetParentId(const TSmlDbItemUid &)

IMPORT_C voidSetParentId(const TSmlDbItemUid &aParentId)

Setter for parent UID value.

Parameters

const TSmlDbItemUid & aParentIdparent UID.

SetSoftDelete(const TBool &)

IMPORT_C voidSetSoftDelete(const TBool &aSoftDelete)

Setter for soft delete value.

Parameters

const TBool & aSoftDeletesoft delete value.

SoftDelete()

IMPORT_C const TBool &SoftDelete()const

Getter for soft delete value.

Member Data Documentation

TSmlDbItemUid iItemId

TSmlDbItemUid iItemId[private]

TTime iLastChangedDate

TTime iLastChangedDate[private]

TSmlDbItemUid iParentId

TSmlDbItemUid iParentId[private]

TBool iSoftDelete

TBool iSoftDelete[private]