MRemConBearerInterface Class Reference

class MRemConBearerInterface

Mixin for the bearer API.

Member Functions Documentation

ClientStatus(TBool, TBool)

void ClientStatus ( TBool aControllerPresent,
TBool aTargetPresent
) [pure virtual]

Called by RemCon when either (a) the number of controller clients changes from 0 to 1 or from 1 to 0, or (b) the number of target clients changes from 0 to 1 or from 1 to 0.

Parameters

TBool aControllerPresent Is true if any controllers are present, EFalse otherwise.
TBool aTargetPresent Is true if any targets are present, EFalse otherwise.

ConnectRequest(const TRemConAddress &)

void ConnectRequest ( const TRemConAddress & aAddr ) [pure virtual]

Called by RemCon to establish a bearer-level connection to another party. Completion is signalled back in ConnectConfirm.

Parameters

const TRemConAddress & aAddr The RemCon address to connect to.

DisconnectRequest(const TRemConAddress &)

void DisconnectRequest ( const TRemConAddress & aAddr ) [pure virtual]

Called by RemCon to destroy a bearer-level connection to another party. Completion is signalled back in DisconnectConfirm.

Parameters

const TRemConAddress & aAddr The RemCon address to disconnect from.

GetCommand(TUid &, TUint &, TUint &, RBuf8 &, TRemConAddress &)

TInt GetCommand ( TUid & aInterfaceUid,
TUint & aTransactionId,
TUint & aOperationId,
RBuf8 & aData,
TRemConAddress & aAddr
) [pure virtual]

Called by RemCon to retrieve a command on a connection. Must only be called as a result of a NewCommand up-call.

Parameters

TUid & aInterfaceUid The UID of the outer-layer client API specifying the command.
TUint & aTransactionId The command identifier used as a cookie for command/response matching.
TUint & aOperationId The ID of the command operation in the outer-layer client API.
RBuf8 & aData API-specific message data. On success, ownership is returned.
TRemConAddress & aAddr The connection.

GetResponse(TUid &, TUint &, TUint &, RBuf8 &, TRemConAddress &)

TInt GetResponse ( TUid & aInterfaceUid,
TUint & aTransactionId,
TUint & aOperationId,
RBuf8 & aData,
TRemConAddress & aAddr
) [pure virtual]

Called by RemCon to retrieve a response on a connection. Must only be called as a result of a NewResponse up-call.

Parameters

TUid & aInterfaceUid The UID of the outer-layer client API specifying the response.
TUint & aTransactionId The command identifier used as a cookie for command/response matching.
TUint & aOperationId The ID of the response operation in the outer-layer client API.
RBuf8 & aData API-specific message data. On success, ownership is returned.
TRemConAddress & aAddr The connection.

SecurityPolicy()

TSecurityPolicy SecurityPolicy ( ) const [pure virtual]

Called by RemCon to get the capabilities required to make/destroy connections over the bearer, and to send and receive messages over the bearer.

SendCommand(TUid, TUint, TUint, RBuf8 &, const TRemConAddress &)

TInt SendCommand ( TUid aInterfaceUid,
TUint aOperationId,
TUint aTransactionId,
RBuf8 & aData,
const TRemConAddress & aAddr
) [pure virtual]

Called by RemCon to send a command on a connection. The connection is not assumed to exist- the bearer is responsible for bringing up the requested connection if necessary.

Parameters

TUid aInterfaceUid The UID of the outer-layer client API specifying the command.
TUint aOperationId The ID of the command operation in the outer-layer client API.
TUint aTransactionId The command identifier used as a cookie for command/response matching.
RBuf8 & aData API-specific message data. On success, ownership is passed.
const TRemConAddress & aAddr The connection.

SendResponse(TUid, TUint, TUint, RBuf8 &, const TRemConAddress &)

TInt SendResponse ( TUid aInterfaceUid,
TUint aOperationId,
TUint aTransactionId,
RBuf8 & aData,
const TRemConAddress & aAddr
) [pure virtual]

Called by RemCon to send a response on a connection. The connection is not assumed to exist- the bearer is responsible for bringing up the requested connection if necessary.

Parameters

TUid aInterfaceUid The UID of the outer-layer client API specifying the response.
TUint aOperationId The ID of the response operation in the outer-layer client API.
TUint aTransactionId The command identifier used as a cookie for command/response matching
RBuf8 & aData API-specific message data. On success, ownership is passed.
const TRemConAddress & aAddr The connection.