CNSmlDataModBase Class Reference

class CNSmlDataModBase : public CBase

Base class for Calendar and Contacts Data Modifications.

nsmldatamod.lib

Inherits from

Constructor & Destructor Documentation

CNSmlDataModBase()

CNSmlDataModBase()[protected]

Basic constructor of class.

~CNSmlDataModBase()

IMPORT_C~CNSmlDataModBase()[virtual]

C++ destructor.

Member Functions Documentation

ChildCreateParserLC()

CVersitParser *ChildCreateParserLC()[protected, pure virtual]

Creates correct type of parser for each Data Modifications.

MergeEntityL(CVersitParser *, CVersitParser *, TBool &, TBool)

voidMergeEntityL(CVersitParser *aNewEntity,
CVersitParser *aOldEntity,
TBool &aModified,
TBoolaFieldLevel
)const [protected]

Merges data from old entity to new entity.

Parameters

CVersitParser * aNewEntityData of receive entity. On returns this data may have changed due to merging.
CVersitParser * aOldEntityData of old entity.
TBool & aModifiedIf aNewEntity is modified then this is ETrue at return. Otherwise EFalse.
TBool aFieldLevelThis is used to decide if operation is field level update or not. Are all supported properties updated or just received properties.

MergeL(TDes8 &, const TDesC8 &, TBool)

voidMergeL(TDes8 &aNewItem,
const TDesC8 &aOldItem,
TBoolaFieldLevel
)[protected]

Merges data from old item to new item.

Parameters

TDes8 & aNewItemData of receive item. On returns this data may have changed due to merging.
const TDesC8 & aOldItem
TBool aFieldLevelThis is used to decide if operation is field level update or not. Are all supported properties updated or just received properties.

MergeRxL(CBufBase &, CBufBase &, TBool)

IMPORT_C voidMergeRxL(CBufBase &aNewItem,
CBufBase &aOldItem,
TBoolaFieldLevel = EFalse
)

Merges received item with item in exported from the local database.

Parameters

CBufBase & aNewItemReceived item. On return aItem contains merged item.
CBufBase & aOldItemItem exported from the local database with which aNewItem is merged.
TBool aFieldLevel = EFalse

NeedsMerge()

IMPORT_C TBoolNeedsMerge()

Checks whether merging is needed or not.

SetOwnStoreFormat(CSmlDataStoreFormat &)

IMPORT_C voidSetOwnStoreFormat(CSmlDataStoreFormat &aOwnStoreFormat)

Sets own database format.

Parameters

CSmlDataStoreFormat & aOwnStoreFormat

SetPartnerStoreFormat(CSmlDataStoreFormat &)

IMPORT_C voidSetPartnerStoreFormat(CSmlDataStoreFormat &aRemoteStoreFormat)

Sets remote database format.

Parameters

CSmlDataStoreFormat & aRemoteStoreFormat

SetUsedMimeType(const RStringF, const RStringF)

IMPORT_C TIntSetUsedMimeType(const RStringFaMimeType,
const RStringFaMimeVersion
)

Sets mime type that is used for sending and receiving. This method can be called separately before every item.

Parameters

const RStringF aMimeType
const RStringF aMimeVersion

StripAllNotOnPartnerListL(CVersitParser *, TBool &, TBool)

voidStripAllNotOnPartnerListL(CVersitParser *aEntity,
TBool &aModified,
TBoolaParamLevelCheck = ETrue
)const [protected]

Strips all data from entity that is not supported by remote server.

Parameters

CVersitParser * aEntityItem's data. On returns this data may have changed due to stripping.
TBool & aModifiedIf item's data is modified then this is ETrue at return. Otherwise EFalse.
TBool aParamLevelCheck = ETrueThis is used to decide if parameters are compared when properties are stripped or not.

StripAllOnPartnerListL(CVersitParser *, TBool &, TBool)

voidStripAllOnPartnerListL(CVersitParser *aEntity,
TBool &aModified,
TBoolaParamLevelCheck = ETrue
)const [protected]

Strips all data from entity that is supported by remote server.

Parameters

CVersitParser * aEntityItem's data. On returns this data may have changed due to stripping.
TBool & aModifiedIf item's data is modified then this is ETrue at return. Otherwise EFalse.
TBool aParamLevelCheck = ETrueThis is used to decide if parameters are compared when properties are stripped or not.

StripEntityL(CVersitParser *, TBool &)

voidStripEntityL(CVersitParser *aEntity,
TBool &aModified
)const [protected]

Strips data that is to be transmitted to the sync partner from entity.

Parameters

CVersitParser * aEntityItem's data. On returns this data may have changed due to stripping.
TBool & aModifiedIf item's data is modified then this is ETrue at return. Otherwise EFalse.

StripL(TDes8 &)

voidStripL(TDes8 &aItem)[protected]

Strips data that is to be transmitted to the sync partner.

Parameters

TDes8 & aItemItem's data. On returns this data may have changed due to stripping.

StripTxL(CBufBase &)

IMPORT_C voidStripTxL(CBufBase &aItem)

Strips data that is to be transmitted to the sync partner.

Parameters

CBufBase & aItemItem's data. On returns this data may have changed due to stripping.

Member Data Documentation

RStringF iMimeType

RStringF iMimeType[private]

RStringF iMimeVersion

RStringF iMimeVersion[private]

CSmlDataStoreFormat * iOwnStoreFormat

CSmlDataStoreFormat *iOwnStoreFormat[private]

CSmlDataStoreFormat * iRemoteStoreFormat

CSmlDataStoreFormat *iRemoteStoreFormat[private]

TInt iUsedOwnMimeType

TInt iUsedOwnMimeType[private]

TInt iUsedRemoteMimeType

TInt iUsedRemoteMimeType[private]