CURIContainer Class Reference

class CURIContainer : public CBase

A wrapper class for a generic URI that encapsulates a CUri8 or a CSIPURI instance

sipcodec.lib

Inherits from

Constructor & Destructor Documentation

~CURIContainer()

IMPORT_C~CURIContainer()

Destructor, deletes the resources of CURIContainer.

Member Functions Documentation

CloneAsUri8L()

IMPORT_C CUri8 *CloneAsUri8L()const

Clones the contained URI as CUri8. SIP-URIs are also converted to CUri8s.

ConstructL()

voidConstructL()[private]

ConstructL(CUri8 *)

voidConstructL(CUri8 *aUri8)[private]

Parameters

CUri8 * aUri8

ConstructL(const CURIContainer &)

voidConstructL(const CURIContainer &aURI)[private]

Parameters

const CURIContainer & aURI

CreateUri8L(const TDesC8 &)

CUri8 *CreateUri8L(const TDesC8 &aValue)[static]

Parameters

const TDesC8 & aValue

DecodeL(const TDesC8 &)

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

Constructs a CURIContainer from textual representation

Parameters

const TDesC8 & aValuea generic URI as text

DoInternalizeL(RReadStream &)

voidDoInternalizeL(RReadStream &aReadStream)[private]

Parameters

RReadStream & aReadStream

ExternalizeL(RWriteStream &)

IMPORT_C voidExternalizeL(RWriteStream &aWriteStream)const

Externalizes the object to stream

Parameters

RWriteStream & aWriteStreama stream where the object is to be externalized

FindSIP(const TDesC8 &)

TBool FindSIP(const TDesC8 &aValue)[private, static]

Parameters

const TDesC8 & aValue

InternalizeL(RReadStream &)

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

Constructs an instance of a CURIContainer from a RReadStream

Parameters

RReadStream & aReadStreama stream containing the externalized object

IsSIPURI()

IMPORT_C TBoolIsSIPURI()const

Checks if the wrapped URI is SIP/SIPS-URI

NewL(CUri8 *)

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

Parameters

CUri8 * aUri8the ownership is transferred

NewL(const CURIContainer &)

IMPORT_C CURIContainer *NewL(const CURIContainer &aURI)[static]

Creates a deep copy of the given CURIContainer instance

Parameters

const CURIContainer & aURICURIContainer to be copied

NewLC(CUri8 *)

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

Parameters

CUri8 * aUri8the ownership is transferred

NewLC(const CURIContainer &)

IMPORT_C CURIContainer *NewLC(const CURIContainer &aURI)[static]

Creates a deep copy of the given CURIContainer instance and pushes it to CleanupStack.

Parameters

const CURIContainer & aURICURIContainer to be copied

SIPURI()

IMPORT_C CSIPURI *SIPURI()
Gets the SIP URI if present.
Pre-condition
IsSIPURI()==ETrue

SIPURI()

IMPORT_C const CSIPURI *SIPURI()const
Gets the SIP URI if present.
Pre-condition
IsSIPURI()==ETrue

ToTextL()

IMPORT_C HBufC8 *ToTextL()const

Encodes the object into a textual representation.

Uri8()

IMPORT_C const CUri8 *Uri8()const

Gets the CUri8.

operator==(const CURIContainer &)

IMPORT_C TBooloperator==(const CURIContainer &aURI)const

Compares this object to another instance of CURIContainer

Parameters

const CURIContainer & aURIa URI to compare to

Member Data Documentation

CSIPURI * iSIPURI

CSIPURI *iSIPURI[private]

CUri8 * iUri8

CUri8 *iUri8[private]