CSIPParameterHeaderBase Class Reference
#include
<mw/sipparameterheaderbase.h>
Link against: sipcodec.lib
class CSIPParameterHeaderBase : public CSIPHeaderBase |
Detailed Description
A base class for SIP headers that have structure "mandatory part"delimiter"parameters"
This is an abstract class and cannot be instantiated.
Constructor & Destructor Documentation
CSIPParameterHeaderBase ( const TChar & )
CSIPParameterHeaderBase | ( | const TChar & | aSeparator | ) | [protected] |
~CSIPParameterHeaderBase ( )
IMPORT_C | ~CSIPParameterHeaderBase | ( | ) | [virtual] |
Member Function Documentation
DeleteParam ( RStringF )
Parameter | Description | aName | the parameter name to delete |
HasParam ( RStringF )
Checks if a parameter is present
Parameter | Description | aName | the name of the parameter |
Returns: ETrue if present, otherwise EFalse
Param ( TInt, RStringF & )
Gets a header parameter name by index. This function can be used when looping through all the header parameters.
Parameter | Description | aIndex | the index of the parameter |
aName | copy of the parameter name that must be closed by the caller. |
Returns: KErrNotFound if aIndex is invalid. Otherwise EFalse.
ParamCount ( )
IMPORT_C TInt | ParamCount | ( | ) | const |
Gets the count of header parameters
Returns: count of header parameters
ParamInsertionAllowed ( )
TBool
| ParamInsertionAllowed | ( | ) | const [protected, virtual] |
ParamValue ( RStringF )
Gets a parameter value
- Pre-condition
- HasParam(aName) == ETrue
Parameter | Description | aName | the name of the parameter |
Returns: the parameter value if present, otherwise a zero-length length value.
ParseL ( const TDesC8 &, TBool, TBool )
void | ParseL | ( | const TDesC8 & | aValue, |
| TBool | aIgnoreParenthesis = ETrue, |
| TBool | aSkipSeparatorsBeforeAt = EFalse |
| ) | [protected] |
ParseMandatoryPartL ( const TDesC8 & )
void | ParseMandatoryPartL | ( | const TDesC8 & | aMandatoryPart | ) | [protected, pure virtual] |
SetParamL ( RStringF, RStringF )
Sets a parameter with a value. Takes copies of the name and value, so if the RStringFs have been dynamically allocated, they can be closed if necessary after the function returns.
- Pre-condition
- HasParam(aName) == EFalse
Parameter | Description | aName | the name of the parameter |
aValue | the parameter value to set |
SetParamL ( RStringF )
Sets a parameter without a value Takes copy of the name, so if the
RStringF has been dynamically allocated, it can be closed if necessary after the function returns.
- Pre-condition
- HasParam(aName) == EFalse
Parameter | Description | aName | the parameter name to set |
ToTextMandatoryPartLC ( )
HBufC8 * | ToTextMandatoryPartLC | ( | ) | const [protected, pure virtual] |
ToTextValueL ( )
IMPORT_C HBufC8 * | ToTextValueL | ( | ) | const [virtual] |