CSmlDataStore Class Reference
#include
<SmlDataProvider.h>
Link against: smldataprovider.lib
class CSmlDataStore : public CBase |
Public Member Functions |
---|
IMPORT_C const MSmlDataItemUidSet & | AddedItems() |
IMPORT_C void | BeginBatchL() |
IMPORT_C void | BeginTransactionL() |
IMPORT_C void | CancelBatch() |
IMPORT_C void | CancelRequest() |
IMPORT_C void | CloseItem() |
IMPORT_C void | CommitBatchL(RArray< TInt > &, TRequestStatus &) |
IMPORT_C void | CommitChangeInfoL(TRequestStatus &, const MSmlDataItemUidSet &) |
IMPORT_C void | CommitChangeInfoL(TRequestStatus &) |
IMPORT_C void | CommitItemL(TRequestStatus &) |
IMPORT_C void | CommitTransactionL(TRequestStatus &) |
IMPORT_C void | CreateItemL(TSmlDbItemUid &, TInt, TSmlDbItemUid, const TDesC8 &, const TDesC8 &, TRequestStatus &) |
IMPORT_C void | DeleteAllItemsL(TRequestStatus &) |
IMPORT_C void | DeleteItemL(TSmlDbItemUid, TRequestStatus &) |
IMPORT_C const MSmlDataItemUidSet & | DeletedItems() |
IMPORT_C TBool | HasSyncHistory() |
IMPORT_C TInt | MaxObjectSize() |
IMPORT_C const MSmlDataItemUidSet & | ModifiedItems() |
IMPORT_C void | MoveItemL(TSmlDbItemUid, TSmlDbItemUid, TRequestStatus &) |
IMPORT_C const MSmlDataItemUidSet & | MovedItems() |
IMPORT_C void | OpenItemL(TSmlDbItemUid, TBool &, TInt &, TSmlDbItemUid &, TDes8 &, TDes8 &, TRequestStatus &) |
IMPORT_C void | OpenL(const TDesC &, MSmlSyncRelationship &, TRequestStatus &) |
IMPORT_C void | ReadItemL(TDes8 &) |
IMPORT_C void | ReplaceItemL(TSmlDbItemUid, TInt, TSmlDbItemUid, TBool, TRequestStatus &) |
IMPORT_C void | ResetChangeInfoL(TRequestStatus &) |
IMPORT_C void | RevertTransaction(TRequestStatus &) |
IMPORT_C void | SetRemoteMaxObjectSize(TInt) |
IMPORT_C void | SetRemoteStoreFormatL(const CSmlDataStoreFormat &) |
IMPORT_C void | SoftDeleteItemL(TSmlDbItemUid, TRequestStatus &) |
IMPORT_C const MSmlDataItemUidSet & | SoftDeletedItems() |
IMPORT_C const TDesC & | StoreName() |
IMPORT_C void | WriteItemL(const TDesC8 &) |
Protected Member Functions |
---|
pure virtual const MSmlDataItemUidSet & | DoAddedItems() |
pure virtual void | DoBeginBatchL() |
pure virtual void | DoBeginTransactionL() |
pure virtual void | DoCancelBatch() |
pure virtual void | DoCancelRequest() |
pure virtual void | DoCloseItem() |
pure virtual void | DoCommitBatchL(RArray< TInt > &, TRequestStatus &) |
pure virtual void | DoCommitChangeInfoL(TRequestStatus &, const MSmlDataItemUidSet &) |
pure virtual void | DoCommitChangeInfoL(TRequestStatus &) |
pure virtual void | DoCommitItemL(TRequestStatus &) |
pure virtual void | DoCommitTransactionL(TRequestStatus &) |
pure virtual void | DoCreateItemL(TSmlDbItemUid &, TInt, TSmlDbItemUid, const TDesC8 &, const TDesC8 &, TRequestStatus &) |
pure virtual void | DoDeleteAllItemsL(TRequestStatus &) |
pure virtual void | DoDeleteItemL(TSmlDbItemUid, TRequestStatus &) |
pure virtual const MSmlDataItemUidSet & | DoDeletedItems() |
pure virtual
TBool
| DoHasSyncHistory() |
pure virtual
TInt
| DoMaxObjectSize() |
pure virtual const MSmlDataItemUidSet & | DoModifiedItems() |
pure virtual void | DoMoveItemL(TSmlDbItemUid, TSmlDbItemUid, TRequestStatus &) |
pure virtual const MSmlDataItemUidSet & | DoMovedItems() |
pure virtual void | DoOpenItemL(TSmlDbItemUid, TBool &, TInt &, TSmlDbItemUid &, TDes8 &, TDes8 &, TRequestStatus &) |
pure virtual void | DoOpenL(const TDesC &, MSmlSyncRelationship &, TRequestStatus &) |
pure virtual void | DoReadItemL(TDes8 &) |
pure virtual void | DoReplaceItemL(TSmlDbItemUid, TInt, TSmlDbItemUid, TBool, TRequestStatus &) |
pure virtual void | DoResetChangeInfoL(TRequestStatus &) |
pure virtual void | DoRevertTransaction(TRequestStatus &) |
pure virtual void | DoSetRemoteMaxObjectSize(TInt) |
pure virtual void | DoSetRemoteStoreFormatL(const CSmlDataStoreFormat &) |
pure virtual void | DoSoftDeleteItemL(TSmlDbItemUid, TRequestStatus &) |
pure virtual const MSmlDataItemUidSet & | DoSoftDeletedItems() |
pure virtual const TDesC & | DoStoreName() |
pure virtual void | DoWriteItemL(const TDesC8 &) |
Detailed Description
Data Store interface.
Member Function Documentation
BeginBatchL ( )
IMPORT_C void | BeginBatchL | ( | ) | |
BeginBatchL() starts the batch mode. During this mode calls to CreateItemL, ReplaceItemL, WriteItemL, CommitItemL, MoveItemL, DeleteItemL and SoftDeleteItemL will be part of this batch. Their RequestStatus must be completed with KErrNone, which only signals acceptance of the operation for batch processing.
BeginTransactionL ( )
IMPORT_C void | BeginTransactionL | ( | ) | |
BeginTransactionL() starts the transaction mode. During this mode calls to CreateItemL, ReplaceItemL, WriteItemL, CommitItemL, MoveItemL, DeleteItemL and SoftDeleteItemL will be part of this transaction. Their RequestStatus must be completed, even if the change is not yet really executed in the Data Store. If a RequestStatus is completed with an error code, the transaction has failed and a rollback must be done. In this case RevertTransaction will be called.
CancelBatch ( )
IMPORT_C void | CancelBatch | ( | ) | |
CancelBatch() will be called to abort an ongoing batch mode. None of the operations already submitted may be applied to the Data Store.
CancelRequest ( )
IMPORT_C void | CancelRequest | ( | ) | |
Cancel the current asynchronous request, including open. Only one asynchronous request may be outstanding at any one time.
CommitBatchL ( RArray< TInt > &, TRequestStatus & )
CommitBatchL() will be called at the end of the batch mode. This tells the Data Store to process the batched operations (in the order they were submitted), and to append the error code for each operation to aResultArray. The error codes in aResultArray are only valid if the RequestStatus is completed with KErrNone. If the RequestStatus is completed with an error code none of the operations in the batch mode were applied to the Data Store.
CommitChangeInfoL ( TRequestStatus &, const MSmlDataItemUidSet & )
CommitChangeInfoL ( TRequestStatus & )
CommitItemL ( TRequestStatus & )
CommitTransactionL ( TRequestStatus & )
CommitTransactionL() will be called at the end of a successful transaction. At this point in time the operations within the transaction are applied to the Data Store in an atomic way. If all operations succeed, the RequestStatus must be completed with KErrNone. If an operation fails, a rollback must be done and the RequestStatus must be completed with an appropriate error code.
CreateItemL ( TSmlDbItemUid &, TInt, TSmlDbItemUid, const TDesC8 &, const TDesC8 &, TRequestStatus & )
DeleteAllItemsL ( TRequestStatus & )
DeleteItemL ( TSmlDbItemUid, TRequestStatus & )
DoBeginBatchL ( )
void | DoBeginBatchL | ( | ) | [protected, pure virtual] |
DoBeginTransactionL ( )
void | DoBeginTransactionL | ( | ) | [protected, pure virtual] |
DoCancelBatch ( )
void | DoCancelBatch | ( | ) | [protected, pure virtual] |
DoCancelRequest ( )
void | DoCancelRequest | ( | ) | [protected, pure virtual] |
DoCloseItem ( )
void | DoCloseItem | ( | ) | [protected, pure virtual] |
DoCommitBatchL ( RArray< TInt > &, TRequestStatus & )
DoCommitChangeInfoL ( TRequestStatus &, const MSmlDataItemUidSet & )
DoCommitChangeInfoL ( TRequestStatus & )
void | DoCommitChangeInfoL | ( | TRequestStatus & | aStatus | ) | [protected, pure virtual] |
DoCommitItemL ( TRequestStatus & )
DoCommitTransactionL ( TRequestStatus & )
void | DoCommitTransactionL | ( | TRequestStatus & | aStatus | ) | [protected, pure virtual] |
DoCreateItemL ( TSmlDbItemUid &, TInt, TSmlDbItemUid, const TDesC8 &, const TDesC8 &, TRequestStatus & )
DoDeleteAllItemsL ( TRequestStatus & )
void | DoDeleteAllItemsL | ( | TRequestStatus & | aStatus | ) | [protected, pure virtual] |
DoDeleteItemL ( TSmlDbItemUid, TRequestStatus & )
DoHasSyncHistory ( )
TBool
| DoHasSyncHistory | ( | ) | const [protected, pure virtual] |
DoMaxObjectSize ( )
TInt
| DoMaxObjectSize | ( | ) | const [protected, pure virtual] |
DoMoveItemL ( TSmlDbItemUid, TSmlDbItemUid, TRequestStatus & )
DoOpenItemL ( TSmlDbItemUid, TBool &, TInt &, TSmlDbItemUid &, TDes8 &, TDes8 &, TRequestStatus & )
DoOpenL ( const TDesC &, MSmlSyncRelationship &, TRequestStatus & )
DoReadItemL ( TDes8 & )
void | DoReadItemL | ( | TDes8 & | aBuffer | ) | [protected, pure virtual] |
DoReplaceItemL ( TSmlDbItemUid, TInt, TSmlDbItemUid, TBool, TRequestStatus & )
DoResetChangeInfoL ( TRequestStatus & )
void | DoResetChangeInfoL | ( | TRequestStatus & | aStatus | ) | [protected, pure virtual] |
DoRevertTransaction ( TRequestStatus & )
void | DoRevertTransaction | ( | TRequestStatus & | aStatus | ) | [protected, pure virtual] |
DoSetRemoteMaxObjectSize ( TInt )
void | DoSetRemoteMaxObjectSize | ( | TInt | aServerMaxObjectSize | ) | [protected, pure virtual] |
DoSetRemoteStoreFormatL ( const CSmlDataStoreFormat & )
void | DoSetRemoteStoreFormatL | ( | const CSmlDataStoreFormat & | aServerDataStoreFormat | ) | [protected, pure virtual] |
DoSoftDeleteItemL ( TSmlDbItemUid, TRequestStatus & )
DoStoreName ( )
const TDesC & | DoStoreName | ( | ) | const [protected, pure virtual] |
DoWriteItemL ( const TDesC8 & )
void | DoWriteItemL | ( | const TDesC8 & | aData | ) | [protected, pure virtual] |
HasSyncHistory ( )
IMPORT_C TBool | HasSyncHistory | ( | ) | const |
MaxObjectSize ( )
IMPORT_C TInt | MaxObjectSize | ( | ) | const |
Gets the Data Store maximum object size which is reported to the SyncML server. 0 means there is no limit.
MoveItemL ( TSmlDbItemUid, TSmlDbItemUid, TRequestStatus & )
OpenItemL ( TSmlDbItemUid, TBool &, TInt &, TSmlDbItemUid &, TDes8 &, TDes8 &, TRequestStatus & )
OpenL ( const TDesC &, MSmlSyncRelationship &, TRequestStatus & )
Opens the data store specified by aStoreName asynchronously.
Parameter | Description | aStoreName | The name of the data store to open. |
aContext | Identifies the specific synchronisation relationship to use for the synchronisation. |
aStatus | On completion of the open, contains the result code. |
ReadItemL ( TDes8 & )
IMPORT_C void | ReadItemL | ( | TDes8 & | aBuffer | ) | |
ReplaceItemL ( TSmlDbItemUid, TInt, TSmlDbItemUid, TBool, TRequestStatus & )
ResetChangeInfoL ( TRequestStatus & )
RevertTransaction ( TRequestStatus & )
RevertTransaction() will be called to abort an ongoing transaction. None of the operations already submitted may be applied to the Data Store. The RequestStatus must be completed with KErrNone as a revert cannot fail.
SetRemoteMaxObjectSize ( TInt )
IMPORT_C void | SetRemoteMaxObjectSize | ( | TInt | aServerMaxObjectSize | ) | |
Sets the SyncML server maximum object size - this may optionally be used by the Data Provider to not send items to the server exceeding its maximum size. 0 means there is no limit.
SetRemoteStoreFormatL ( const CSmlDataStoreFormat & )
Sets the SyncML server Data Format - this may optionally be used by the Data Provider to filter out properties that the server does not support, and should be used to avoid deleting these properties in case the server sends a changed item to the Data Provider
SoftDeleteItemL ( TSmlDbItemUid, TRequestStatus & )
StoreName ( )
IMPORT_C const TDesC & | StoreName | ( | ) | const |
Returns the name of the open data store.
WriteItemL ( const TDesC8 & )
IMPORT_C void | WriteItemL | ( | const TDesC8 & | aData | ) | |