Symbian
Symbian Developer Library

SYMBIAN OS V9.4

Feedback

[Index] [Previous] [Next]

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

Class RSyncMLTransport

class RSyncMLTransport : public RSubSessionBase;

Description

Handle to information about an available SyncML transport.

Derivation

Members

Defined in RSyncMLTransport:

Inherited from RSubSessionBase:


Construction and destruction


RSyncMLTransport()

IMPORT_C RSyncMLTransport();

Description

Default constructor.

[Top]


Member functions


OpenL(RSyncMLSession &,TSmlTransportId)

IMPORT_C void OpenL(RSyncMLSession &, TSmlTransportId);

Description

Opens a handle on the transport identified by aId.

Parameters

RSyncMLSession &

An open session with the Sync Agent.

TSmlTransportId

The ID of the transport to open.

Leave codes

SyncMLError::KErrTransportNotFound

The specified transport ID does not represent a valid transport.

KErrNoMemory

Insufficient system memory to complete the operation.

System

error codes.


Identifier()const

IMPORT_C TSmlTransportId Identifier() const;

Pre-Condition

The handle is open.

Description

Gets the ID of the transport referenced by this handle.

Return value

TSmlTransportId

The transport ID.


DisplayName()const

IMPORT_C const TDesC& DisplayName() const;

Pre-Condition

The handle is open.

Description

Gets the human-readable display name of the transport referenced by this handle.

Return value

const TDesC16 &

The name of the transport.


SupportsCapability(TSmlTransportCap)const

IMPORT_C TBool SupportsCapability(TSmlTransportCap) const;

Pre-Condition

The handle is open.

Description

Tests if the specified capability is supported.

Parameters

TSmlTransportCap

The capability to test support for.

Return value

TBool

True if the specified capability is supported.


Properties()const

IMPORT_C const CSyncMLTransportPropertiesArray& Properties() const;

Pre-Condition

The handle is open.

Description

Gets a list of all properties supported by this transport.

Return value

const CSyncMLTransportPropertiesArray &


StartListeningL()const

Capability: LocalServices

IMPORT_C void StartListeningL() const;

Pre-Condition

The handle is open.

Description

Starts listening for incoming connections on this transport.

Post-Condition

The transport is listening for incoming connections.

Leave codes

KErrNoMemory

Insufficient system memory to complete the operation.

System

error codes.


StopListeningL()const

Capability: LocalServices

IMPORT_C void StopListeningL() const;

Pre-Condition

The handle is open.

The transport is listening for incoming connections.

Description

Stops listening for incoming connections on this transport.

Post-Condition

The transport is NOT listening for incoming connections.

Leave codes

KErrNoMemory

Insufficient system memory to complete the operation.

System

error codes.


Close()

IMPORT_C void Close();

Description

Closes this handle.