MRemConBearerObserver Class Reference
class MRemConBearerObserver |
Interface presented by RemCon down to bearers. The public methods are non-virtual and exported, so that they can be added to without breaking BC for existing (non-rebuilt) bearers.
Public Member Functions |
---|
IMPORT_C TInt | BearerToInterface(TUid, const TDesC8 &, const TDesC8 &, TUid &, TUint &, TRemConMessageType &, TDes8 &) |
IMPORT_C void | CommandExpired(TUint) |
IMPORT_C TInt | ConnectConfirm(const TRemConAddress &, TInt) |
IMPORT_C TInt | ConnectIndicate(const TRemConAddress &) |
IMPORT_C void | DisconnectConfirm(const TRemConAddress &, TInt) |
IMPORT_C void | DisconnectIndicate(const TRemConAddress &) |
IMPORT_C TInt | InterfaceToBearer(TUid, TUid, TUint, const TDesC8 &, TRemConMessageType, TDes8 &) |
IMPORT_C TInt | NewCommand(const TRemConAddress &) |
IMPORT_C TInt | NewCommand(const TRemConAddress &, const TRemConClientId &) |
IMPORT_C TInt | NewNotifyCommand(const TRemConAddress &) |
IMPORT_C TInt | NewNotifyCommand(const TRemConAddress &, const TRemConClientId &) |
IMPORT_C TInt | NewNotifyResponse(const TRemConAddress &) |
IMPORT_C TInt | NewResponse(const TRemConAddress &) |
IMPORT_C TUint | NewTransactionId() |
IMPORT_C TInt | RegisterLocalAddressedClientObserver(const TUid &) |
IMPORT_C void | SetRemoteAddressedClient(const TUid &, const TRemConClientId &) |
IMPORT_C TInt | SupportedInterfaces(const TRemConClientId &, RArray< TUid > &) |
IMPORT_C TInt | SupportedOperations(const TRemConClientId &, TUid, RArray< TUint > &) |
IMPORT_C TInt | UnregisterLocalAddressedClientObserver(const TUid &) |
Private Member Functions |
---|
TInt
| MrcboDoBearerToInterface(TUid, const TDesC8 &, const TDesC8 &, TUid &, TUint &, TRemConMessageType &, TDes8 &) |
void | MrcboDoCommandExpired(TUint) |
TInt
| MrcboDoConnectConfirm(const TRemConAddress &, TInt) |
TInt
| MrcboDoConnectIndicate(const TRemConAddress &) |
void | MrcboDoDisconnectConfirm(const TRemConAddress &, TInt) |
void | MrcboDoDisconnectIndicate(const TRemConAddress &) |
TInt
| MrcboDoInterfaceToBearer(TUid, TUid, TUint, const TDesC8 &, TRemConMessageType, TDes8 &) |
TInt
| MrcboDoNewCommand(const TRemConAddress &) |
TInt
| MrcboDoNewCommand(const TRemConAddress &, const TRemConClientId &) |
TInt
| MrcboDoNewNotifyCommand(const TRemConAddress &) |
TInt
| MrcboDoNewNotifyCommand(const TRemConAddress &, const TRemConClientId &) |
TInt
| MrcboDoNewNotifyResponse(const TRemConAddress &) |
TInt
| MrcboDoNewResponse(const TRemConAddress &) |
TUint
| MrcboDoNewTransactionId() |
TInt
| MrcboDoRegisterLocalAddressedClientObserver(const TUid &) |
void | MrcboDoSetRemoteAddressedClient(const TUid &, const TRemConClientId &) |
TInt
| MrcboDoSupportedInterfaces(const TRemConClientId &, RArray< TUid > &) |
TInt
| MrcboDoSupportedOperations(const TRemConClientId &, TUid, RArray< TUint > &) |
TInt
| MrcboDoUnregisterLocalAddressedClientObserver(const TUid &) |
Member Functions Documentation
BearerToInterface(TUid, const TDesC8 &, const TDesC8 &, TUid &, TUint &, TRemConMessageType &, TDes8 &)
Called by a bearer to convert a message from the bearer's format to that of an outer-layer API. The bearer observer finds a converter to perform this.
Parameters
TUid aBearerUid | The UID of the bearer. |
const TDesC8 & aInterfaceData | Data identifying the interface in bearer-specific format. |
const TDesC8 & aBearerData | The message encoded in the bearer's format. |
TUid & aInterfaceUid | On success, the UID of the outer layer API to which the message belongs. |
TUint & aOperationId | On success, the operation ID of the message. |
TRemConMessageType & aMsgType | On success, the type of the message. |
TDes8 & aData | On success, the operation-specific data of the message. |
CommandExpired(TUint)
IMPORT_C void | CommandExpired | ( | TUint | aTransactionId | ) | |
Called by a bearer when a command is no longer valid and should be removed from RemCon's queues
Parameters
TUint aTransactionId | The transaction ID of the expired command |
ConnectConfirm(const TRemConAddress &, TInt)
IMPORT_C TInt | ConnectConfirm | ( | const TRemConAddress & | aAddr, |
| TInt | aError |
| ) | |
Called by a bearer to indicate completion of an outgoing connection request (CRemConBearerPlugin::ConnectRequest).
Parameters
const TRemConAddress & aAddr | The address of the connection in question. |
TInt aError | The success status of the connection establishment. If KErrNone, the connection was established. If non-KErrNone, the connection was not established. |
ConnectIndicate(const TRemConAddress &)
IMPORT_C TInt | ConnectIndicate | ( | const TRemConAddress & | aAddr | ) | |
Called by a bearer when an incoming connection has been established.
Parameters
const TRemConAddress & aAddr | The address of the connection. |
DisconnectConfirm(const TRemConAddress &, TInt)
IMPORT_C void | DisconnectConfirm | ( | const TRemConAddress & | aAddr, |
| TInt | aError |
| ) | |
Called by a bearer to indicate completion of a disconnection request (CRemConBearerPlugin::Disconnect).
Parameters
const TRemConAddress & aAddr | The address of the connection in question. |
TInt aError | The success status of the disconnection. If KErrNone, the disconnection occurred. If non-KErrNone, the connection still exists. |
DisconnectIndicate(const TRemConAddress &)
IMPORT_C void | DisconnectIndicate | ( | const TRemConAddress & | aAddr | ) | |
Called by a bearer when a connection has been disconnected from the remote end. The bearer should only call this function if either (a) ConnectIndicate has already been called for the connection aAddr (and KErrNone returned by RemCon), or (b) ConnectConfirm has been called with KErrNone for the connection aAddr (and KErrNone has been returned by RemCon).
Parameters
const TRemConAddress & aAddr | The RemCon address of the connection. |
InterfaceToBearer(TUid, TUid, TUint, const TDesC8 &, TRemConMessageType, TDes8 &)
Called by a bearer to convert a message from an outer-layer API format to the bearer's format. The bearer observer finds a converter to perform this.
Parameters
TUid aBearerUid | The UID of the bearer. |
TUid aInterfaceUid | The UID of the outer layer API to which the message belongs. |
TUint aOperationId | The operation ID of the message. |
const TDesC8 & aData | The operation-specific data of the message. |
TRemConMessageType aMsgType | The type of the message. |
TDes8 & aBearerData | On success, the message encoded in the bearer's format. |
MrcboDoBearerToInterface(TUid, const TDesC8 &, const TDesC8 &, TUid &, TUint &, TRemConMessageType &, TDes8 &)
MrcboDoCommandExpired(TUint)
void | MrcboDoCommandExpired | ( | TUint | aTransactionId | ) | [private, pure virtual] |
MrcboDoConnectConfirm(const TRemConAddress &, TInt)
TInt
| MrcboDoConnectConfirm | ( | const TRemConAddress & | aAddr, |
| TInt | aError |
| ) | [private, pure virtual] |
Parameters
const TRemConAddress & aAddr | |
TInt aError | |
MrcboDoConnectIndicate(const TRemConAddress &)
TInt
| MrcboDoConnectIndicate | ( | const TRemConAddress & | aAddr | ) | [private, pure virtual] |
Parameters
const TRemConAddress & aAddr | |
MrcboDoDisconnectConfirm(const TRemConAddress &, TInt)
void | MrcboDoDisconnectConfirm | ( | const TRemConAddress & | aAddr, |
| TInt | aError |
| ) | [private, pure virtual] |
Parameters
const TRemConAddress & aAddr | |
TInt aError | |
MrcboDoDisconnectIndicate(const TRemConAddress &)
void | MrcboDoDisconnectIndicate | ( | const TRemConAddress & | aAddr | ) | [private, pure virtual] |
Parameters
const TRemConAddress & aAddr | |
MrcboDoInterfaceToBearer(TUid, TUid, TUint, const TDesC8 &, TRemConMessageType, TDes8 &)
MrcboDoNewCommand(const TRemConAddress &)
TInt
| MrcboDoNewCommand | ( | const TRemConAddress & | aAddr | ) | [private, pure virtual] |
Parameters
const TRemConAddress & aAddr | |
MrcboDoNewCommand(const TRemConAddress &, const TRemConClientId &)
TInt
| MrcboDoNewCommand | ( | const TRemConAddress & | aAddr, |
| const TRemConClientId & | aClient |
| ) | [private, pure virtual] |
MrcboDoNewNotifyCommand(const TRemConAddress &)
TInt
| MrcboDoNewNotifyCommand | ( | const TRemConAddress & | aAddr | ) | [private, pure virtual] |
Parameters
const TRemConAddress & aAddr | |
MrcboDoNewNotifyCommand(const TRemConAddress &, const TRemConClientId &)
TInt
| MrcboDoNewNotifyCommand | ( | const TRemConAddress & | aAddr, |
| const TRemConClientId & | aClient |
| ) | [private, pure virtual] |
MrcboDoNewNotifyResponse(const TRemConAddress &)
TInt
| MrcboDoNewNotifyResponse | ( | const TRemConAddress & | aAddr | ) | [private, pure virtual] |
Parameters
const TRemConAddress & aAddr | |
MrcboDoNewResponse(const TRemConAddress &)
TInt
| MrcboDoNewResponse | ( | const TRemConAddress & | aAddr | ) | [private, pure virtual] |
Parameters
const TRemConAddress & aAddr | |
MrcboDoNewTransactionId()
TUint
| MrcboDoNewTransactionId | ( | ) | [private, pure virtual] |
MrcboDoRegisterLocalAddressedClientObserver(const TUid &)
TInt
| MrcboDoRegisterLocalAddressedClientObserver | ( | const TUid & | aBearerUid | ) | [private, pure virtual] |
MrcboDoSetRemoteAddressedClient(const TUid &, const TRemConClientId &)
void | MrcboDoSetRemoteAddressedClient | ( | const TUid & | aBearerUid, |
| const TRemConClientId & | aId |
| ) | [private, pure virtual] |
MrcboDoSupportedInterfaces(const TRemConClientId &, RArray< TUid > &)
MrcboDoSupportedOperations(const TRemConClientId &, TUid, RArray< TUint > &)
MrcboDoUnregisterLocalAddressedClientObserver(const TUid &)
TInt
| MrcboDoUnregisterLocalAddressedClientObserver | ( | const TUid & | aBearerUid | ) | [private, pure virtual] |
NewCommand(const TRemConAddress &)
IMPORT_C TInt | NewCommand | ( | const TRemConAddress & | aAddr | ) | |
Called when an incoming command from a remote is ready to be picked up by RemCon.
Parameters
const TRemConAddress & aAddr | The address the command came from. |
NewCommand(const TRemConAddress &, const TRemConClientId &)
Called when an incoming command from a remote is ready to be picked up by RemCon.
This overload is provided for the case where the bearer supports command addressing.
Parameters
const TRemConAddress & aAddr | The address the command came from. |
const TRemConClientId & aClient | |
NewNotifyCommand(const TRemConAddress &)
IMPORT_C TInt | NewNotifyCommand | ( | const TRemConAddress & | aAddr | ) | |
Called when an incoming notify command from a remote is ready to be picked up by RemCon. A Notify command is different to a normal command in that it doesn't follow the standard request / response sequence. Instead a notify is registered to retrieve the current state value in an interim response, then when the state has changed relative the interim response a second response is sent containing the new, changed, state.
Depending on the semantics of the bearer protocol it may be able to map its state observation commands to plain RemCon commands, however for a reliable mechanism without polling this NotifyCommand is provided.
Parameters
const TRemConAddress & aAddr | The address the command came from. |
NewNotifyCommand(const TRemConAddress &, const TRemConClientId &)
Called when an incoming notify command from a remote is ready to be picked up by RemCon. A Notify command is different to a normal command in that it doesn't follow the standard request / response sequence. Instead a notify is registered to retrieve the current state value in an interim response, then when the state has changed relative the interim response a second response is sent containing the new, changed, state.
Depending on the semantics of the bearer protocol it may be able to map its state observation commands to plain RemCon commands, however for a reliable mechanism without polling this NotifyCommand is provided.
This overload is provided for the case where the bearer supports command addressing.
Parameters
const TRemConAddress & aAddr | The address the command came from. |
const TRemConClientId & aClient | |
NewNotifyResponse(const TRemConAddress &)
IMPORT_C TInt | NewNotifyResponse | ( | const TRemConAddress & | aAddr | ) | |
Called when an incoming notify response from a remote is ready to be picked up by RemCon.
Parameters
const TRemConAddress & aAddr | The address the response came from. |
NewResponse(const TRemConAddress &)
IMPORT_C TInt | NewResponse | ( | const TRemConAddress & | aAddr | ) | |
Called when an incoming response from a remote is ready to be picked up by RemCon.
Parameters
const TRemConAddress & aAddr | The address the response came from. |
NewTransactionId()
IMPORT_C TUint | NewTransactionId | ( | ) | |
Called by a bearer when a new command has come in. RemCon returns a cookie (a transaction id), guaranteed to be unique, which the bearer may use for its own identification purposes.
RegisterLocalAddressedClientObserver(const TUid &)
IMPORT_C TInt | RegisterLocalAddressedClientObserver | ( | const TUid & | aBearerUid | ) | |
Called by the bearer to indicate it would like to be informed when the locally addressed client changes.
SetRemoteAddressedClient(const TUid &, const TRemConClientId &)
Called by the bearer to inform RemCon that remote user action means that this bearer will now route addressed commands to the specified client. This is valid until either the bearer calls SetRemoteAddressedPlayer again or RemCon calls SetLocalAddressedPlayer.
Parameters
const TUid & aBearerUid | The Uid of this bearer |
const TRemConClientId & aId | The client to which this bearer will route addressed commands. |
SupportedInterfaces(const TRemConClientId &, RArray< TUid > &)
Called by the bearer when it want to retrieve which interfaces are supported by a specific client.
Parameters
const TRemConClientId & aId | A unique identifier for this client |
RArray< TUid > & aUids | An RArray to be populated with the supported UIDs. On return with KErrNone this array is populated with the UIDs of the interfaces which this client supports. Ownership of the RArray remains with the caller. Any existing entries in the array will be removed. |
SupportedOperations(const TRemConClientId &, TUid, RArray< TUint > &)
Called by the bearer when it wants to retrieve which operations within the interface are supported by this client. Note that this information is not available for all interface and client combinations.
Parameters
const TRemConClientId & aId | A unique identifier for this client |
TUid aInterfaceUid | The interface to return the supported operations for |
RArray< TUint > & aOperations | An RArray to be populated with the supported operations. On return with KErrNone this array is populated with the operation ids of each supported operations within the requested interface. Ownership of the RArray remains with the caller. Any existing entries in the array will be removed. |
UnregisterLocalAddressedClientObserver(const TUid &)
IMPORT_C TInt | UnregisterLocalAddressedClientObserver | ( | const TUid & | aBearerUid | ) | |
Called by the bearer to indicate it would no longer like to be informed when the locally addressed client changes.
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.