Location:
mdataproviderobserver.h
class MDataProviderObserver;
MDataProviderObserver provides a virtual interface for any class to observe any MDataProvider, and provide data receiving services.
Defined in MDataProviderObserver
:
MDataProviderObserverReserved1()
, MDataProviderObserverReserved2()
, ProcessDataL()
, SetBaseUriL()
, SetDataExpected()
, SetDocumentTypeL()
, SetDocumentTypeL()
, SetStatus()
virtual void ProcessDataL(HBufC8 &aBuffer)=0;
Intended Usage : Called by the data provider to request processing of the data within the buffer.
|
virtual void SetStatus(TInt aStatusCode=KErrNone)=0;
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.
|
virtual void SetDocumentTypeL(const TDesC &aDataType)=0;
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.
|
virtual void SetDocumentTypeL(const TDesC &aDataType, const TDesC &aContentType)=0;
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.
|
virtual void SetDataExpected(TInt aAmountExpected)=0;
Intended Usage : The report of how many bytes of data is expected to be passed to ProcessDataL, enabling age reporting capabilities.
|
virtual void SetBaseUriL(const TDesC *aBaseUri)=0;
Intended Usage : Set the URI that the DataProvider considers the base URI for the current data.
|
private: virtual void MDataProviderObserverReserved1()=0;
Intended Usage : Reserved for future expansion.
private: virtual void MDataProviderObserverReserved2()=0;
Intended Usage : Reserved for future expansion.