Symbian
Symbian Developer Library

SYMBIAN OS V9.4

Feedback

[Index] [Previous] [Next]

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

Class RSyncMLDevManJob

class RSyncMLDevManJob : public RSyncMLJobBase;

Description

Handle to a device management job.

A device management job is used to create, access, modify or remove device settings stored in the device repository.

Derivation

Members

Defined in RSyncMLDevManJob:

Inherited from RSubSessionBase:

Inherited from RSyncMLJobBase:


Construction and destruction


RSyncMLDevManJob()

IMPORT_C RSyncMLDevManJob();

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 device management job based on the specified device management 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.

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 DevMan profile.


CreateL(RSyncMLSession &,TSmlProfileId,TSmlConnectionId)

Capability: LocalServices
Capability: NetworkServices

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

Pre-Condition

The session is open.

Description

Creates and queues a new device management job based on the specified device management profile, using the specified connection method.

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.

TSmlConnectionId

The ID of the connection method to use.

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 DevMan profile.


OpenL(RSyncMLSession &,TSmlJobId)

IMPORT_C void OpenL(RSyncMLSession &, TSmlJobId);

Pre-Condition

The session is open.

Description

Open a handle to a queued device management 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.