CAVCFrame Class Reference

class CAVCFrame : public CBase

AVC frame creation and utilities.

Inherits from

Constructor & Destructor Documentation

CAVCFrame(AVC::TFrameType)

CAVCFrame(AVC::TFrameTypeaFrameType)[private]

Constructor.

Parameters

AVC::TFrameType aFrameTypeECommand if this is a command, EResponse if it's a response.

~CAVCFrame()

IMPORT_C~CAVCFrame()[virtual]

Destructor.

Member Functions Documentation

Append(const TDesC8 &)

IMPORT_C voidAppend(const TDesC8 &aDes)

Append data to the AV/C frame.

Parameters

const TDesC8 & aDesThe data to be appended.

Append(TChar)

IMPORT_C voidAppend(TCharaChar)

Append data to the AV/C frame.

Parameters

TChar aCharThe data to be appended.

ButtonAct(AVCPanel::TButtonAction &)

IMPORT_C TIntButtonAct(AVCPanel::TButtonAction &aButtonAction)const

Get the AV/C button action for this frame.

This is only valid for passthrough commands.

Parameters

AVCPanel::TButtonAction & aButtonAction

ConstructL(AVC::TCType, AVC::TSubunitType, AVC::TSubunitID)

voidConstructL(AVC::TCTypeaType,
AVC::TSubunitTypeaSubunitType,
AVC::TSubunitIDaSubunitID
)[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.

leave
System wide error code.

Parameters

AVC::TCType aTypeThe AV/C CType for this frame.
AVC::TSubunitType aSubunitTypeThe AV/C subunit type for this frame.
AVC::TSubunitID aSubunitID

ConstructL(const TDesC8 &)

voidConstructL(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 & aBufferA 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 TIntDataLength()const

Return the length of the data in the AV/C frame

FindExtensionL(const TDesC8 &, TInt &, TInt &)

voidFindExtensionL(const TDesC8 &aBuffer,
TInt &aSubunitTypeExtensionBytes,
TInt &aSubunitIDExtensionBytes
)[private, static]

Find extension bytes for the frame.

leave
System wide error code.

Parameters

const TDesC8 & aBufferbuffer to be used.
TInt & aSubunitTypeExtensionBytes
TInt & aSubunitIDExtensionBytes

FrameType()

IMPORT_C AVC::TFrameTypeFrameType()const

Gets the AV/C frame type.

FrameType(const TDesC8 &)

IMPORT_C AVC::TFrameTypeFrameType(const TDesC8 &aFrame)[static]

Gets the AV/C frame type.

Parameters

const TDesC8 & aFrameThe frame to get the frame type for.

NewL(AVC::TFrameType, AVC::TCType, AVC::TSubunitType, AVC::TSubunitID)

IMPORT_C CAVCFrame *NewL(AVC::TFrameTypeaFrameType,
AVC::TCTypeaType,
AVC::TSubunitTypeaSubunitType,
AVC::TSubunitIDaSubunitID
)[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.

leave
System wide error code.

Parameters

AVC::TFrameType aFrameTypeECommand if this is a command, EResponse if it's a response.
AVC::TCType aTypeThe AV/C CType for this frame.
AVC::TSubunitType aSubunitTypeThe AV/C subunit type for this frame.
AVC::TSubunitID aSubunitID

NewL(const TDesC8 &, AVC::TFrameType)

IMPORT_C CAVCFrame *NewL(const TDesC8 &aBuffer,
AVC::TFrameTypeaType
)[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.

leave
System wide error code.

Parameters

const TDesC8 & aBufferA buffer to be parsed as an AV/C frame.
AVC::TFrameType aTypeECommand if this is a command, EResponse if it's a response.

Opcode()

IMPORT_C TUint8Opcode()const

Get the AV/C opcode for this frame.

OpcodeL(const TDesC8 &)

IMPORT_C AVC::TOpcodeOpcodeL(const TDesC8 &aBuffer)[static]

Get the AV/C opcode for this frame.

leave
System wide error code.

Parameters

const TDesC8 & aBufferbuffer to search.

OperationId(TUint8 &)

IMPORT_C TIntOperationId(TUint8 &aOpId)const

Get the AV/C OperationId for this frame.

This is only valid for passthrough commands.

Parameters

TUint8 & aOpIdOn return, the AV/C opcode for this frame.

SetFrameType(AVC::TFrameType)

IMPORT_C voidSetFrameType(AVC::TFrameTypeaFrameType)

Set the AV/C frame type for this frame.

Parameters

AVC::TFrameType aFrameType

SetType(AVC::TCType)

IMPORT_C voidSetType(AVC::TCTypeaType)

Set the AV/C CType for this frame.

Parameters

AVC::TCType aTypeThe AV/C CType to set.

SubunitID()

IMPORT_C AVC::TSubunitIDSubunitID()const

Get the AV/C subunit id for this frame.

SubunitType()

IMPORT_C AVC::TSubunitTypeSubunitType()const

Get the AV/C subunit type for this frame.

Type()

IMPORT_C AVC::TCTypeType()const

Get the AV/C CType for this frame.

operator[](TInt)

IMPORT_C const TUint8 &operator[](TIntaIndex)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 aIndexThe offset of the data element within the data segment of the frame

Member Data Documentation

RBuf8 iBuffer

RBuf8 iBuffer[private]

AVC::TFrameType iFrameType

AVC::TFrameType iFrameType[private]

TInt iSubunitIDExtensionBytes

TInt iSubunitIDExtensionBytes[private]

TInt iSubunitTypeExtensionBytes

TInt iSubunitTypeExtensionBytes[private]