Symbian
Symbian Developer Library

SYMBIAN OS V9.4

Feedback

[Index] [Previous] [Next]

#include <SyncMLClientDS.h>
Link against: smlclient.lib
This item is not part of the S60 5th Edition SDK

Class RSyncMLDataSyncJob

class RSyncMLDataSyncJob : public RSyncMLJobBase;

Description

Handle to a data synchronisation job.

A job synchronises the data in one or more data stores, as defined by the list of tasks.

Derivation

Members

Defined in RSyncMLDataSyncJob:

Inherited from RSubSessionBase:

Inherited from RSyncMLJobBase:


Construction and destruction


RSyncMLDataSyncJob()

IMPORT_C RSyncMLDataSyncJob();

Description

Default constructor.

[Top]


Member functions


CreateL(RSyncMLSession &,TSmlProfileId)

Capability: LocalServices
Capability: NetworkServices

IMPORT_C void CreateL(RSyncMLSession &, TSmlProfileId);

Pre-Condition

The session is open.

Description

Creates and queues a new data synchronisation job to synchronise all tasks belonging to the specified profile.

This object is opened as a handle to the new job.

Parameters

RSyncMLSession &

An open session with the Sync Agent.

TSmlProfileId

The ID of the profile to synchronise.

Leave codes

System

error codes.

SyncMLError::KErrProfileNotFound

The specified profile was not found.

SyncMLError::KErrTransportNotFound

The specified profile contains no connections, or a connection over an unknown transport.

SyncMLError::KErrSuspended

The SyncML framework is suspended pending a system backup or restore.

KErrArgument

The specified profile is not a Data Sync profile, or contains no enabled tasks.

See also:


CreateL(RSyncMLSession &,TSmlProfileId,const RArray< TSmlTaskId > &)

Capability: LocalServices
Capability: NetworkServices

IMPORT_C void CreateL(RSyncMLSession &, TSmlProfileId, const RArray< TSmlTaskId > &);

Pre-Condition

The session is open.

Description

Creates and queues a new data synchronisation job to synchronise all specified tasks

All specified tasks must belong to the same profile.

Parameters

RSyncMLSession &

An open session with the Sync Agent.

TSmlProfileId

The ID of the profile to synchronise

const RArray< TSmlTaskId > &

A list of IDs of the tasks to synchronise.

Leave codes

System

error codes.

See also:


CreateL(RSyncMLSession &,TSmlProfileId,TSmlConnectionId)

IMPORT_C void CreateL(RSyncMLSession &, TSmlProfileId, TSmlConnectionId);

Description

Parameters

RSyncMLSession &

TSmlProfileId

TSmlConnectionId


CreateL(RSyncMLSession &,TSmlProfileId,TSmlConnectionId,TSmlSyncType)

IMPORT_C void CreateL(RSyncMLSession &, TSmlProfileId, TSmlConnectionId, TSmlSyncType);

Description

Parameters

RSyncMLSession &

TSmlProfileId

TSmlConnectionId

TSmlSyncType


CreateL(RSyncMLSession &,TSmlProfileId,TSmlConnectionId,const RArray< TSmlTaskId > &)

IMPORT_C void CreateL(RSyncMLSession &, TSmlProfileId, TSmlConnectionId, const RArray< TSmlTaskId > &);

Description

Parameters

RSyncMLSession &

TSmlProfileId

TSmlConnectionId

const RArray< TSmlTaskId > &


CreateL(RSyncMLSession &,TSmlProfileId,TSmlConnectionId,TSmlSyncType,const RArray< TSmlTaskId > &)

IMPORT_C void CreateL(RSyncMLSession &, TSmlProfileId, TSmlConnectionId, TSmlSyncType, const RArray< TSmlTaskId > &);

Description

Parameters

RSyncMLSession &

TSmlProfileId

TSmlConnectionId

TSmlSyncType

const RArray< TSmlTaskId > &


CreateL(RSyncMLSession &,TSmlProfileId,TSmlSyncType)

Capability: LocalServices
Capability: NetworkServices

IMPORT_C void CreateL(RSyncMLSession &, TSmlProfileId, TSmlSyncType);

Pre-Condition

The session is open.

Description

Creates and queues a new data synchronisation job to synchronise all tasks belonging to the specified profile, using the specified Synchronisation type.

This object is opened as a handle to the new job.

Parameters

RSyncMLSession &

An open session with the Sync Agent.

TSmlProfileId

The ID of the profile to synchronise.

TSmlSyncType

The Synchronisation type required for all tasks in the specified profile for this job.

Leave codes

System

error codes.

SyncMLError::KErrProfileNotFound

The specified profile was not found.

SyncMLError::KErrTransportNotFound

The specified profile contains no connections, or a connection over an unknown transport.

SyncMLError::KErrSuspended

The SyncML framework is suspended pending a system backup or restore.

KErrArgument

The specified profile is not a Data Sync profile, or contains no enabled tasks.

See also:


CreateL(RSyncMLSession &,TSmlProfileId,TSmlSyncType,const RArray< TSmlTaskId > &)

Capability: LocalServices
Capability: NetworkServices

IMPORT_C void CreateL(RSyncMLSession &, TSmlProfileId, TSmlSyncType, const RArray< TSmlTaskId > &);

Pre-Condition

The session is open.

Description

Creates and queues a new data synchronisation job to synchronise all specified tasks using the specified Synchronisation type. All specified tasks must belong to the same profile.

Parameters

RSyncMLSession &

An open session with the Sync Agent.

TSmlProfileId

The ID of the profile to synchronise

TSmlSyncType

The Synchronisation type required for all tasks in the specified profile for this job.

const RArray< TSmlTaskId > &

A list of IDs of the tasks to synchronise.

Leave codes

System

error codes.

See also:


OpenL(RSyncMLSession &,TSmlJobId)

IMPORT_C void OpenL(RSyncMLSession &, TSmlJobId);

Pre-Condition

The session is open.

Description

Opens a handle to a queued data synchronisation job of the specified ID.

Parameters

RSyncMLSession &

An open session with the Sync Agent.

TSmlJobId

The ID of the job to open.

Leave codes

System

error codes.


StopL()

Capability: Security policy note: Policed on SecureID, to ensure that the Job creator is the process trying to call this method), or TrustedUI if the Job was created as a result of a received Server Alert Notification (SAN) message

IMPORT_C void StopL();

Pre-Condition

The handle is open.

Description

Stop the Job represented by this handle from continuing to be processed by the Sync Framework. This call will fail unless either the caller is the process that originally started this Job or, in the instance that this Job was created as a result of a remotely received Server Alert Notification (SAN), the caller has been granted the TrustedUI Platform Security capability.

Leave codes

KErrPermissionDenied

If the caller is not the process that created the Job, or the Job was created by SAN and the caller doesn't have the TrustedUI capability

System

error codes.


SuspendL()

IMPORT_C void SuspendL();

Description

Suspends the job that this handle refers to, suspending the synchonisation.


IsSuspendedL()

IMPORT_C TBool IsSuspendedL();

Description

Checks to see if a job is in a suspended state.

Return value

TBool

ETrue if the job is suspended, otherwise EFalse.


TaskIDs()const

IMPORT_C const RArray< TSmlTaskId >& TaskIDs() const;

Pre-Condition

The handle is open.

Description

Gets the IDs of the tasks synchronised by the job to which this handle refers.

Return value

const RArray< TSmlTaskId > &

The list of task IDs.