H323_G726_Capability Class Reference

#include <g726codec.h>

Inheritance diagram for H323_G726_Capability:

H323NonStandardAudioCapability H323AudioCapability H323NonStandardCapabilityInfo H323RealTimeCapability H323Capability List of all members.

Public Types

 e_40k
 e_32k
 e_24k
 e_16k
 NumSpeeds
enum  Speeds {
  e_40k, e_32k, e_24k, e_16k,
  NumSpeeds
}

Public Member Functions

Construction
 H323_G726_Capability (const H323EndPoint &endpoint, Speeds speed)
Overrides from class PObject
virtual PObject * Clone () const
Identification functions
virtual PString GetFormatName () const
Protocol manipulation
virtual BOOL OnSendingPDU (H245_AudioCapability &pdu, unsigned packetSize) const
virtual BOOL OnReceivedPDU (const H245_AudioCapability &pdu, unsigned &packetSize)

Protected Attributes

Speeds speed

Detailed Description

This class describes the G726 codec capability.


Member Enumeration Documentation

enum H323_G726_Capability::Speeds

Enumerator:
e_40k 
e_32k 
e_24k 
e_16k 
NumSpeeds 


Constructor & Destructor Documentation

H323_G726_Capability::H323_G726_Capability ( const H323EndPoint endpoint,
Speeds  speed 
)

Create a new G.726 capability.

Parameters:
endpoint  Endpoint to get NonStandardInfo from.
speed  Speed of encoding


Member Function Documentation

virtual PObject* H323_G726_Capability::Clone (  )  const [virtual]

Create a copy of the object.

virtual PString H323_G726_Capability::GetFormatName (  )  const [virtual]

Get the name of the media data format this class represents.

Implements H323Capability.

virtual BOOL H323_G726_Capability::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.

Parameters:
pdu  PDU to get information from
packetSize  Packet size to use in capability

Reimplemented from H323NonStandardAudioCapability.

virtual BOOL H323_G726_Capability::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.

Parameters:
pdu  PDU to set information on
packetSize  Packet size to use in capability

Reimplemented from H323NonStandardAudioCapability.


Member Data Documentation

Speeds H323_G726_Capability::speed [protected]


The documentation for this class was generated from the following file:
Generated on Mon Sep 25 16:21:27 2006 for OPAL by  doxygen 1.4.7