#include <lid.h>
Public Member Functions | |
Construction | |
H323_LIDCapability (const OpalMediaFormat &mediaFormat) | |
Overrides from class PObject | |
Comparison | Compare (const PObject &obj) const |
virtual PObject * | Clone () const |
virtual PString | GetFormatName () const |
Identification functions | |
virtual unsigned | GetSubType () const |
Protocol manipulation | |
virtual BOOL | OnSendingPDU (H245_AudioCapability &pdu, unsigned packetSize) const |
virtual BOOL | OnReceivedPDU (const H245_AudioCapability &pdu, unsigned &packetSize) |
Protected Attributes | |
OpalMediaFormat | mediaFormat |
PINDEX | codecTableIndex |
Operations | |
virtual H323Codec * | CreateCodec (H323Codec::Direction direction) const |
BOOL | IsValid () const |
static void | AddAllCapabilities (const OpalLineInterfaceDevice &device, H323Capabilities &capabilities, PINDEX descriptorNum, PINDEX simultaneous) |
H323_LIDCapability::H323_LIDCapability | ( | const OpalMediaFormat & | mediaFormat | ) |
Create a new capability.
mediaFormat | RTP codec type for capability |
static void H323_LIDCapability::AddAllCapabilities | ( | const OpalLineInterfaceDevice & | device, | |
H323Capabilities & | capabilities, | |||
PINDEX | descriptorNum, | |||
PINDEX | simultaneous | |||
) | [static] |
Add all of the capabilities that a LID is capable of.
device | Device to get codecs from | |
capabilities | Table to add capabilities to | |
descriptorNum | The member of the capabilityDescriptor to add | |
simultaneous | The member of the SimultaneousCapabilitySet to add |
virtual PObject* H323_LIDCapability::Clone | ( | ) | const [virtual] |
Create a copy of the object.
Comparison H323_LIDCapability::Compare | ( | const PObject & | obj | ) | const |
Compare the object with another of the same class.
Reimplemented from H323Capability.
virtual H323Codec* H323_LIDCapability::CreateCodec | ( | H323Codec::Direction | direction | ) | const [virtual] |
Create the codec instance, allocating resources as required.
direction | Direction in which this instance runs |
Implements H323Capability.
virtual PString H323_LIDCapability::GetFormatName | ( | ) | const [virtual] |
Get the name of the media data format this class represents.
Implements H323Capability.
virtual unsigned H323_LIDCapability::GetSubType | ( | ) | const [virtual] |
Get the sub-type of the capability. This is a code dependent on the main type of the capability.
This returns H245_AudioCapability::e_nonStandard.
Implements H323Capability.
BOOL H323_LIDCapability::IsValid | ( | ) | const |
Determine if the codec specified for the object is valid.
virtual BOOL H323_LIDCapability::OnReceivedPDU | ( | const H245_AudioCapability & | pdu, | |
unsigned & | packetSize | |||
) | [virtual] |
This function is called whenever and incoming TerminalCapabilitySet or OpenLogicalChannel PDU has been used to construct the control channel. It allows the capability to set from the PDU fields, information in members specific to the class.
The default behaviour gets the data rate field from the PDU.
pdu | PDU to get information from | |
packetSize | Packet size to use in capability |
Reimplemented from H323AudioCapability.
virtual BOOL H323_LIDCapability::OnSendingPDU | ( | H245_AudioCapability & | pdu, | |
unsigned | packetSize | |||
) | const [virtual] |
This function is called whenever and outgoing TerminalCapabilitySet or OpenLogicalChannel PDU is being constructed for the control channel. It allows the capability to set the PDU fields from information in members specific to the class.
The default behaviour sets the data rate field in the PDU.
pdu | PDU to set information on | |
packetSize | Packet size to use in capability |
Reimplemented from H323AudioCapability.
PINDEX H323_LIDCapability::codecTableIndex [protected] |
OpalMediaFormat H323_LIDCapability::mediaFormat [protected] |