Symbian
Symbian OS Library

SYMBIAN OS V9.3

[Index] [Spacer] [Previous] [Next]



Location: syncmlobservers.h

This item is not part of the S60 3rd Edition SDK for Symbian OS, Feature Pack 2.

Class MSyncMLProgressObserver

class MSyncMLProgressObserver;

Description

Interface to receive notifications of SyncML synchronisation progress events.

Notifications are requested through RSyncMLSession::RequestProgressL().

Members

Defined in MSyncMLProgressObserver:
ESmlCompleted, ESmlConnected, ESmlConnecting, ESmlDisconnected, ESmlFailedToSuspend, ESmlFatalError, ESmlLoggedOn, ESmlLoggingOn, ESmlProcessingServerCommands, ESmlReceivingModificationsFromServer, ESmlReceivingServerCommands, ESmlSendingMappingsToServer, ESmlSendingModificationsToServer, ESmlSuspended, ESmlSuspending, ESmlUnexpectedDisconnect, ESmlWarning, OnSyncMLDataSyncModifications(), OnSyncMLSyncError(), OnSyncMLSyncProgress(), TErrorLevel, TStatus, TSyncMLDataSyncModifications


Member functions


OnSyncMLSyncError()

virtual void OnSyncMLSyncError(TErrorLevel aErrorLevel, TInt aError, TInt aTaskId, TInt aInfo1, TInt aInfo2)=0;

Description

Receives notification of a synchronisation error.

Parameters

TErrorLevel aErrorLevel

The error level.

TInt aError

The type of error. This is one of the SyncMLError error values.

TInt aTaskId

The ID of the task for which the error occurred.

TInt aInfo1

An integer that can contain additional information about the error. Normally 0.

TInt aInfo2

An integer that can contain additional information about the error. Normally 0.


OnSyncMLSyncProgress()

virtual void OnSyncMLSyncProgress(TStatus aStatus, TInt aInfo1, TInt aInfo2)=0;

Description

Receives notification of synchronisation progress.

Parameters

TStatus aStatus

The current status, e.g. 'Connecting'.

TInt aInfo1

An integer that can contain additional information about the error. Normally 0.

TInt aInfo2

An integer that can contain additional information about the error. Normally 0.


OnSyncMLDataSyncModifications()

virtual void OnSyncMLDataSyncModifications(TInt aTaskId, const TSyncMLDataSyncModifications &aClientModifications, const TSyncMLDataSyncModifications &aServerModifications)=0;

Description

Receives notification of modifications to synchronisation tasks.

Parameters

TInt aTaskId

The ID of the task.

const TSyncMLDataSyncModifications &aClientModifications

Modifications made on the clients Data Store.

const TSyncMLDataSyncModifications &aServerModifications

Modifications made on the server Data Store.

[Top]


Member classes


Class TSyncMLDataSyncModifications

class TSyncMLDataSyncModifications;

Description

Container class for number of items added, replaced, moved, deleted and failed.

Members

Defined in MSyncMLProgressObserver::TSyncMLDataSyncModifications:
iNumAdded, iNumDeleted, iNumFailed, iNumMoved, iNumReplaced

Member data


iNumAdded

TInt iNumAdded;

Description


iNumReplaced

TInt iNumReplaced;

Description


iNumMoved

TInt iNumMoved;

Description


iNumDeleted

TInt iNumDeleted;

Description


iNumFailed

TInt iNumFailed;

Description

[Top]


Member enumerations


Enum TStatus

TStatus

Description

SyncML synchronisation progress events.

ESmlConnecting

Connecting to a SyncML server.

ESmlConnected

Connected to a SyncML server.

ESmlLoggingOn

Logging on to a SyncML server.

ESmlLoggedOn

Logged on to a SyncML server.

ESmlDisconnected

Disconnected from a SyncML server.

ESmlCompleted

Synchronisation has completed.

ESmlSendingModificationsToServer

Sending modifications to a SyncML server. DS only

ESmlReceivingModificationsFromServer

Receiving modifications from a SyncML server. DS only

ESmlSendingMappingsToServer

Sending mappings to a SyncML server. DS only

ESmlProcessingServerCommands

Processing commands from a SyncML server. DM only

ESmlReceivingServerCommands

Receiving commands from a SyncML server. DM only

ESmlSuspending

Attempting to suspend. DS only

ESmlSuspended

Succesfully suspended. DS only

ESmlFailedToSuspend

Failed to suspend. DS only

ESmlUnexpectedDisconnect

Unexpected Disconnect


Enum TErrorLevel

TErrorLevel

Description

SyncML error levels.

ESmlWarning

Warning. A non-fatal error has occurred. Synchronisation continues.

ESmlFatalError

Fatal error. A fatal error has occurred. The synchronisation is stopped.