CRemConInterfaceSelector Class Reference
#include
<remconinterfaceselector.h>
Link against: remconinterfacebase.lib
class CRemConInterfaceSelector : public CBase |
Public Member Functions |
---|
| ~CRemConInterfaceSelector() |
void | BulkError(TInt) |
void | BulkReceiveComplete(TUid, TUint, const TDesC8 &) |
void | BulkSessionConnectL() |
IMPORT_C void | ConnectBearer(TRequestStatus &) |
IMPORT_C TInt | ConnectBearerCancel() |
IMPORT_C TBool | ControllerOpened() |
IMPORT_C void | DisconnectBearer(TRequestStatus &) |
IMPORT_C TInt | DisconnectBearerCancel() |
void | Error(TInt) |
IMPORT_C TInt | GetConnections(TSglQue< TRemConAddress > &) |
IMPORT_C void | GoConnectionOrientedL(const TRemConAddress &) |
IMPORT_C void | GoConnectionlessL() |
IMPORT_C CRemConInterfaceSelector * | NewL() |
IMPORT_C void | NotifyConnectionsChange(TRequestStatus &) |
IMPORT_C TInt | NotifyConnectionsChangeCancel() |
IMPORT_C void | OpenControllerL() |
IMPORT_C void | OpenTargetL() |
IMPORT_C void | OpenTargetL(TPlayerType, TPlayerSubType, const TDesC8 &) |
void | ReceiveComplete(TUid, TUint, TRemConMessageSubType, const TRemConAddress &, const TDesC8 &, TRemConClientType) |
IMPORT_C void | RegisterErrorObserver(MRemConErrorObserver *) |
IMPORT_C void | RegisterInterfaceL(CRemConInterfaceBase &) |
void | RegisterInterfaceL(CRemConInterfaceBase &, RRemConInterfaceFeatures &) |
IMPORT_C void | Send(TRequestStatus &, TUid, TUint, TUint &, TRemConMessageType, const TDesC8 &) |
IMPORT_C void | Send(TRequestStatus &, TUid, TUint, TUint &, TRemConMessageType, TRemConMessageSubType, const TDesC8 &) |
IMPORT_C void | SendBulk(TRequestStatus &, TUid, TUint, const TDesC8 &) |
IMPORT_C TInt | SendBulkCancel() |
IMPORT_C TInt | SendBulkUnreliable(TUid, TUint, const TDesC8 &) |
IMPORT_C TInt | SendCancel(TRemConMessageType) |
IMPORT_C void | SendNotify(TRequestStatus &, TUid, TUint, TRemConMessageType, TRemConMessageSubType, const TDesC8 &) |
IMPORT_C TInt | SendUnreliable(TUid, TUint, TRemConMessageType, const TDesC8 &) |
IMPORT_C TInt | SendUnreliable(TUid, TUint, TRemConMessageType, TRemConMessageSubType, const TDesC8 &) |
IMPORT_C TBool | TargetOpened() |
Constructor & Destructor Documentation
~CRemConInterfaceSelector ( )
IMPORT_C | ~CRemConInterfaceSelector | ( | ) | |
Member Function Documentation
BulkError ( TInt )
void | BulkError | ( | TInt | aError | ) | |
Only called internally, by the Active Object which sucks messages out of RemCon Bulk Server. This is called in the case of a session error.
BulkReceiveComplete ( TUid, TUint, const TDesC8 & )
void | BulkReceiveComplete | ( | TUid | aInterfaceUid, |
| TUint | aOperationId, |
| const TDesC8 & | aData |
| ) | |
Only called internally, by the Active Object which sucks messages out of RemCon. Note that the message type is not given- it is interpolated from the type of the session doing the receiving.
Parameter | Description | aInterfaceUid | Interface UID of the new message. |
aOperationId | Operation ID of the new message. |
aData | Data associated with the new message. |
BulkSessionConnectL ( )
void | BulkSessionConnectL | ( | ) | |
Only called internally, by the Active Object which sucks messages out of RemCon (bulk server).
This should be run from the thread in which the bulk interfaces are to run.
ConnectBearer ( TRequestStatus & )
Brings up a bearer-level connection. The controller session must already exist (use OpenControllerL) and be connection-oriented.
Parameter | Description | aStatus | TRequestStatus for asynchronous completion. |
ConnectBearerCancel ( )
IMPORT_C TInt | ConnectBearerCancel | ( | ) | |
Cancels interest in the completion of a ConnectBearer request.
ControllerOpened ( )
IMPORT_C TBool | ControllerOpened | ( | ) | const |
To determine if a controller session has been opened.
Returns: EFalse if no session has been opened, ETrue otherwise.
DisconnectBearer ( TRequestStatus & )
Destroys a bearer-level connection. The controller session must already exist (use OpenControllerL) and be connection-oriented.
DisconnectBearerCancel ( )
IMPORT_C TInt | DisconnectBearerCancel | ( | ) | |
Cancels interest in the completion of a DisconnectBearer request.
Error ( TInt )
Only called internally, by the Active Object which sucks messages out of RemCon. This is called in the case of a session error.
GetConnections ( TSglQue< TRemConAddress > & )
Getter for the current set of connections in the system (not just those associated with this session). The client is responsible for cleaning up aConnections- the addresses will be on the heap.
Parameter | Description | aConnections | A collection of remote addresses, representing all the currently extant connections. |
GoConnectionOrientedL ( const TRemConAddress & )
Makes the controller session (which must already exist- use OpenControllerL) connection-oriented.
Parameter | Description | aConnection | The remote to talk to. |
GoConnectionlessL ( )
IMPORT_C void | GoConnectionlessL | ( | ) | |
Makes the controller session (which must already exist- use OpenControllerL) connectionless.
NewL ( )
Returns: Ownership of a new CRemConInterfaceSelector.
NotifyConnectionsChange ( TRequestStatus & )
Notification for changes in the set of connections.
Parameter | Description | aStatus | TRequestStatus for asynchronous completion. |
NotifyConnectionsChangeCancel ( )
IMPORT_C TInt | NotifyConnectionsChangeCancel | ( | ) | |
Cancels interest in the completion of an outstanding NotifyConnectionsChange operation.
OpenControllerL ( )
IMPORT_C void | OpenControllerL | ( | ) | |
Opens a controller session to RemCon. The session is connectionless until such time as GoConnectionOriented may be called.
- leave
- KErrInUse If a controller session is already open.
OpenTargetL ( )
IMPORT_C void | OpenTargetL | ( | ) | |
Opens a target session to RemCon.
- leave
- KErrInUse If a target session is already open.
OpenTargetL ( TPlayerType, TPlayerSubType, const TDesC8 & )
Opens a target session to RemCon.
- leave
- KErrInUse If a target session is already open.
Opens a target session to RemCon.
If any bulk interfaces have been registered on this interface selector the the thread in which the first bulk interface was created must be ready to run and not blocked waiting for the completion of this function. Failure to do so will lead to deadlock.
-
leave
- KErrInUse If a target session is already open.
Parameter | Description | aPlayerType | The type of player |
aPlayerSubType | The sub-type of the player |
aPlayerName | The name of the player |
ReceiveComplete ( TUid, TUint, TRemConMessageSubType, const TRemConAddress &, const TDesC8 &, TRemConClientType )
Only called internally, by the Active Object which sucks messages out of RemCon. Note that the message type is not given- it is interpolated from the type of the session doing the receiving.
Parameter | Description | aInterfaceUid | Interface UID of the new message. |
aOperationId | Operation ID of the new message. |
aMsgSubType | The message subtype. |
aRemoteAddress | The address of the remote which sent the message. |
aData | Data associated with the new message. |
aType | The type of session which received the message (from which the type of the message can be interpolated). |
RegisterErrorObserver ( MRemConErrorObserver * )
Register an error observer. This is provided to allow the client to discover when an error has occurred passively.
Parameter | Description | aObserver | An error observer to be notified on a passive error. NULL to stop receiving notifications. |
RegisterInterfaceL ( CRemConInterfaceBase & )
Register the interface with the selector. This is called by the interface's BaseConstructL. Takes ownership of aInterface. This function is not to be called outside of remconinterfacebase.dll. It is available for compatibility with previous versions, but it is intended to be called only by CRemConInterfaceBase::BaseConstructL. CRemConInterfaceBase-derived classes should indirectly perform a RegisterInterfaceL, by calling CRemConInterfaceBase::BaseConstructL from their construction functions.
Parameter | Description | aInterface | The interface. |
RegisterInterfaceL ( CRemConInterfaceBase &, RRemConInterfaceFeatures & )
Register the interface with the selector. This is called by the interface's BaseConstructL. Takes ownership of aInterface. This function is not to be called outside of remconinterfacebase.dll. It is available for compatibility with previous versions, but it is intended to be called only by CRemConInterfaceBase::BaseConstructL. CRemConInterfaceBase-derived classes should indirectly perform a RegisterInterfaceL, by calling CRemConInterfaceBase::BaseConstructL from their construction functions.
Parameter | Description | aInterface | The interface. |
aRemConInterfaceFeatures | The operation IDs of the interface. Ownership is retained by the caller. Any necessary data will be copied by the interface selector. |
Send ( TRequestStatus &, TUid, TUint, TUint &, TRemConMessageType, const TDesC8 & )
Sends a message to the remote device(s). There should be only one command and response outstanding at any one time. Send cannot be called again until aStatus is completed.
- panic
- RemConClient 4 If a send is already outstanding
Parameter | Description | aStatus | TRequestStatus for asynchronous completion. |
aInterfaceUid | The UID of the concrete (outer-layer) interface sending the message. |
aOperationId | The interface-specific operation identifier. |
aNumRemotes | On success, the number of remotes the message was successfully sent to. |
aMsgType | Whether the message is a command or a response. |
aData | Any associated message data in interface-specific format. |
Send ( TRequestStatus &, TUid, TUint, TUint &, TRemConMessageType, TRemConMessageSubType, const TDesC8 & )
Sends a message to the remote device(s).
Parameter | Description | aStatus | TRequestStatus for asynchronous completion. |
aInterfaceUid | The UID of the concrete (outer-layer) interface sending the message. |
aOperationId | The interface-specific operation identifier. |
aNumRemotes | On success, the number of remotes the message was successfully sent to. |
aMsgType | Whether the message is a command or a response. |
aMsgSubType | The subtype of the command of response |
aData | Any associated message data in interface-specific format. |
SendBulk ( TRequestStatus &, TUid, TUint, const TDesC8 & )
This method is for internal sub-system use only and should be not be used otherwise. Sends a message to the remote device(s) through the bulk path. There should be only one response outstanding at any one time. Send cannot be called again until aStatus is completed.
- panic
- RemConClient 4 If a send is already outstanding
Parameter | Description | aStatus | TRequestStatus for asynchronous completion. |
aInterfaceUid | The UID of the concrete (outer-layer) interface sending the message. |
aOperationId | The interface-specific operation identifier. |
aData | Any associated message data in interface-specific format. |
SendBulkCancel ( )
IMPORT_C TInt | SendBulkCancel | ( | ) | |
This method is for internal sub-system use only and should be not be used otherwise. Cancels interest in the completion of a BulkSend request.
SendBulkUnreliable ( TUid, TUint, const TDesC8 & )
This method is for internal sub-system use only and should be not be used otherwise. Sends a message to the remote device(s) through the bulk path, without waiting for the send to complete.
Parameter | Description | aInterfaceUid | The UID of the concrete (outer-layer) interface sending the message. |
aOperationId | The interface-specific operation identifier. |
aData | Any associated message data in interface-specific format. |
SendCancel ( TRemConMessageType )
Cancels interest in the completion of a Send request.
Parameter | Description | aMsgType | The type of the message, the completion of the send of which we are not interested in. This is needed because a single CRemConInterfaceSelector may have two sends outstanding at once, one on a controller session and another on a target session. |
SendNotify ( TRequestStatus &, TUid, TUint, TRemConMessageType, TRemConMessageSubType, const TDesC8 & )
SendUnreliable ( TUid, TUint, TRemConMessageType, const TDesC8 & )
This method is for internal sub-system use only and should be not be used otherwise. Sends a message to the remote device(s), without waiting for the send to complete
Parameter | Description | aInterfaceUid | The UID of the concrete (outer-layer) interface sending the message. |
aOperationId | The interface-specific operation identifier. |
aMsgType | Whether the message is a command or a response. |
aData | Any associated message data in interface-specific format. |
SendUnreliable ( TUid, TUint, TRemConMessageType, TRemConMessageSubType, const TDesC8 & )
This method is for internal sub-system use only and should be not be used otherwise. Sends a message to the remote device(s), without waiting for the send to complete
Parameter | Description | aInterfaceUid | The UID of the concrete (outer-layer) interface sending the message. |
aOperationId | The interface-specific operation identifier. |
aMsgType | Whether the message is a command or a response. |
aMsgSubType | The subtype of the command of response |
aData | Any associated message data in interface-specific format. |
TargetOpened ( )
IMPORT_C TBool | TargetOpened | ( | ) | const |
To determine if a target session has been opened.
Returns: EFalse if no session has been opened, ETrue otherwise.