#include <mw/sipheaderbase.h>
class CSIPHeaderBase : public CBase |
Public Attributes | |
---|---|
TSglQueLink | iLink |
Public Member Enumerations | |
---|---|
enum | TPreferredPlace { ETop, EMiddleTop, EMiddle, EMiddleBottom, EBottom } |
Public Member Functions | |
---|---|
virtual | ~CSIPHeaderBase() |
pure virtual IMPORT_C CSIPHeaderBase * | CloneL() |
virtual RStringF | CompactName() |
virtual TBool | EncodeMultipleToOneLine() |
IMPORT_C void | ExternalizeL(RWriteStream &, TBool) |
virtual IMPORT_C TBool | ExternalizeSupported() |
virtual TBool | HasCompactName() |
virtual TBool | IsExtensionHeader() |
virtual TBool | MoreThanOneAllowed() |
pure virtual IMPORT_C RStringF | Name() |
pure virtual TPreferredPlace | PreferredPlaceInMessage() |
IMPORT_C void | PushLC(RPointerArray< CSIPHeaderBase > *) |
IMPORT_C HBufC8 * | ToTextL() |
IMPORT_C HBufC8 * | ToTextLC() |
pure virtual IMPORT_C HBufC8 * | ToTextValueL() |
IMPORT_C HBufC8 * | ToTextValueLC() |
Protected Member Functions | |
---|---|
CSIPHeaderBase() | |
void | ExternalizeNameL(RWriteStream &) |
virtual void | ExternalizeValueL(RWriteStream &) |
void | ResetAndDestroy(TAny *) |
Class provides a generic interface for all the SIP headers.
IMPORT_C | ~CSIPHeaderBase | ( | ) | [virtual] |
Destructor, deletes the resources of CSIPHeaderBase.
IMPORT_C CSIPHeaderBase * | CloneL | ( | ) | const [pure virtual] |
Creates a deep-copy of this CSIPHeaderBase object. The function has to be implemented in each of the sub-classes.
Returns: the deep-copied object, the ownership is transferred.
IMPORT_C void | ExternalizeL | ( | RWriteStream & | aWriteStream, |
TBool | aAddName = ETrue | |||
) | const |
Writes the object to a RWriteStream
Parameter | Description |
---|---|
aWriteStream | a stream where the object is to be externalized |
aAddName | if ETrue the name of the header is also written to the stream |
void | ExternalizeNameL | ( | RWriteStream & | aWriteStream | ) | const [protected] |
IMPORT_C TBool | ExternalizeSupported | ( | ) | const [virtual] |
Checks, if the header supports serialization. In practice all the headers part of the API support it.
Returns: ETrue, if the header supports serialization, otherwise EFalse
void | ExternalizeValueL | ( | RWriteStream & | aWriteStream | ) | const [protected, virtual] |
IMPORT_C RStringF | Name | ( | ) | const [pure virtual] |
Gets the full name of the header The function is implemented in each of the sub-classes.
Returns: the full name of the header for example "From"
IMPORT_C void | PushLC | ( | RPointerArray< CSIPHeaderBase > * | aArray | ) | [static] |
Can be used when a RPointerArray<CSIPHeaderBase> needs to be pushed to the CleanupStack for ResetAndDestroy.
Parameter | Description |
---|---|
aArray | an array of CSIPHeaderBase pointers, the ownership of the array is transferred |
IMPORT_C HBufC8 * | ToTextL | ( | ) | const |
Encodes the header (name and value) into its textual representation.
Returns: a textual representation of the complete header, the ownership is transferred
IMPORT_C HBufC8 * | ToTextLC | ( | ) | const |
Encodes the header (name and value) into its textual representation and pushes it to the CleanupStack.
Returns: a textual representation of the complete header, the ownership is transferred
IMPORT_C HBufC8 * | ToTextValueL | ( | ) | const [pure virtual] |
Encodes the header's value into its textual representation.
Returns: a textual representation of the header's value, the ownership is transferred
IMPORT_C HBufC8 * | ToTextValueLC | ( | ) | const |
Encodes the header's value into its textual representation and pushes it to the CleanupStack.
Returns: a textual representation of the header's value, the ownership is transferred