Location:
SyncMLClient.h
Link against: smlclient.lib
class RSyncMLSession : public RSessionBase;
A client handle to a SyncML
Sync Agent session.
An instance of this class must be created in order to instantiate any of the other client-side classes.
Accessor methods are provided to enable clients to retrieve identifiers of current and queued jobs, and of available profiles, transports, and data providers. These IDs can be used to open handles on these objects in order to manipulate them.
Clients can request notifications of events related to jobs, profiles, transports, and the SyncML
Agent, and can request progress for the currently running job.
RHandleBase
- A handle to an object
RSessionBase
- Client-side handle to a session with a server
RSyncMLSession
- A client handle to a
Defined in RSyncMLSession
:
CancelEvent()
, CancelProgress()
, Close()
, CurrentJobL()
, DeleteProfileL()
, ListDataProvidersL()
, ListProfilesL()
, ListQueuedJobsL()
, ListTransportsL()
, OpenL()
, RSyncMLSession()
, RequestEventL()
, RequestProgressL()
Inherited from RHandleBase
:
Attributes()
,
Duplicate()
,
FullName()
,
Handle()
,
HandleInfo()
,
Name()
,
SetHandle()
,
SetHandleNC()
,
iHandle
Inherited from RSessionBase
:
CreateSession()
,
EAutoAttach
,
EExplicitAttach
,
Open()
,
Send()
,
SendReceive()
,
SetReturnedHandle()
,
ShareAuto()
,
ShareProtected()
,
TAttachMode
IMPORT_C void OpenL();
Opens a new session with the SyncML
Sync Agent.
|
IMPORT_C void RequestEventL(MSyncMLEventObserver &);
The session is open.
Requests notification of session events.
Events will continue to be delivered to the supplied observer until the session is closed or CancelEvent()
is called.
|
|
IMPORT_C void CancelEvent();
The session is open.
Cancels an outstanding session event request.
IMPORT_C void RequestProgressL(MSyncMLProgressObserver &);
The session is open.
Requests notification of progress events from data synchronisation and device management jobs.
There need not be a job in progress when this method is called, but no events are received until a job is running.
|
|
IMPORT_C void CurrentJobL(TSmlJobId &, TSmlUsageType &) const;
The session is open.
Gets information about a currently running job.
|
|
IMPORT_C void ListQueuedJobsL(RArray< TSmlJobId > &, TSmlUsageType) const;
The session is open.
Gets a list of IDs of all queued jobs of the specified type.
|
|
IMPORT_C void ListProfilesL(RArray< TSmlProfileId > &, TSmlUsageType) const;
The session is open.
Gets a list of IDs of all defined profiles of the specified type.
|
|
IMPORT_C void ListTransportsL(RArray< TSmlTransportId > &) const;
The session is open.
Gets a list of IDs of all available communications transports.
|
|
IMPORT_C void ListDataProvidersL(RArray< TSmlDataProviderId > &) const;
The session is open.
Gets a list of IDs of all available data providers.
|
|
Capability: | WriteDeviceData |
IMPORT_C void DeleteProfileL(TSmlProfileId);
The session is open.
Deletes the profile with the specified ID.
|
|
IMPORT_C void Close();
All dependant sub-sessions have been closed.
Close the session, freeing all resources.