CHCICommandQItem Class Reference
class CHCICommandQItem : public CBase |
Constructor & Destructor Documentation
CHCICommandQItem(MHCICommandQueueClient &, CHCICommandBase *)
~CHCICommandQItem()
IMPORT_C | ~CHCICommandQItem | ( | ) | |
Member Functions Documentation
CancelCompletionTimer()
void | CancelCompletionTimer | ( | ) | |
Cancels iCompletionTimer.
Client()
Getter for the client to be notified of the progress of the command
Command()
Const getter for the Command encapsulated in the object.
ConstructL(MHCICommandAllocator &)
DetachClient()
Detaches the client callback interface from the command on the queue.
DuplicatedOpcode()
TBool
| DuplicatedOpcode | ( | ) | const |
This isn't exported since only the CHCICmdQController will use the EDuplicatedOpcode flag.
FormatFrame()
Instructs this object to format iCmdFrame with the parameters in iCommand.
Frame()
This isn't exported since only the CHCICmdQController will use the Frame. Getter for the command frame object that is associated with this queue item.
IsInitialisation()
IMPORT_C TBool | IsInitialisation | ( | ) | const |
Return if the command associated with this queue item was added to the command queue as an initialisation command.
IsNormal()
IMPORT_C TBool | IsNormal | ( | ) | const |
Return if the command associated with this queue item is a Normal command, i.e. one that doesn't require a workaround and isn't itself a Child command.
IsParent()
IMPORT_C TBool | IsParent | ( | ) | const |
Return if the command associated with this queue item is a Parent command, i.e. one that has pre and/or post child commands.
IsPostChild()
IMPORT_C TBool | IsPostChild | ( | ) | const |
Return if the command associated with this queue item is a Post-Child command, i.e. one that has Parent command.
IsPreChild()
IMPORT_C TBool | IsPreChild | ( | ) | const |
Return if the command associated with this queue item is a Pre-Child command, i.e. one that has Parent command.
NewL(MHCICommandAllocator &, MHCICommandQueueClient &, CHCICommandBase *)
Static factory method for HCI Command Queue items.
Parameters
MHCICommandAllocator & aCommandAllocator | the HCI commmand frame allocator. |
MHCICommandQueueClient & aCmdProgressRecipient | the HCI event notification client. |
CHCICommandBase * aCommand | the HCI command to be processed. Ownership of the command is transferred to the created HCI Command Queue item object. |
QdpData()
IMPORT_C TAny * | QdpData | ( | ) | const |
Getter for the pointer to the QDP specific data associated with the queue item.
ReceivedCmdStatusEvent()
IMPORT_C TBool | ReceivedCmdStatusEvent | ( | ) | const |
Return if a Command Status event has been received that matches the command associated with this command queue item.
SentCount()
IMPORT_C TUint | SentCount | ( | ) | const |
Return the total number of times the command associated with this queue item has been sent.
SetCommandQId(TUint)
void | SetCommandQId | ( | TUint | aId | ) | |
Parameters
TUint aId | the command queue ID for this object |
SetDuplicatedOpcode(TBool)
void | SetDuplicatedOpcode | ( | TBool | aDuplicatedOpcode | ) | |
This isn't exported since only the CHCICmdQController will use the EDuplicatedOpcode flag.
SetInitialisationCmd()
void | SetInitialisationCmd | ( | ) | |
Marks the command item as being an initialisation command.
SetQdpData(TAny *)
IMPORT_C void | SetQdpData | ( | TAny * | aQdpData | ) | |
Setter for the pointer to the QDP specific data associated with the queue item.
Parameters
TAny * aQdpData | A pointer to some data used by the QDP to be associated with this queue item. |
SetReceivedCmdStatusEvent(TBool)
void | SetReceivedCmdStatusEvent | ( | TBool | aReceivedCmdStatusEvent | ) | |
This isn't exported since only the CHCICmdQController will use the EReceivedCmdStatusEvent flag.
Parameters
TBool aReceivedCmdStatusEvent | |
StartCompletionTimer(TUint, CHCICmdQController &)
Starts iCompletionTimer going.
Parameters
TUint aMilliseconds | the amount of time in milliseconds to run the timer for. |
CHCICmdQController & aController | the object to inform if the timer expires. |
Member Enumerations Documentation
Enum TCommandStateBits
Enumerators
EReceivedCmdStatusEvent = 0x01 |
Indicates that a Command Status Event has been processed for the command
|
EDuplicatedOpcode = 0x02 |
Indicates that a duplicate command has been detected.
|
EInitialisationCmd = 0x04 |
Indicates that the command was added as an Initialisation command.
|
Enum TType
Enumerators
EIndeterminate = 0 |
A CHCICommandQItem is this type until QDP::MhcqdiDoesCommandRequireWorkaround(...) is called on it.
|
ENormal = 1 |
A CHCICommandQItem is this type if QDP::MhcqdiDoesCommandRequireWorkaround(...) returned EFalse for this object.
|
EParent = 2 |
A CHCICommandQItem is this type if QDP::MhcqdiDoesCommandRequireWorkaround(...) returned ETrue for this object.
|
EPreChild = 3 |
A CHCICommandQItem is set to this type after it is returned by QDP::GetPreChild.
|
EPostChild = 4 |
A CHCICommandQItem is set to this type after it is returned by QDP::GetPostChild.
|
Member Data Documentation
CHctlCommandFrame * iCmdFrame
MHCICommandQueueClient * iCmdProgressRecipient
CHCICommandBase * iCommand
TUint
iCommandQId
TUint
| iCommandQId | [private] |
TUint8
iCommandState
This is a bit mask of the possible TCommandStateBits states
CHCICmdQCompletionTimer * iCompletionTimer
The timer runs between when the command is sent and when it completes. If the timeout value given is 0 then no timer will be run.
NB a Command Status event doesn't stop the timer.
TAny * iQdpData
Owned by this class in the sense that we will delete this pointer (after notifying the licensee provided QDP) but this class must not otherwise touch this data. It is to be used only by the licensee provided QDP.
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.