CAVCFrame Class Reference
class CAVCFrame : public CBase |
AVC frame creation and utilities.
Constructor & Destructor Documentation
CAVCFrame(AVC::TFrameType)
Parameters
AVC::TFrameType aFrameType | ECommand if this is a command, EResponse if it's a response. |
~CAVCFrame()
IMPORT_C | ~CAVCFrame | ( | ) | [virtual] |
Member Functions Documentation
Append(const TDesC8 &)
IMPORT_C void | Append | ( | const TDesC8 & | aDes | ) | |
Append data to the AV/C frame.
Parameters
const TDesC8 & aDes | The data to be appended. |
Append(TChar)
IMPORT_C void | Append | ( | TChar | aChar | ) | |
Append data to the AV/C frame.
Parameters
TChar aChar | The data to be appended. |
ButtonAct(AVCPanel::TButtonAction &)
Get the AV/C button action for this frame.
This is only valid for passthrough commands.
ConstructL(AVC::TCType, AVC::TSubunitType, AVC::TSubunitID)
Second phase construction.
This overload is used when an AV/C frame is to be constructed, that is it is probably an outgoing frame.
-
leave
- System wide error code.
ConstructL(const TDesC8 &)
void | ConstructL | ( | const TDesC8 & | aBuffer | ) | [private] |
Second phase construction.
This overload is used when a data buffer should be parsed as an AV/C frame, that is it is probably an incoming frame.
For details of parsing refer to the AV/C digital interface command set specification.
-
leave
- System wide error code.
Parameters
const TDesC8 & aBuffer | A buffer to be parsed as an AV/C frame. |
Data()
IMPORT_C const TDesC8 & | Data | ( | ) | const |
Retrieve the entire AV/C frame.
DataLength()
IMPORT_C TInt | DataLength | ( | ) | const |
Return the length of the data in the AV/C frame
FindExtensionL(const TDesC8 &, TInt &, TInt &)
void | FindExtensionL | ( | const TDesC8 & | aBuffer, |
| TInt & | aSubunitTypeExtensionBytes, |
| TInt & | aSubunitIDExtensionBytes |
| ) | [private, static] |
Find extension bytes for the frame.
-
leave
- System wide error code.
Parameters
const TDesC8 & aBuffer | buffer to be used. |
TInt & aSubunitTypeExtensionBytes | |
TInt & aSubunitIDExtensionBytes | |
FrameType()
Gets the AV/C frame type.
FrameType(const TDesC8 &)
Gets the AV/C frame type.
Parameters
const TDesC8 & aFrame | The frame to get the frame type for. |
NewL(AVC::TFrameType, AVC::TCType, AVC::TSubunitType, AVC::TSubunitID)
Factory function.
This overload should be called when an AV/C frame is to be constructed, that is it is probably an outgoing frame.
-
leave
- System wide error code.
NewL(const TDesC8 &, AVC::TFrameType)
Factory function.
This overload should be used when a data buffer should be parsed as an AV/C frame, that is it is probably an incoming frame.
-
leave
- System wide error code.
Parameters
const TDesC8 & aBuffer | A buffer to be parsed as an AV/C frame. |
AVC::TFrameType aType | ECommand if this is a command, EResponse if it's a response. |
Opcode()
Get the AV/C opcode for this frame.
OpcodeL(const TDesC8 &)
Get the AV/C opcode for this frame.
-
leave
- System wide error code.
Parameters
const TDesC8 & aBuffer | buffer to search. |
OperationId(TUint8 &)
Get the AV/C OperationId for this frame.
This is only valid for passthrough commands.
Parameters
TUint8 & aOpId | On return, the AV/C opcode for this frame. |
SetFrameType(AVC::TFrameType)
Set the AV/C frame type for this frame.
SetType(AVC::TCType)
Set the AV/C CType for this frame.
SubunitID()
Get the AV/C subunit id for this frame.
SubunitType()
Get the AV/C subunit type for this frame.
Type()
Get the AV/C CType for this frame.
operator[](TInt)
IMPORT_C const TUint8 & | operator[] | ( | TInt | aIndex | ) | const |
Retrieve data from the AV/C frame.
-
panic
- If aIndex is outside the frame. DataLength() should be used to check the length of the data segment before using the [] operator.
Parameters
TInt aIndex | The offset of the data element within the data segment of the frame |
Member Data Documentation
AVC::TFrameType
iFrameType
TInt
iSubunitIDExtensionBytes
TInt
| iSubunitIDExtensionBytes | [private] |
TInt
iSubunitTypeExtensionBytes
TInt
| iSubunitTypeExtensionBytes | [private] |
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.