CSIPAddress Class Reference

class CSIPAddress : public CBase

Class provides functions for setting and getting parameters in SIP name-addr structure

sipcodec.lib

Inherits from

Public Member Functions
~CSIPAddress()
IMPORT_C CSIPAddress *DecodeL(const TDesC8 &)
IMPORT_C const TDesC8 &DisplayName()
IMPORT_C voidExternalizeL(RWriteStream &)
IMPORT_C CSIPAddress *InternalizeL(RReadStream &)
IMPORT_C CSIPAddress *NewL(CUri8 *)
IMPORT_C CSIPAddress *NewL(const TDesC8 &, CUri8 *)
IMPORT_C CSIPAddress *NewL(const CSIPAddress &)
IMPORT_C CSIPAddress *NewLC(CUri8 *)
IMPORT_C CSIPAddress *NewLC(const TDesC8 &, CUri8 *)
IMPORT_C CSIPAddress *NewLC(const CSIPAddress &)
CSIPAddress *NewLC(CURIContainer *)
IMPORT_C voidSetDisplayNameL(const TDesC8 &)
IMPORT_C voidSetUri8L(CUri8 *)
IMPORT_C HBufC8 *ToTextLC(TBool)
IMPORT_C CURIContainer &URI()
IMPORT_C const CURIContainer &URI()
IMPORT_C const CUri8 &Uri8()
IMPORT_C TBooloperator==(const CSIPAddress &)
Private Member Functions
CSIPAddress()
TBool CheckDisplayName(const TDesC8 &)
voidConstructL()
voidConstructL(CUri8 *)
voidConstructL(const TDesC8 &, CUri8 *)
voidConstructL(const CSIPAddress &)
voidConstructL(CURIContainer *)
TBool ContainsSeparators(const TDesC8 &)
voidDoInternalizeL(RReadStream &)
TBool HasDisplayName()
voidParseURIInAngleBracketsL(const TDesC8 &)
voidParseURIL(const TDesC8 &)
TInt QuotedStringLength(const TDesC8 &)
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()
Private Attributes
HBufC8 *iDisplayName
CURIContainer *iURI

Constructor & Destructor Documentation

CSIPAddress()

CSIPAddress()[private]

~CSIPAddress()

IMPORT_C~CSIPAddress()

Destructor, deletes the resources of CSIPAddress.

Member Functions Documentation

CheckDisplayName(const TDesC8 &)

TBool CheckDisplayName(const TDesC8 &aValue)[private]

Parameters

const TDesC8 & aValue

ConstructL()

voidConstructL()[private]

ConstructL(CUri8 *)

voidConstructL(CUri8 *aUri)[private]

Parameters

CUri8 * aUri

ConstructL(const TDesC8 &, CUri8 *)

voidConstructL(const TDesC8 &aDisplayName,
CUri8 *aUri
)[private]

Parameters

const TDesC8 & aDisplayName
CUri8 * aUri

ConstructL(const CSIPAddress &)

voidConstructL(const CSIPAddress &aSIPAddress)[private]

Parameters

const CSIPAddress & aSIPAddress

ConstructL(CURIContainer *)

voidConstructL(CURIContainer *aURI)[private]

Parameters

CURIContainer * aURI

ContainsSeparators(const TDesC8 &)

TBool ContainsSeparators(const TDesC8 &aValue)const [private]

Parameters

const TDesC8 & aValue

DecodeL(const TDesC8 &)

IMPORT_C CSIPAddress *DecodeL(const TDesC8 &aValue)[static]

Constructs a CSIPAddress from textual representation

Parameters

const TDesC8 & aValueSIP name-addr as text

DisplayName()

IMPORT_C const TDesC8 &DisplayName()const

Gets the display name

DoInternalizeL(RReadStream &)

voidDoInternalizeL(RReadStream &aReadStream)[private]

Parameters

RReadStream & aReadStream

ExternalizeL(RWriteStream &)

IMPORT_C voidExternalizeL(RWriteStream &aWriteStream)

Writes the object to a RWriteStream

Parameters

RWriteStream & aWriteStreama stream where the object is to be externalized

HasDisplayName()

TBool HasDisplayName()const [private]

InternalizeL(RReadStream &)

IMPORT_C CSIPAddress *InternalizeL(RReadStream &aReadStream)[static]

Constructs an instance of a CSIPAddress from a RReadStream

Parameters

RReadStream & aReadStreama stream containing the externalized object

NewL(CUri8 *)

IMPORT_C CSIPAddress *NewL(CUri8 *aUri8)[static]
Creates a new instance of CSIPAddress
Pre-condition
aUri != 0

Parameters

CUri8 * aUri8

NewL(const TDesC8 &, CUri8 *)

IMPORT_C CSIPAddress *NewL(const TDesC8 &aDisplayName,
CUri8 *aUri8
)[static]
Creates a new instance of CSIPAddress
Pre-condition
aUri != 0

Parameters

const TDesC8 & aDisplayNamea SIP token or a SIP quoted-string
CUri8 * aUri8

NewL(const CSIPAddress &)

IMPORT_C CSIPAddress *NewL(const CSIPAddress &aSIPAddress)[static]

Creates a deep-copy of a CSIPAddress

Parameters

const CSIPAddress & aSIPAddressthe address to be copied

NewLC(CUri8 *)

IMPORT_C CSIPAddress *NewLC(CUri8 *aUri8)[static]
Creates a new instance of CSIPAddress and puts it to CleanupStack
Pre-condition
aUri != 0

Parameters

CUri8 * aUri8

NewLC(const TDesC8 &, CUri8 *)

IMPORT_C CSIPAddress *NewLC(const TDesC8 &aDisplayName,
CUri8 *aUri8
)[static]
Creates a new instance of CSIPAddress and puts it to CleanupStack
Pre-condition
aUri != 0

Parameters

const TDesC8 & aDisplayNamea SIP token or a SIP quoted-string
CUri8 * aUri8

NewLC(const CSIPAddress &)

IMPORT_C CSIPAddress *NewLC(const CSIPAddress &aSIPAddress)[static]

Creates a deep-copy of a CSIPAddress and puts it to CleanupStack

Parameters

const CSIPAddress & aSIPAddressthe address to be copied

NewLC(CURIContainer *)

CSIPAddress *NewLC(CURIContainer *aURI)[static]

Parameters

CURIContainer * aURI

ParseURIInAngleBracketsL(const TDesC8 &)

voidParseURIInAngleBracketsL(const TDesC8 &aValue)[private]

Parameters

const TDesC8 & aValue

ParseURIL(const TDesC8 &)

voidParseURIL(const TDesC8 &aValue)[private]

Parameters

const TDesC8 & aValue

QuotedStringLength(const TDesC8 &)

TInt QuotedStringLength(const TDesC8 &aValue)[private]

Parameters

const TDesC8 & aValue

SetDisplayNameL(const TDesC8 &)

IMPORT_C voidSetDisplayNameL(const TDesC8 &aDisplayName)

Sets the display name

Parameters

const TDesC8 & aDisplayNamea SIP token or a SIP quoted-string

SetUri8L(CUri8 *)

IMPORT_C voidSetUri8L(CUri8 *aUri8)
Sets the URI part of the address
Pre-condition
aUri!= 0

Parameters

CUri8 * aUri8

ToTextLC(TBool)

IMPORT_C HBufC8 *ToTextLC(TBoolaUseAngleBrackets = EFalse)const

Creates a textual representation and pushes it to CleanupStack

Parameters

TBool aUseAngleBrackets = EFalseif ETrue, sets the anglebrackets

URI()

IMPORT_C CURIContainer &URI()

URI()

IMPORT_C const CURIContainer &URI()const

Uri8()

IMPORT_C const CUri8 &Uri8()const

Gets the URI part of the address as const

operator==(const CSIPAddress &)

IMPORT_C TBooloperator==(const CSIPAddress &aSIPAddress)const

Compares this object to another instance of CSIPAddress

Parameters

const CSIPAddress & aSIPAddressa CSIPAddress to compare to

Member Data Documentation

HBufC8 * iDisplayName

HBufC8 *iDisplayName[private]

CURIContainer * iURI

CURIContainer *iURI[private]