CSIPContactHeader Class Reference
#include
<mw/sipcontactheader.h>
Link against: sipcodec.lib
class CSIPContactHeader : public CSIPParameterHeaderBase |
Inherited Functions |
---|
| CBase::CBase() |
| CBase::Delete(CBase *) |
| CBase::Extension_(TUint,TAny *&,TAny *) |
| CBase::operator new(TUint) |
| CBase::operator new(TUint,TAny *) |
| CBase::operator new(TUint,TLeave) |
| CBase::operator new(TUint,TLeave,TUint) |
| CBase::operator new(TUint,TUint) |
| CBase::~CBase() |
| CSIPHeaderBase::CSIPHeaderBase() |
| CSIPHeaderBase::EncodeMultipleToOneLine()const |
| CSIPHeaderBase::ExternalizeL(RWriteStream &,TBool)const |
| CSIPHeaderBase::ExternalizeNameL(RWriteStream &)const |
| CSIPHeaderBase::ExternalizeSupported()const |
| CSIPHeaderBase::IsExtensionHeader()const |
| CSIPHeaderBase::PushLC(RPointerArray< CSIPHeaderBase > *) |
| CSIPHeaderBase::ResetAndDestroy(TAny *) |
| CSIPHeaderBase::ToTextL()const |
| CSIPHeaderBase::ToTextLC()const |
| CSIPHeaderBase::ToTextValueLC()const |
| CSIPHeaderBase::~CSIPHeaderBase() |
| CSIPParameterHeaderBase::CSIPParameterHeaderBase(const TChar &) |
| CSIPParameterHeaderBase::DeleteParam(RStringF) |
| CSIPParameterHeaderBase::HasParam(RStringF)const |
| CSIPParameterHeaderBase::Param(TInt,RStringF &)const |
| CSIPParameterHeaderBase::ParamCount()const |
| CSIPParameterHeaderBase::ParamValue(RStringF)const |
| CSIPParameterHeaderBase::ParseL(const TDesC8 &,TBool,TBool) |
| CSIPParameterHeaderBase::SetParamL(RStringF) |
| CSIPParameterHeaderBase::SetParamL(RStringF,RStringF) |
| CSIPParameterHeaderBase::ToTextValueL()const |
| CSIPParameterHeaderBase::~CSIPParameterHeaderBase() |
Detailed Description
Class provides functions for setting and getting SIP "Contact" header fields.
Constructor & Destructor Documentation
~CSIPContactHeader ( )
IMPORT_C | ~CSIPContactHeader | ( | ) | |
Member Function Documentation
BaseDecodeL ( const TDesC8 & )
DecodeL ( const TDesC8 & )
Constructs a CSIPContactHeader from textual representation of the header's value part. Note that "Contact: *" can be only created using this function.
Parameter | Description | aValue | a value part of a "Contact"-header |
Returns: an array containing 1..n instances of CSIPContactHeader
ExpiresParameter ( )
IMPORT_C TInt | ExpiresParameter | ( | ) | const |
Gets the value of the "expires"-parameter
Returns: the "expires"-parameter, or KErrNotFound if the parameter is not present.
HasCompactName ( )
TBool
| HasCompactName | ( | ) | const [virtual] |
InternalizeValueL ( RReadStream & )
Parameter | Description | aReadStream | a stream containing the value of the externalized object (header name not included). |
Returns: an instance of a CSIPContactHeader
MoreThanOneAllowed ( )
TBool
| MoreThanOneAllowed | ( | ) | const [virtual] |
NewL ( CSIPAddress * )
Parameter | Description | aSIPAddress | a name-address, the ownership is transferred |
Returns: a new instance of CSIPContactHeader
NewLC ( CSIPAddress * )
Parameter | Description | aSIPAddress | a name-address, the ownership is transferred |
Returns: a new instance of CSIPContactHeader
PreferredPlaceInMessage ( )
QParameter ( )
IMPORT_C TReal | QParameter | ( | ) | const |
Gets the value of "q"-parameter
- Pre-condition
- Star() == EFalse
Returns: the "q"-parameter value, or zero if the parameter is not present.
RemoveExpiresParam ( )
IMPORT_C void | RemoveExpiresParam | ( | ) | |
Removes the "expires"-parameter
SIPAddress ( )
Gets the name-address as const
Returns: name-address or 0 if not present The ownership is NOT transferred.
SIPAddress ( )
Returns: name-address or 0 if not present The ownership is NOT transferred.
SetExpiresParameterL ( TInt )
IMPORT_C void | SetExpiresParameterL | ( | TInt | aExpiresParam | ) | |
Sets the "expires"-parameter
- Pre-condition
- aExpiresParam >= 0
Parameter | Description | aExpiresParam | a "expires"-parameter value to set |
SetQParameterL ( TReal )
IMPORT_C void | SetQParameterL | ( | TReal | aQValue | ) | |
Sets the "q"-parameter value in the "Contact" header
- Pre-condition
- Star() == EFalse
Parameter | Description | aQValue | a "q"-parameter value to set |
SetSIPAddressL ( CSIPAddress * )
Sets the name-address
- Pre-condition
- Star() == EFalse
aSIPAddress != 0
Parameter | Description | aSIPAddress | a name-address to set, the ownership is transferred |
Star ( )
IMPORT_C TBool | Star | ( | ) | const |
Checks if the address is set to a STAR ("*")
Returns: ETrue, if the address is a "*" otherwise EFalse
operator== ( const CSIPContactHeader & )
Parameter | Description | aHeader | a CSIPContactHeader header to compare to |
Returns: ETrue if the objects are equal otherwise EFalse