»
Symbian OS v9.3 »
Symbian OS reference »
C++ component reference »
Multimedia Protocols SIP_COM »
CSdpOriginField
Location:
SdpOriginField.h
Link against: sdpcodec.lib
class CSdpOriginField : public CBase;
Description
This class encapsulates the origin field of the Session Description Protocol.
The normative reference for correct formatting and values is draft-ietf-mmusic-sdp-new-14 unless specified otherwise in member
documentation. The implementation supports this normative reference, but does not enforce it fully.
sdpcodec.lib
Derivation
CBase
- Base class for all classes to be instantiated on the heap
CSdpOriginField
- This class encapsulates the origin field of the Session Description Protocol
Members
Defined in CSdpOriginField
:
Address()
, AddressType()
, CloneL()
, DecodeL()
, DecodeLC()
, EncodeL()
, InetAddress()
, NetType()
, NewL()
, NewL()
, NewLC()
, NewLC()
, SessionId()
, SetAddressL()
, SetInetAddress()
, SetSessionId()
, SetUserNameL()
, SetVersion()
, UserName()
, Version()
, operator==()
, ~CSdpOriginField()
Inherited from CBase
:
Delete()
,
Extension_()
,
operator new()
Construction and destruction
static IMPORT_C CSdpOriginField *NewL(const TDesC8 &aUserName, TInt64 aSessionId, TInt64 aSessionVersion, TInetAddr &aAddress);
Description
Constructs a new origin field.
Parameters
const TDesC8 &aUserName |
A valid user name value.
|
TInt64 aSessionId |
A valid session id value.
|
TInt64 aSessionVersion |
A valid announcement version value.
|
TInetAddr &aAddress |
A unicast IP address from either KAfInet or KAfInet6 family.
|
|
Return value
static IMPORT_C CSdpOriginField *NewLC(const TDesC8 &aUserName, TInt64 aSessionId, TInt64 aSessionVersion, TInetAddr &aAddress);
Description
Constructs a new origin field and adds the pointer to the cleanup stack.
Parameters
const TDesC8 &aUserName |
A valid user name value.
|
TInt64 aSessionId |
A valid session id value.
|
TInt64 aSessionVersion |
A valid announcement version value.
|
TInetAddr &aAddress |
A unicast IP address from either KAfInet or KAfInet6 family.
|
|
Return value
static IMPORT_C CSdpOriginField *NewL(const TDesC8 &aUserName, TInt64 aSessionId, TInt64 aSessionVersion, RStringF aNetType,
RStringF aAddressType, const TDesC8 &aAddress);
Description
Constructs a new origin field.
Parameters
const TDesC8 &aUserName |
A valid user name value.
|
TInt64 aSessionId |
A valid session id value.
|
TInt64 aSessionVersion |
A valid announcement version value.
|
RStringF aNetType |
A valid network type value (typically "IN").
|
RStringF aAddressType |
A valid address type value (typically "IP4" or "IP6").
|
const TDesC8 &aAddress |
A unicast IP Address, Fully Qualified Domain Name (FQDN), or an other type of address allowed for the address type.
|
|
Return value
static IMPORT_C CSdpOriginField *NewLC(const TDesC8 &aUserName, TInt64 aSessionId, TInt64 aSessionVersion, RStringF aNetType,
RStringF aAddressType, const TDesC8 &aAddress);
Description
Constructs a new origin field and adds the pointer to the cleanup stack.
Parameters
const TDesC8 &aUserName |
A valid user name value.
|
TInt64 aSessionId |
A valid session id value.
|
TInt64 aSessionVersion |
A valid announcement version value.
|
RStringF aNetType |
A valid network type value (typically "IN").
|
RStringF aAddressType |
A valid address type value (typically "IP4" or "IP6").
|
const TDesC8 &aAddress |
A unicast IP Address, Fully Qualified Domain Name (FQDN), or an other type of address allowed for the address type.
|
|
Return value
IMPORT_C ~CSdpOriginField();
Description
Deletes the resources held by the instance.
static IMPORT_C CSdpOriginField *DecodeL(const TDesC8 &aText);
Description
Constructs a new origin field.
Parameters
const TDesC8 &aText |
A string containing a correctly formatted field value terminated by a CRLF.
|
|
Return value
static IMPORT_C CSdpOriginField *DecodeLC(const TDesC8 &aText);
Description
Constructs a new origin field and adds the pointer to the cleanup stack.
Parameters
const TDesC8 &aText |
A string containing a correctly formatted field value terminated by a CRLF.
|
|
Return value
IMPORT_C void EncodeL(RWriteStream &aStream) const;
Description
Outputs the field formatted according to SDP syntax and including the terminating CRLF.
Parameters
RWriteStream &aStream |
Stream used for output. On return the stream includes correctly formatted origin field.
|
|
IMPORT_C CSdpOriginField *CloneL() const;
Description
Creates a new instance that is equal to the target.
Return value
IMPORT_C TBool operator==(const CSdpOriginField &aObj) const;
Description
Compares this instance to another for equality.
Parameters
Return value
TBool
|
ETrue if equal, EFalse if not.
|
|
IMPORT_C const TDesC8 &UserName() const;
Description
Gets the user name.
Return value
IMPORT_C void SetUserNameL(const TDesC8 &aValue);
Description
Sets the user name.
Parameters
const TDesC8 &aValue |
A valid user name value.
|
|
Leave codes
KErrSdpCodecOriginField |
if aValue is not a valid user name.
|
|
IMPORT_C TInt64 SessionId() const;
Description
Gets the session id of the origin field.
Return value
IMPORT_C void SetSessionId(TInt64 aValue);
Description
Sets the session id.
Parameters
TInt64 aValue |
A valid session id value.
|
|
IMPORT_C TInt64 Version() const;
Description
Gets the announcement version.
Return value
IMPORT_C void SetVersion(TInt64 aValue);
Description
Sets the announcement version..
Parameters
TInt64 aValue |
A valid version value.
|
|
IMPORT_C RStringF NetType() const;
Description
Gets the network type.
Return value
RStringF
|
The network type from pre-defined SDP string table or given by the user.
|
|
IMPORT_C RStringF AddressType() const;
Description
Gets the address type.
Return value
RStringF
|
The address type from pre-defined SDP string table or given by the user.
|
|
IMPORT_C const TInetAddr *InetAddress() const;
Description
Gets the address.
Return value
const TInetAddr * |
Address as an IP address or null if it is not an IP address. This may be e.g. when the address has been specified as a FQDN.
In this case, the address can be accessed using the other getters.
|
|
IMPORT_C const TDesC8 &Address() const;
Description
Gets the address.
Return value
const TDesC8 & |
Address as a string.
|
|
IMPORT_C void SetInetAddress(const TInetAddr &aValue);
Description
Sets the address, network and address type. Also sets the network type to "IN" and address type to "IP4" or "IP6" depending
on the address family of aValue.
Parameters
const TInetAddr &aValue |
A unicast IP address from either KAfInet or KAfInet6 family.
|
|
IMPORT_C void SetAddressL(const TDesC8 &aAddress, RStringF aNetType, RStringF aAddressType);
Description
Sets the address, network and address type.
Parameters
const TDesC8 &aAddress |
A unicast IP Address, Fully Qualified Domain Name (FQDN), or an other type of address allowed for the address type.
|
RStringF aNetType |
A valid network type value (typically "IN").
|
RStringF aAddressType |
A valid address type value (typically "IP4" or "IP6").
|
|
Leave codes
KErrSdpCodecOriginField |
if aNetType or aAddressType are not valid tokens, or aAddress is invalid, or aAddress type is not aligned with the address
format
|
|