CNSmlDataModBase Class Reference
class CNSmlDataModBase : public CBase |
Base class for Calendar and Contacts Data Modifications.
nsmldatamod.lib
Protected Member Functions |
---|
| CNSmlDataModBase() |
CVersitParser * | ChildCreateParserLC() |
void | MergeEntityL(CVersitParser *, CVersitParser *, TBool &, TBool) |
void | MergeL(TDes8 &, const TDesC8 &, TBool) |
void | StripAllNotOnPartnerListL(CVersitParser *, TBool &, TBool) |
void | StripAllOnPartnerListL(CVersitParser *, TBool &, TBool) |
void | StripEntityL(CVersitParser *, TBool &) |
void | StripL(TDes8 &) |
Constructor & Destructor Documentation
CNSmlDataModBase()
CNSmlDataModBase | ( | ) | [protected] |
Basic constructor of class.
~CNSmlDataModBase()
IMPORT_C | ~CNSmlDataModBase | ( | ) | [virtual] |
Member Functions Documentation
ChildCreateParserLC()
Creates correct type of parser for each Data Modifications.
MergeEntityL(CVersitParser *, CVersitParser *, TBool &, TBool)
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)
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 &)
Sets own database format.
SetPartnerStoreFormat(CSmlDataStoreFormat &)
Sets remote database format.
SetUsedMimeType(const RStringF, const RStringF)
Sets mime type that is used for sending and receiving. This method can be called separately before every item.
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 &)
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 &)
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
CSmlDataStoreFormat * iOwnStoreFormat
CSmlDataStoreFormat * iRemoteStoreFormat
TInt
iUsedOwnMimeType
TInt
| iUsedOwnMimeType | [private] |
TInt
iUsedRemoteMimeType
TInt
| iUsedRemoteMimeType | [private] |
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.