#include <remconinterfaceselector.h>
Link against: remconinterfacebase.lib
class CRemConInterfaceSelector : public CBase |
CRemConInterfaceSelector is only instantiable via its NewL function. It is not derivable.
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.
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.
Parameters | |
---|---|
aInterfaceUid | Interface UID of the new message. |
aOperationId | Operation ID of the new message. |
aData | Data associated with the new message. |
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.
IMPORT_C void | ConnectBearer | ( | TRequestStatus & | aStatus | ) |
Brings up a bearer-level connection. The controller session must already exist (use OpenControllerL) and be connection-oriented.
Parameters | |
---|---|
aStatus | TRequestStatus for asynchronous completion. |
IMPORT_C TInt | ConnectBearerCancel | ( | ) |
Cancels interest in the completion of a ConnectBearer request.
IMPORT_C TBool | ControllerOpened | ( | ) | const |
To determine if a controller session has been opened.
IMPORT_C void | DisconnectBearer | ( | TRequestStatus & | aStat | ) |
Destroys a bearer-level connection. The controller session must already exist (use OpenControllerL) and be connection-oriented.
IMPORT_C TInt | DisconnectBearerCancel | ( | ) |
Cancels interest in the completion of a DisconnectBearer request.
void | Error | ( | TInt | aError | ) |
Only called internally, by the Active Object which sucks messages out of RemCon. This is called in the case of a session error.
IMPORT_C TInt | GetConnections | ( | TSglQue< TRemConAddress > & | aConnections | ) |
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.
Parameters | |
---|---|
aConnections | A collection of remote addresses, representing all the currently extant connections. |
IMPORT_C void | GoConnectionOrientedL | ( | const TRemConAddress & | aConnection | ) |
Makes the controller session (which must already exist- use OpenControllerL) connection-oriented.
Parameters | |
---|---|
aConnection | The remote to talk to. |
IMPORT_C void | GoConnectionlessL | ( | ) |
Makes the controller session (which must already exist- use OpenControllerL) connectionless.
IMPORT_C CRemConInterfaceSelector * | NewL | ( | ) | [static] |
Factory method.
IMPORT_C void | NotifyConnectionsChange | ( | TRequestStatus & | aStatus | ) |
Notification for changes in the set of connections.
Parameters | |
---|---|
aStatus | TRequestStatus for asynchronous completion. |
IMPORT_C TInt | NotifyConnectionsChangeCancel | ( | ) |
Cancels interest in the completion of an outstanding NotifyConnectionsChange operation.
IMPORT_C void | OpenControllerL | ( | ) |
Leave Codes | |
---|---|
KErrInUse | If a controller session is already open. |
IMPORT_C void | OpenTargetL | ( | ) |
Leave Codes | |
---|---|
KErrInUse | If a target session is already open. |
IMPORT_C void | OpenTargetL | ( | TPlayerType | aPlayerType, |
TPlayerSubType | aPlayerSubType, | |||
const TDesC8 & | aPlayerName | |||
) |
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.
Parameters | |
---|---|
aPlayerType | The type of player |
aPlayerSubType | The sub-type of the player |
aPlayerName | The name of the player |
Leave Codes | |
---|---|
KErrInUse | If a target session is already open. |
KErrInUse | If a target session is already open. |
void | ReceiveComplete | ( | TUid | aInterfaceUid, |
TUint | aOperationId, | |||
TRemConMessageSubType | aMsgSubType, | |||
const TRemConAddress & | aRemoteAddress, | |||
const TDesC8 & | aData, | |||
TRemConClientType | aType | |||
) |
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.
Parameters | |
---|---|
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). |
IMPORT_C void | RegisterErrorObserver | ( | MRemConErrorObserver * | aObserver | ) |
Register an error observer. This is provided to allow the client to discover when an error has occurred passively.
Parameters | |
---|---|
aObserver | An error observer to be notified on a passive error. NULL to stop receiving notifications. |
IMPORT_C void | RegisterInterfaceL | ( | CRemConInterfaceBase & | aInterface | ) |
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.
Parameters | |
---|---|
aInterface | The interface. |
void | RegisterInterfaceL | ( | CRemConInterfaceBase & | aInterface, |
RRemConInterfaceFeatures & | aRemConInterfaceFeatures | |||
) |
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.
Parameters | |
---|---|
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. |
IMPORT_C void | Send | ( | TRequestStatus & | aStatus, |
TUid | aInterfaceUid, | |||
TUint | aOperationId, | |||
TUint & | aNumRemotes, | |||
TRemConMessageType | aMsgType, | |||
const TDesC8 & | aData = KNullDesC8() | |||
) |
Parameters | |
---|---|
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. |
Panic Codes | |
---|---|
RemConClient | 4 If a send is already outstanding |
IMPORT_C void | Send | ( | TRequestStatus & | aStatus, |
TUid | aInterfaceUid, | |||
TUint | aOperationId, | |||
TUint & | aNumRemotes, | |||
TRemConMessageType | aMsgType, | |||
TRemConMessageSubType | aMsgSubType, | |||
const TDesC8 & | aData = KNullDesC8() | |||
) |
Sends a message to the remote device(s).
Parameters | |
---|---|
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. |
IMPORT_C void | SendBulk | ( | TRequestStatus & | aStatus, |
TUid | aInterfaceUid, | |||
TUint | aOperationId, | |||
const TDesC8 & | aData = KNullDesC8() | |||
) |
Parameters | |
---|---|
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. |
Panic Codes | |
---|---|
RemConClient | 4 If a send is already outstanding |
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.
IMPORT_C TInt | SendBulkUnreliable | ( | TUid | aInterfaceUid, |
TUint | aOperationId, | |||
const TDesC8 & | aData = KNullDesC8() | |||
) |
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.
Parameters | |
---|---|
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. |
IMPORT_C TInt | SendCancel | ( | TRemConMessageType | aMsgType | ) |
Cancels interest in the completion of a Send request.
Parameters | |
---|---|
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. |
IMPORT_C void | SendNotify | ( | TRequestStatus & | aStatus, |
TUid | aInterfaceUid, | |||
TUint | aOperationId, | |||
TRemConMessageType | aMsgType, | |||
TRemConMessageSubType | aMsgSubType, | |||
const TDesC8 & | aData = KNullDesC8() | |||
) |
IMPORT_C TInt | SendUnreliable | ( | TUid | aInterfaceUid, |
TUint | aOperationId, | |||
TRemConMessageType | aMsgType, | |||
const TDesC8 & | aData = KNullDesC8() | |||
) |
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
Parameters | |
---|---|
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. |
IMPORT_C TInt | SendUnreliable | ( | TUid | aInterfaceUid, |
TUint | aOperationId, | |||
TRemConMessageType | aMsgType, | |||
TRemConMessageSubType | aMsgSubType, | |||
const TDesC8 & | aData = KNullDesC8() | |||
) |
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
Parameters | |
---|---|
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. |
IMPORT_C TBool | TargetOpened | ( | ) | const |
To determine if a target session has been opened.