MHCICommandQueueClient Class Reference

class MHCICommandQueueClient

Mixin for the API to receive notification of HCI events received by the command queue.

Public Member Functions
voidMhcqcCommandErrored(TInt, const CHCICommandBase *)
voidMhcqcCommandEventReceived(const THCIEventBase &, const CHCICommandBase *)

Member Functions Documentation

MhcqcCommandErrored(TInt, const CHCICommandBase *)

voidMhcqcCommandErrored(TIntaErrorCode,
const CHCICommandBase *aCommand
)[pure virtual]
Invoked by the command queue to notify observers that a command has failed with an error. This could be caused by:
  • the command timing out before receiving a response from the controller

  • the QDP rejecting the command

Parameters

TInt aErrorCodeThe error code with which the command failed.
const CHCICommandBase * aCommand

MhcqcCommandEventReceived(const THCIEventBase &, const CHCICommandBase *)

voidMhcqcCommandEventReceived(const THCIEventBase &aEvent,
const CHCICommandBase *aRelatedCommand
)[pure virtual]

Invoked by the command queue to notify observers that a HCI event has been received, and what command item has caused (or is associated with) the event. This method will be called for all events received even if they convey a HCI error condition.

Parameters

const THCIEventBase & aEventThe event that has been received.
const CHCICommandBase * aRelatedCommandThe command that is associated with the event, this can be NULL for events that cannot be matched to a command.