14 #ifndef _SdpMediaLine_h_    15 #define _SdpMediaLine_h_    21 #include <utl/UtlInt.h>    22 #include <utl/UtlString.h>    23 #include <utl/UtlCopyableSortedList.h>    24 #include <utl/UtlCopyableContainable.h>    25 #include <utl/UtlCopyableSList.h>    89                     const char * address = 0, 
    90                     unsigned int port = 0,
    91                     unsigned int multicastIpV4Ttl=0) :
    97       UtlContainableType 
getContainableType()
 const { 
static char type[] = 
"SdpConnection"; 
return type;}
    98       unsigned hash()
 const { 
return directHash(); }
    99       int compareTo(UtlContainable 
const *)
 const { 
return 0; } 
   206             mKeyMethod(keyMethod), mKeyValue(keyValue), mSrtpLifetime(srtpLifetime), mSrtpMkiValue(srtpMkiValue), mSrtpMkiLength(srtpMkiLength) {}
   208             mKeyMethod(rhs.mKeyMethod), mKeyValue(rhs.mKeyValue), mSrtpLifetime(rhs.mSrtpLifetime), mSrtpMkiValue(rhs.mSrtpMkiValue), mSrtpMkiLength(rhs.mSrtpMkiLength) {}
   211          UtlContainableType 
getContainableType()
 const { 
static char type[] = 
"SdpCryptoKeyParam"; 
return type;}
   212          unsigned hash()
 const { 
return directHash(); }
   213          int compareTo(UtlContainable 
const *)
 const { 
return 0; } 
   216          void setKeyMethod(SdpCryptoKeyMethod keyMethod) { mKeyMethod = keyMethod; }
   246       unsigned hash()
 const { 
return directHash(); }
   247       int compareTo(UtlContainable 
const *)
 const { 
return 0; } 
   252       void setTag(
unsigned int tag) { mTag = tag; }
   253       unsigned int getTag()
 const { 
return mTag; }
   255       void setSuite(SdpCryptoSuiteType suite) { mSuite = suite; }
   256       SdpCryptoSuiteType 
getSuite()
 const { 
return mSuite; }
   258       void addCryptoKeyParam(SdpCryptoKeyMethod keyMethod, 
const char * keyValue, 
unsigned int srtpLifetime=0, 
unsigned int srtpMkiValue=0, 
unsigned int srtpMkiLength=0)
   259       { addCryptoKeyParam(
new SdpCryptoKeyParam(keyMethod, keyValue, srtpLifetime, srtpMkiValue, srtpMkiLength)); }
   264       void setSrtpKdr(
unsigned int srtpKdr) { mSrtpKdr = srtpKdr; }
   276       void setSrtpFecOrder(SdpCryptoSrtpFecOrderType srtpFecOrder) { mSrtpFecOrder = srtpFecOrder; }
   278       static SdpCryptoSrtpFecOrderType getSrtpFecOrderFromString(
const char * order);
   280       void setSrtpFecKey(SdpCryptoKeyMethod keyMethod, 
const char * keyValue, 
unsigned int srtpLifetime=0, 
unsigned int srtpMkiValue=0, 
unsigned int srtpMkiLength=0) 
   281       { mSrtpFecKey.setKeyMethod(keyMethod); mSrtpFecKey.setKeyValue(keyValue); mSrtpFecKey.setSrtpLifetime(srtpLifetime); 
   282         mSrtpFecKey.setSrtpMkiValue(srtpMkiValue); mSrtpFecKey.setSrtpMkiLength(srtpMkiLength); }
   285       void setSrtpWsh(
unsigned int srtpWsh) { mSrtpWsh = srtpWsh; }
   364       SdpPreCondition(SdpPreConditionType type, SdpPreConditionStatusType status, SdpPreConditionDirectionType direction) :
   365              mType(type), mStatus(status), 
mDirection(direction) {}
   370       UtlContainableType 
getContainableType()
 const { 
static char type[] = 
"SdpPreCondition"; 
return type;}
   371       unsigned hash()
 const { 
return directHash(); }
   372       int compareTo(UtlContainable 
const *)
 const { 
return 0; } 
   376       void setType(SdpPreConditionType type) { mType = type; }
   377       SdpPreConditionType 
getType()
 const { 
return mType; }
   379       void setStatus(SdpPreConditionStatusType status) { mStatus = status; }
   380       SdpPreConditionStatusType 
getStatus()
 const { 
return mStatus; }
   394       SdpPreConditionDesiredStatus(SdpPreConditionType type, SdpPreConditionStrengthType strength, SdpPreConditionStatusType status, SdpPreConditionDirectionType direction) :
   400       UtlContainableType 
getContainableType()
 const { 
static char type[] = 
"SdpPreConditionDesiredStatus"; 
return type;}
   404       void setStrength(SdpPreConditionStrengthType strength) { mStrength = strength; }
   405       SdpPreConditionStrengthType 
getStrength()
 const { 
return mStrength; }
   415          mComponentId(componentId), mConnectionAddress(connectionAddress), 
mPort(port) {}
   417          mComponentId(rhs.mComponentId), mConnectionAddress(rhs.mConnectionAddress), 
mPort(rhs.
mPort) {}
   420       UtlContainableType 
getContainableType()
 const { 
static char type[] = 
"SdpRemoteCandidate"; 
return type;}
   421       unsigned hash()
 const { 
return directHash(); }
   422       int compareTo(UtlContainable 
const *)
 const { 
return 0; } 
   445          mId(id), mType(type) {}
   447          mId(rhs.mId), mType(rhs.mType) {}
   450       UtlContainableType 
getContainableType()
 const { 
static char type[] = 
"SdpTransportProtocolCapabilities"; 
return type;}
   451       unsigned hash()
 const { 
return directHash(); }
   452       int compareTo(UtlContainable 
const *)
 const { 
return 0; } 
   456       void setId(
unsigned int id) { mId = id; }
   457       const unsigned int getId()
 const { 
return mId; }
   459       void setType(SdpTransportProtocolType type) { mType = type; }
   460       SdpTransportProtocolType 
getType()
 const { 
return mType; }
   473          ConfigIdItem(
unsigned id, 
bool optional=
false) : mId(id), mOptional(optional) {}
   478          unsigned hash()
 const { 
return directHash(); }
   479          int compareTo(UtlContainable 
const *)
 const { 
return 0; } 
   483          void setId(
unsigned int id) { mId = id; }
   484          const unsigned int getId()
 const { 
return mId; }
   495          mId(id), mDeleteMediaAttributes(deleteMediaAttributes), mDeleteSessionAttributes(deleteSessionAttributes), mTransportId(transportId) {}
   497          mId(rhs.mId), mDeleteMediaAttributes(rhs.mDeleteMediaAttributes), mDeleteSessionAttributes(rhs.mDeleteSessionAttributes),
   498          mTransportId(rhs.mTransportId), mAttributeIdList(rhs.mAttributeIdList)  {}
   501       UtlContainableType 
getContainableType()
 const { 
static char type[] = 
"SdpPotentialConfiguration"; 
return type;}
   502       unsigned hash()
 const { 
return directHash(); }
   503       int compareTo(UtlContainable 
const *)
 const { 
return 0; } 
   507       void setId(
unsigned int id) { mId = id; }
   508       const unsigned int getId()
 const { 
return mId; }
   604    void addPreConditionDesiredStatus(SdpPreConditionType type, SdpPreConditionStrengthType strength, SdpPreConditionStatusType status, SdpPreConditionDirectionType direction) 
   624         { 
addCandidate(
new SdpCandidate(foundation, 
id, transport, priority, connectionAddress, port, candidateType, relatedAddress, relatedPort)); }
   713     virtual UtlContainableType 
getContainableType()
 const { 
static char type[] = 
"SdpMediaLine"; 
return type;}
   714     virtual unsigned hash()
 const { 
return directHash(); }
   715     virtual int compareTo(UtlContainable 
const *)
 const { 
return 0; }  
   717     void toString(UtlString& sdpMediaLineString) 
const;
   797 #endif  // _SdpMediaLine_h_ 
List of codecs, used for storing supported codecs and for codec negotiation. 
Definition: SdpCodecList.h:32
 
void clearCodecs(void)
Clear the list. 
Definition: SdpCodecList.cpp:425
 
Container for SDP/RTP codec specification. 
Definition: SdpCodec.h:123
 
SdpCandidateTransportType
Definition: SdpCandidate.h:42
 
static const char * SdpNetTypeString[]
Definition: Sdp.h:58
 
Definition: SdpCandidate.h:37
 
SdpCandidatePairOffererType
Definition: SdpCandidatePair.h:56
 
SdpCandidateType
Definition: SdpCandidate.h:56
 
Definition: SdpCandidatePair.h:41
 
static const char * SdpAddressTypeString[]
Definition: Sdp.h:67
 
SdpAddressType
Definition: Sdp.h:60
 
SdpBandwidthType
Definition: Sdp.h:69
 
void addCodec(const SdpCodec &newCodec)
Add a new codec type to the list of known codecs. 
Definition: SdpCodecList.cpp:87
 
SdpNetType
Definition: Sdp.h:52