MRemConBearerInterface Class Reference

class MRemConBearerInterface

Mixin for the bearer API.

Member Functions Documentation

ClientStatus(TBool, TBool)

voidClientStatus(TBoolaControllerPresent,
TBoolaTargetPresent
)[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 aControllerPresentIs true if any controllers are present, EFalse otherwise.
TBool aTargetPresentIs true if any targets are present, EFalse otherwise.

ConnectRequest(const TRemConAddress &)

voidConnectRequest(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 & aAddrThe RemCon address to connect to.

DisconnectRequest(const TRemConAddress &)

voidDisconnectRequest(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 & aAddrThe 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 & aInterfaceUidThe UID of the outer-layer client API specifying the command.
TUint & aTransactionIdThe command identifier used as a cookie for command/response matching.
TUint & aOperationIdThe ID of the command operation in the outer-layer client API.
RBuf8 & aDataAPI-specific message data. On success, ownership is returned.
TRemConAddress & aAddrThe 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 & aInterfaceUidThe UID of the outer-layer client API specifying the response.
TUint & aTransactionIdThe command identifier used as a cookie for command/response matching.
TUint & aOperationIdThe ID of the response operation in the outer-layer client API.
RBuf8 & aDataAPI-specific message data. On success, ownership is returned.
TRemConAddress & aAddrThe 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(TUidaInterfaceUid,
TUintaOperationId,
TUintaTransactionId,
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 aInterfaceUidThe UID of the outer-layer client API specifying the command.
TUint aOperationIdThe ID of the command operation in the outer-layer client API.
TUint aTransactionIdThe command identifier used as a cookie for command/response matching.
RBuf8 & aDataAPI-specific message data. On success, ownership is passed.
const TRemConAddress & aAddrThe connection.

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

TInt SendResponse(TUidaInterfaceUid,
TUintaOperationId,
TUintaTransactionId,
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 aInterfaceUidThe UID of the outer-layer client API specifying the response.
TUint aOperationIdThe ID of the response operation in the outer-layer client API.
TUint aTransactionIdThe command identifier used as a cookie for command/response matching
RBuf8 & aDataAPI-specific message data. On success, ownership is passed.
const TRemConAddress & aAddrThe connection.