This class contains all of the capabilities and their combinations
![]() | SetSize (PINDEX newSize) Set the new size of the table, internal use only. |
![]() | Construction |
![]() | OVerrides from class PObject |
![]() | Operations |
This class contains all of the capabilities and their combinations
If descriptorNum is P_MAX_INDEX, the the next available index in the
array of descriptors is used. Similarly if simultaneous is P_MAX_INDEX
the the next available SimultaneousCapabilitySet is used. The return
value is the index used for the new entry. Note if both are P_MAX_INDEX
then the return value is the descriptor index as the simultaneous index
must be zero. Note that the capability specified here is automatically added to the
capability table using the AddCapability() function. A specific
instance of a capability is only ever added once, so multiple
SetCapability() calls with the same H323Capability pointer will only
add that capability once.
If the specific instance of the capability is already in the table, it
is not added again. Ther can be multiple instances of the same
capability class however.
Returns the copy that is put in the table.
Returns:
NULL if no capability meeting the criteria was found
The user should be carefull of using short strings such as "G"! The direction parameter can further refine the search for specific
receive or transmit capabilities. The default value of e_Unknown will
wildcard that field. Returns:
NULL if no capability meeting the criteria was found
Returns:
NULL if no capability meeting the criteria was found
Returns:
NULL if no capability meeting the criteria was found
Returns:
NULL if no capability meeting the criteria was found
Returns:
NULL if no capability meeting the criteria was found
Returns:
NULL if no capability meeting the criteria was found
Returns:
NULL if no capability meeting the criteria was found
The string matching rules are as for the FindCapability() function.
Construction
H323Capabilities()
H323Capabilities( const H323Connection & connection, const H245_TerminalCapabilitySet & pdu )
pdu - PDU to convert to a capability set. H323Capabilities( const H323Capabilities & original )
H323Capabilities& operator=( const H323Capabilities & original )
OVerrides from class PObject
Operations
PINDEX GetSize() const
H323Capability& operator[](PINDEX i) const
PINDEX SetCapability( PINDEX descriptorNum, PINDEX simultaneous, H323Capability * cap )
simultaneous - The member of the SimultaneousCapabilitySet to add
cap - New capability specificationPINDEX AddAllCapabilities( H323EndPoint & ep, PINDEX descriptorNum, PINDEX simultaneous, const PString & name )
descriptorNum - The member of the capabilityDescriptor to add
simultaneous - The member of the SimultaneousCapabilitySet to add
name - New capabilities name, if using "known" one.void Add( H323Capability * capability )
H323Capability* Copy( const H323Capability & capability )
void Remove( H323Capability * capability )
void Remove( const PString & formatName )
void Remove( const PStringArray & formatNames )
void RemoveAll()
H323Capability* FindCapability( unsigned capabilityNumber ) const
H323Capability* FindCapability( const PString & formatName, H323Capability::CapabilityDirection direction = H323Capability::e_Unknown ) const
direction - Optional direction to include into search criteriaH323Capability* FindCapability( H323Capability::CapabilityDirection direction ) const
H323Capability* FindCapability( const H323Capability & capability ) const
H323Capability* FindCapability( const H245_Capability & cap ) const
H323Capability* FindCapability( const H245_DataType & dataType ) const
H323Capability* FindCapability( H323Capability::MainTypes mainType, const PASN_Choice & subTypePDU, unsigned nonStandardTag ) const
subTypePDU - Sub-type info
nonStandardTag - NOn-standard tag ID for sub-typeH323Capability* FindCapability( H323Capability::MainTypes mainType, unsigned subType = UINT_MAX ) const
subType - Sub-type to find (UINT_MAX=ignore)void BuildPDU( H245_TerminalCapabilitySet & pdu ) const
BOOL Merge( const H323Capabilities & newCaps )
void Reorder( const PStringArray & preferenceOrder )
BOOL IsAllowed( const H323Capability & capability )
BOOL IsAllowed( unsigned capabilityNumber )
BOOL IsAllowed( const H323Capability & capability1, const H323Capability & capability2 )
BOOL IsAllowed( unsigned capabilityNumber1, unsigned capabilityNumber2 )
Alphabetic index HTML hierarchy of classes or Java