|
||
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(CCHFDataSupplier *)
Completes the construction of a content handler.CCHFContentHandler(const TCHFContentHandlerParams &)
Constructor. CCHFContentHandler_Reserved_1()
CCHFContentHandler_Reserved_2()
CCHFContentHandler_Reserved_3()
CCHFContentHandler_Reserved_4()
CommandL(const TCHFMessage &)
Issue a command to a content handler.DataSupplier()const
Gets the data supplier of the content handler. This is set on construction. Draw(CGraphicsContext &,const TRect &,TPoint)const
Draw to a graphics context. GetDataSupplierObserver()
Gets the observer that the content handler wishes to use for its data supplier o...HandleAbstractKeyEventL(const RAbstractEventArray &,const TKeyEvent &,const TEventCode &)
Issue a key stroke event to the content handler.HandleAbstractPointerEventL(const RAbstractEventArray &,const TPointerEvent &)
Issue a pointer event to the content handler.Parent()const
Gets the parent of the content handler. This is set on construction. Query(const TCHFMessage &,TCHFValue &)
Query a content handler.Resize(const TRect &)
Resize the Content Handler. Session()const
Gets the CHF session to which to the content handler belongs. This is set on con...StartL()
Called to start the content handler after construction.iDataSupplier
iRenderingWindow
Content handler's rendering window. ~CCHFContentHandler()
Destructor.Inherited from CBase
:
Delete(CBase *)
Deletes the specified object.Extension_(TUint,TAny *&,TAny *)
Extension function operator new(TUint)
Allocates the object from the heap and then initialises its contents to binary z...operator new(TUint,TAny *)
Initialises the object to binary zeroes.operator new(TUint,TLeave)
Allocates the object from the heap and then initialises its contents to binary z...operator new(TUint,TLeave,TUint)
Allocates the object from the heap and then initialises its contents to binary z...operator new(TUint,TUint)
Allocates the object from the heap and then initialises its contents to binary z...protected: IMPORT_C CCHFContentHandler(const TCHFContentHandlerParams &aParams);
Constructor.
|
IMPORT_C virtual 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.
|
|
IMPORT_C virtual 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.
|
|
IMPORT_C virtual 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.
|
|
|
IMPORT_C virtual 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;