MDataProviderObserver Class Reference

#include <mw/mdataproviderobserver.h>

class MDataProviderObserver
Public Member Functions
pure virtual voidProcessDataL(HBufC8 &)
pure virtual voidSetBaseUriL(const TDesC *)
pure virtual voidSetDataExpected(TInt)
pure virtual voidSetDocumentTypeL(const TDesC &)
pure virtual voidSetDocumentTypeL(const TDesC &, const TDesC &)
pure virtual voidSetStatus(TInt)

Detailed Description

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

Member Function Documentation

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
ParameterDescription
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
ParameterDescription
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
ParameterDescription
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
ParameterDescription
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
ParameterDescription
aDataTypeA reference to a descriptor with the data type
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
ParameterDescription
aStatusCodeThe status of the data provider