MDataProviderObserver Class Reference

class MDataProviderObserver

MDataProviderObserver provides a virtual interface for any class to observe any MDataProvider, and provide data receiving services.

Public Member Functions
voidProcessDataL(HBufC8 &)
voidSetBaseUriL(const TDesC *)
voidSetDataExpected(TInt)
voidSetDocumentTypeL(const TDesC &)
voidSetDocumentTypeL(const TDesC &, const TDesC &)
voidSetStatus(TInt)
Private Member Functions
voidMDataProviderObserverReserved1()
voidMDataProviderObserverReserved2()

Member Functions Documentation

MDataProviderObserverReserved1()

voidMDataProviderObserverReserved1()[private, pure virtual]
Intended Usage : Reserved for future expansion.
Since
6.0

MDataProviderObserverReserved2()

voidMDataProviderObserverReserved2()[private, pure virtual]
Intended Usage : Reserved for future expansion.
Since
6.0

ProcessDataL(HBufC8 &)

voidProcessDataL(HBufC8 &aBuffer)[pure virtual]
Intended Usage : Called by the data provider to request processing of the data within the buffer.
Since
6.0

Parameters

HBufC8 & aBufferA reference to the buffer with the data to process

SetBaseUriL(const TDesC *)

voidSetBaseUriL(const TDesC *aBaseUri)[pure virtual]
Intended Usage : Set the URI that the DataProvider considers the base URI for the current data.
Since
6.0

Parameters

const TDesC * aBaseUriA const pointer to the uri

SetDataExpected(TInt)

voidSetDataExpected(TIntaAmountExpected)[pure virtual]
Intended Usage : The report of how many bytes of data is expected to be passed to ProcessDataL, enabling age reporting capabilities.
Since
6.0

Parameters

TInt aAmountExpectedAn integer value of the expected amount

SetDocumentTypeL(const TDesC &)

voidSetDocumentTypeL(const TDesC &aDataType)[pure virtual]
Intended Usage : The request to construct a CDataHandler to process data of aDataType, where aDataType is a string to match against some plugins declared data handling ability.
Since
6.0

Parameters

const TDesC & aDataTypeA reference to a descriptor with the data type

SetDocumentTypeL(const TDesC &, const TDesC &)

voidSetDocumentTypeL(const TDesC &aDataType,
const TDesC &aContentType
)[pure virtual]
Intended Usage : The request to construct a CDataHandler for aDataType with non default document encoding where aDataType is a string to match against some plugins declared data handling ability.
Since
6.0

Parameters

const TDesC & aDataTypeA reference to a descriptor with the data type
const TDesC & aContentTypeA reference to a descriptor with the content type

SetStatus(TInt)

voidSetStatus(TIntaStatusCode =  KErrNone )[pure virtual]
Intended Usage : Called by the data provider to report its status to its observer. A status code which is either a standard error condition, (i.e. < 0), a percentage complete value, ( 0 > aStatus < 100), OR a TPluginStatus value.
Since
6.0

Parameters

TInt aStatusCode =  KErrNone The status of the data provider