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)

void MergeEntityL ( CVersitParser * aNewEntity,
CVersitParser * aOldEntity,
TBool & aModified,
TBool aFieldLevel
) const [protected]

Merges data from old entity to new entity.

Parameters

CVersitParser * aNewEntity Data of receive entity. On returns this data may have changed due to merging.
CVersitParser * aOldEntity Data of old entity.
TBool & aModified If aNewEntity is modified then this is ETrue at return. Otherwise EFalse.
TBool aFieldLevel This 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)

void MergeL ( TDes8 & aNewItem,
const TDesC8 & aOldItem,
TBool aFieldLevel
) [protected]

Merges data from old item to new item.

Parameters

TDes8 & aNewItem Data of receive item. On returns this data may have changed due to merging.
const TDesC8 & aOldItem
TBool aFieldLevel This 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 void MergeRxL ( CBufBase & aNewItem,
CBufBase & aOldItem,
TBool aFieldLevel = EFalse
)

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

Parameters

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

NeedsMerge()

IMPORT_C TBool NeedsMerge ( )

Checks whether merging is needed or not.

SetOwnStoreFormat(CSmlDataStoreFormat &)

IMPORT_C void SetOwnStoreFormat ( CSmlDataStoreFormat & aOwnStoreFormat )

Sets own database format.

Parameters

CSmlDataStoreFormat & aOwnStoreFormat

SetPartnerStoreFormat(CSmlDataStoreFormat &)

IMPORT_C void SetPartnerStoreFormat ( CSmlDataStoreFormat & aRemoteStoreFormat )

Sets remote database format.

Parameters

CSmlDataStoreFormat & aRemoteStoreFormat

SetUsedMimeType(const RStringF, const RStringF)

IMPORT_C TInt SetUsedMimeType ( const RStringF aMimeType,
const RStringF aMimeVersion
)

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)

void StripAllNotOnPartnerListL ( CVersitParser * aEntity,
TBool & aModified,
TBool aParamLevelCheck = ETrue
) const [protected]

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

Parameters

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

StripAllOnPartnerListL(CVersitParser *, TBool &, TBool)

void StripAllOnPartnerListL ( CVersitParser * aEntity,
TBool & aModified,
TBool aParamLevelCheck = ETrue
) const [protected]

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

Parameters

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

StripEntityL(CVersitParser *, TBool &)

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

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

Parameters

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

StripL(TDes8 &)

void StripL ( TDes8 & aItem ) [protected]

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

Parameters

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

StripTxL(CBufBase &)

IMPORT_C void StripTxL ( CBufBase & aItem )

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

Parameters

CBufBase & aItem Item'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]