Location:
cchfcontenthandler.h
Link against: chf.lib
class CCHFContentHandler : public CBase;
Content Handler base class.
The interface for content handlers. It supplies default functions for some functions which should be overriden in derived classes.
CBase
- Base class for all classes to be instantiated on the heap
CCHFContentHandler
- Content Handler base class
Defined in CCHFContentHandler
:
BaseConstructL()
, CCHFContentHandler()
, CCHFContentHandler_Reserved_1()
, CCHFContentHandler_Reserved_2()
, CCHFContentHandler_Reserved_3()
, CCHFContentHandler_Reserved_4()
, CommandL()
, DataSupplier()
, Draw()
, GetDataSupplierObserver()
, HandleAbstractKeyEventL()
, HandleAbstractPointerEventL()
, Parent()
, Query()
, Resize()
, Session()
, StartL()
, iDataSupplier
, iRenderingWindow
, ~CCHFContentHandler()
Inherited from CBase
:
Delete()
,
Extension_()
,
operator new()
protected: IMPORT_C CCHFContentHandler(const TCHFContentHandlerParams &aParams);
Constructor.
|
virtual IMPORT_C TInt Query(const TCHFMessage &aQuery, TCHFValue &aResponse);
Query a content handler.
This function should be overriden by derived classes. It should deal with any queries with the KCHFQueryUid category.
|
|
virtual IMPORT_C void CommandL(const TCHFMessage &aMessage);
Issue a command to a content handler.
This function should be overridden by derived classes. It should deal with any commands with the KCHFCommandUid category. Any command categories in aMessage that are not handled should be silently failed.
|
|
virtual IMPORT_C TKeyResponse HandleAbstractKeyEventL(const RAbstractEventArray &aEvents, const TKeyEvent &aKeyEvent, const
TEventCode &aType);
Issue a key stroke event to the content handler.
The function should be overridden by derived classes. It should deal with any mapped CHF abstract events that the key stroke is mapped to or deal with the raw event. Content handlers are expected to try and handle the CHF standard abstract event mappings.
|
|
|
virtual IMPORT_C TBool HandleAbstractPointerEventL(const RAbstractEventArray &aEvents, const TPointerEvent &aPointerEvent);
Issue a pointer event to the content handler.
The function should be overridden by derived classes. It should deal with any mapped CHF abstract events that the pointer event is mapped to or deal with the raw event. Content handlers are expected to try and handle the CHF standard abstract event mappings.
|
|
|
virtual void StartL()=0;
Called to start the content handler after construction.
Until StartL is called, the content handler should not process any data and will not be able to display.
|
virtual void Draw(CGraphicsContext &aGc, const TRect &aClippingRect, TPoint aOffset) const=0;
Draw to a graphics context.
|
virtual void Resize(const TRect &aNewRenderingWindow)=0;
Resize the Content Handler.
|
protected: IMPORT_C void BaseConstructL(CCHFDataSupplier *aDataSupplier);
Completes the construction of a content handler.
This function should be called just before returning a new content handler to finish the initialisation. It is this function that gives ownership of the supplied data supplier to the content handler. No leaving functions should be called after this function.
|
protected: IMPORT_C MCHFParent &Parent() const;
Gets the parent of the content handler. This is set on construction.
|
protected: IMPORT_C CCHFDataSupplier &DataSupplier() const;
Gets the data supplier of the content handler. This is set on construction.
|
protected: IMPORT_C CCHFSession &Session() const;
Gets the CHF session to which to the content handler belongs. This is set on construction.
|
protected: virtual MCHFDataSupplierObserver &GetDataSupplierObserver()=0;
Gets the observer that the content handler wishes to use for its data supplier observer.
It's likely that this will actually be the content handler itself in most cases.
|
protected: CCHFDataSupplier * iDataSupplier;