|
|
|
|
Location:
SyncMLClient.h
Link against: smlclient.lib
class RSyncMLConnection : public RSubSessionBase;
Handle to data defining a connection to a remote SyncML server in the context of a profile.
RSubSessionBase - Client-side handle to a sub-session
RSyncMLConnection - Handle to data defining a connection to a remote
Defined in RSyncMLConnection:
Close(), CreateL(), GetPropertyL(), Identifier(), IsReadOnly(), OpenL(), Priority(), Profile(), RSyncMLConnection(), RetryCount(), ServerURI(), SetPriority(), SetPropertyL(), SetRetryCount(), SetServerURIL(), UpdateL()
Inherited from RSubSessionBase:
CloseSubSession(),
CreateAutoCloseSubSession(),
CreateSubSession(),
Send(),
SendReceive(),
Session(),
SubSessionHandle()
IMPORT_C void CreateL(RSyncMLProfileBase &, TSmlTransportId);
Creates a new, blank, connection in the specified profile and opens this object as a handle to it.
The parent profile must be open for read/write access. The new connection is not saved until RSyncMLProfile::UpdateL() is called on the parent profile.
|
|
IMPORT_C void OpenL(RSyncMLProfileBase &, TSmlConnectionId);
Opens a handle to an existing connection of the specified ID within the specified profile.
The access mode (read or read/write) is inherited from the parent profile.
|
|
IMPORT_C TSmlConnectionId Identifier() const;
The handle is open.
Gets the ID of the connection referenced by this handle.
|
IMPORT_C TSmlProfileId Profile() const;
The handle is open.
Gets the ID of the parent profile of this connection.
|
IMPORT_C TUint Priority() const;
The handle is open.
Gets the relative priority of this connection within the profile.
|
IMPORT_C TUint RetryCount() const;
The handle is open.
Gets the retry count to use with the transport connection that this handle represents.
|
IMPORT_C const TDesC8 &ServerURI() const;
The handle is open.
Gets the URI of the server for the transport connection that this handle represents.
|
IMPORT_C const TDesC8 &GetPropertyL(const TDesC8 &aName) const;
The handle is open.
Gets the value of the transport property specified.
|
|
|
IMPORT_C void SetPriority(TUint);
The handle is open.
Sets the relative priority of this connection within the profile.
This is used to determine the default connection for the profile.
|
IMPORT_C void SetRetryCount(TUint);
The handle is open.
Sets the retry count for this connection..
|
IMPORT_C void SetServerURIL(const TDesC8 &);
The handle is open.
Sets the server URI to use with this connection.
|
|
IMPORT_C void SetPropertyL(const TDesC8 &aName, const TDesC8 &aValue);
The handle is open.
Sets the value of a transport property to use with this connection.
|
|
IMPORT_C TBool IsReadOnly() const;
The handle is open.
Tests if the parent profile is open for read and write access.
|
IMPORT_C void UpdateL();
The handle is open for read and write access.
Transfers any changes made to the connection data to the Sync Agent.
The new data will be persisted when RSyncMLProfile::UpdateL() is called on the parent profile.
|
IMPORT_C void Close();
Closes this handle.