| class CAVCFrame : public CBase |
AVC frame creation and utilities.
| Public Member Functions | |
|---|---|
| ~CAVCFrame () | |
| IMPORT_C void | Append (const TDesC8 &) |
| IMPORT_C void | Append ( TChar ) |
| IMPORT_C TInt | ButtonAct ( AVCPanel::TButtonAction &) |
| IMPORT_C const TDesC8 & | Data () |
| IMPORT_C TInt | DataLength () |
| IMPORT_C AVC::TFrameType | FrameType () |
| IMPORT_C AVC::TFrameType | FrameType (const TDesC8 &) |
| IMPORT_C CAVCFrame * | NewL ( AVC::TFrameType , AVC::TCType , AVC::TSubunitType , AVC::TSubunitID ) |
| IMPORT_C CAVCFrame * | NewL (const TDesC8 &, AVC::TFrameType ) |
| IMPORT_C TUint8 | Opcode () |
| IMPORT_C AVC::TOpcode | OpcodeL (const TDesC8 &) |
| IMPORT_C TInt | OperationId ( TUint8 &) |
| IMPORT_C void | SetFrameType ( AVC::TFrameType ) |
| IMPORT_C void | SetType ( AVC::TCType ) |
| IMPORT_C AVC::TSubunitID | SubunitID () |
| IMPORT_C AVC::TSubunitType | SubunitType () |
| IMPORT_C AVC::TCType | Type () |
| IMPORT_C const TUint8 & | operator[] ( TInt ) |
| Private Member Functions | |
|---|---|
| CAVCFrame ( AVC::TFrameType ) | |
| void | ConstructL ( AVC::TCType , AVC::TSubunitType , AVC::TSubunitID ) |
| void | ConstructL (const TDesC8 &) |
| void | FindExtensionL (const TDesC8 &, TInt &, TInt &) |
| Private Attributes | |
|---|---|
| RBuf8 | iBuffer |
| AVC::TFrameType | iFrameType |
| TInt | iSubunitIDExtensionBytes |
| TInt | iSubunitTypeExtensionBytes |
| CAVCFrame | ( | AVC::TFrameType | aFrameType | ) | [private] |
Constructor.
| AVC::TFrameType aFrameType | ECommand if this is a command, EResponse if it's a response. |
| IMPORT_C void | Append | ( | const TDesC8 & | aDes | ) |
Append data to the AV/C frame.
| const TDesC8 & aDes | The data to be appended. |
| IMPORT_C void | Append | ( | TChar | aChar | ) |
Append data to the AV/C frame.
| TChar aChar | The data to be appended. |
| IMPORT_C TInt | ButtonAct | ( | AVCPanel::TButtonAction & | aButtonAction | ) | const |
Get the AV/C button action for this frame.
This is only valid for passthrough commands.
| AVCPanel::TButtonAction & aButtonAction |
| void | ConstructL | ( | AVC::TCType | aType, |
| AVC::TSubunitType | aSubunitType, | |||
| AVC::TSubunitID | aSubunitID | |||
| ) | [private] | |||
Second phase construction.
This overload is used when an AV/C frame is to be constructed, that is it is probably an outgoing frame.
| AVC::TCType aType | The AV/C CType for this frame. |
| AVC::TSubunitType aSubunitType | The AV/C subunit type for this frame. |
| AVC::TSubunitID aSubunitID |
| 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.
| const TDesC8 & aBuffer | A buffer to be parsed as an AV/C frame. |
| void | FindExtensionL | ( | const TDesC8 & | aBuffer, |
| TInt & | aSubunitTypeExtensionBytes, | |||
| TInt & | aSubunitIDExtensionBytes | |||
| ) | [private, static] | |||
Find extension bytes for the frame.
| IMPORT_C AVC::TFrameType | FrameType | ( | const TDesC8 & | aFrame | ) | [static] |
Gets the AV/C frame type.
| const TDesC8 & aFrame | The frame to get the frame type for. |
| IMPORT_C CAVCFrame * | NewL | ( | AVC::TFrameType | aFrameType, |
| AVC::TCType | aType, | |||
| AVC::TSubunitType | aSubunitType, | |||
| AVC::TSubunitID | aSubunitID | |||
| ) | [static] | |||
Factory function.
This overload should be called when an AV/C frame is to be constructed, that is it is probably an outgoing frame.
| AVC::TFrameType aFrameType | ECommand if this is a command, EResponse if it's a response. |
| AVC::TCType aType | The AV/C CType for this frame. |
| AVC::TSubunitType aSubunitType | The AV/C subunit type for this frame. |
| AVC::TSubunitID aSubunitID |
| IMPORT_C CAVCFrame * | NewL | ( | const TDesC8 & | aBuffer, |
| AVC::TFrameType | aType | |||
| ) | [static] | |||
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.
| 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. |
| IMPORT_C AVC::TOpcode | OpcodeL | ( | const TDesC8 & | aBuffer | ) | [static] |
Get the AV/C opcode for this frame.
| const TDesC8 & aBuffer | buffer to search. |
| IMPORT_C TInt | OperationId | ( | TUint8 & | aOpId | ) | const |
Get the AV/C OperationId for this frame.
This is only valid for passthrough commands.
| TUint8 & aOpId | On return, the AV/C opcode for this frame. |
| IMPORT_C void | SetFrameType | ( | AVC::TFrameType | aFrameType | ) |
Set the AV/C frame type for this frame.
| AVC::TFrameType aFrameType |
| IMPORT_C void | SetType | ( | AVC::TCType | aType | ) |
Set the AV/C CType for this frame.
| AVC::TCType aType | The AV/C CType to set. |
| IMPORT_C AVC::TSubunitType | SubunitType | ( | ) | const |
Get the AV/C subunit type for this frame.
| IMPORT_C const TUint8 & | operator[] | ( | TInt | aIndex | ) | const |
Retrieve data from the AV/C frame.
| TInt aIndex | The offset of the data element within the data segment of the frame |
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.