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()

void ConstructL ( ) [private]

ConstructL(CUri8 *)

void ConstructL ( CUri8 * aUri8 ) [private]

Parameters

CUri8 * aUri8

ConstructL(const CURIContainer &)

void ConstructL ( 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 & aValue a generic URI as text

DoInternalizeL(RReadStream &)

void DoInternalizeL ( RReadStream & aReadStream ) [private]

Parameters

RReadStream & aReadStream

ExternalizeL(RWriteStream &)

IMPORT_C void ExternalizeL ( RWriteStream & aWriteStream ) const

Externalizes the object to stream

Parameters

RWriteStream & aWriteStream a 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 & aReadStream a stream containing the externalized object

IsSIPURI()

IMPORT_C TBool IsSIPURI ( ) 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 * aUri8 the 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 & aURI CURIContainer 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 * aUri8 the 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 & aURI CURIContainer 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 TBool operator== ( const CURIContainer & aURI ) const

Compares this object to another instance of CURIContainer

Parameters

const CURIContainer & aURI a URI to compare to

Member Data Documentation

CSIPURI * iSIPURI

CSIPURI * iSIPURI [private]

CUri8 * iUri8

CUri8 * iUri8 [private]