Swi::CHashContainer Class Reference

class Swi::CHashContainer : public CBase

Serves as a container combining a hash value and a hash algorithm

Inherits from

Constructor & Destructor Documentation

CHashContainer()

CHashContainer()[private]

CHashContainer(const CMessageDigest::THashId)

CHashContainer(const CMessageDigest::THashIdaAlgorithm)[private]

Parameters

const CMessageDigest::THashId aAlgorithm

~CHashContainer()

IMPORT_C~CHashContainer()[virtual]

Destructor of CHashContainer.

Member Functions Documentation

Algorithm()

CMessageDigest::THashId Algorithm()const [inline]

This method returns the algorithm used to produce the hash value.

ConstructL(const Sis::CHash &)

voidConstructL(const Sis::CHash &aHash)[private]

The second-phase constructor.

Parameters

const Sis::CHash & aHashthe Sis::CHash to copy

ConstructL(const TDesC8 &)

voidConstructL(const TDesC8 &aData)[private]

The second-phase constructor.

Parameters

const TDesC8 & aDataA descriptor of TDesC8 type containing the data

ConstructL(RReadStream &)

voidConstructL(RReadStream &aStream)[private]

The second-phase constructor.

Parameters

RReadStream & aStreamAn instance of a RReadStream to read the entity from.

Data()

const TDesC8 &Data()const [inline]

This method returns the actual hash value.

ExternalizeL(RWriteStream &)

IMPORT_C voidExternalizeL(RWriteStream &aStream)const

Streams CHashContainer object contents to a stream.

Parameters

RWriteStream & aStreamRWriteStream to write the entity contents to.

InternalizeL(RReadStream &)

IMPORT_C voidInternalizeL(RReadStream &aStream)

Reads a CHashContainer object contents from a stream.

Parameters

RReadStream & aStreamRReadStream to read the entity from.

NewL(const Sis::CHash &)

IMPORT_C CHashContainer *NewL(const Sis::CHash &aHash)[static]

Creates a new CHashContainer object

Parameters

const Sis::CHash & aHasha Sis::CHash object to obtain the hash algorithm and data

NewL(const CMessageDigest::THashId, const TDesC8 &)

IMPORT_C CHashContainer *NewL(const CMessageDigest::THashIdaAlgorithm,
const TDesC8 &aData
)[static]

Creates a new CHashContainer object.

Parameters

const CMessageDigest::THashId aAlgorithmAn instance of a CMessageDigest::THashId to specify the encoding algorithm
const TDesC8 & aDataA descriptor of TDesC8 type containing the data

NewL(RReadStream &)

IMPORT_C CHashContainer *NewL(RReadStream &aStream)[static]

Creates a new CHashContainer object.

Parameters

RReadStream & aStreamRReadStream to read the entity from.

NewLC(const Sis::CHash &)

IMPORT_C CHashContainer *NewLC(const Sis::CHash &aHash)[static]

Creates a new CHashContainer object.

Parameters

const Sis::CHash & aHasha Sis::CHash object to obtain the hash algorithm and data

NewLC(const CMessageDigest::THashId, const TDesC8 &)

IMPORT_C CHashContainer *NewLC(const CMessageDigest::THashIdaAlgorithm,
const TDesC8 &aData
)[static]

Creates a new CHashContainer object.

Parameters

const CMessageDigest::THashId aAlgorithman instance of a CMessageDigest::THashId to specify the encoding algorithm
const TDesC8 & aDataA descriptor of TDesC8 type containing the data

NewLC(RReadStream &)

IMPORT_C CHashContainer *NewLC(RReadStream &aStream)[static]

Creates a new CHashContainer object.

Parameters

RReadStream & aStreamRReadStream to read the entity from.

SerializedSize()

TUint32 SerializedSize()const [inline]

This method returns serialized size of the object

Member Data Documentation

CMessageDigest::THashId iAlgorithm

CMessageDigest::THashId iAlgorithm[private]

HBufC8 * iData

HBufC8 *iData[private]