diff -r 5456b4e8b3a8 -r 3321d3e205b6 idlehomescreen/xmluirendering/uiengine/inc/xnkeyeventdispatcher.h --- a/idlehomescreen/xmluirendering/uiengine/inc/xnkeyeventdispatcher.h Wed Sep 01 12:32:46 2010 +0100 +++ b/idlehomescreen/xmluirendering/uiengine/inc/xnkeyeventdispatcher.h Tue Sep 14 20:58:58 2010 +0300 @@ -26,6 +26,7 @@ // Uder includes #include "xnviewmanager.h" +#include "xnuistatelistener.h" // Forward declarations class CXnNode; @@ -45,6 +46,7 @@ */ NONSHARABLE_CLASS( CXnKeyEventDispatcher ) : public CCoeControl, public MCoeMessageMonitorObserver, + public MXnUiResourceChangeObserver, public MXnViewObserver { public: @@ -77,6 +79,19 @@ */ void MonitorWsMessage( const TWsEvent& aEvent ); +private: + // from MXnUiResourceChangeObserver + + /** + * @see MXnUiResourceChangeObserver + */ + void NotifyStatusPaneSizeChanged(); + + /** + * @see MXnUiResourceChangeObserver + */ + void NotifyResourceChanged( TInt aType ); + public: // New functions @@ -174,7 +189,24 @@ * @return Last pointer event */ const TPointerEvent& PointerEvent() const; - + + /** + * Sets activate text editor + * + * @since S60 5.2 + * @param aNode Editor Node + * @param TBool True if text editor should be activated + */ + void SetTextEditorActive( CXnNode* aNode, TBool aActivate ); + + /** + * Queries whether a text editor is active + * + * @since S60 5.2 + * @return ETrue if text editor is active, EFalse otherwise + */ + TBool IsTextEditorActive() const; + private: // new functions @@ -200,6 +232,7 @@ // from MXnViewObserver void NotifyViewActivatedL( const CXnViewData& aViewData ); + void NotifyViewLoadedL( const CXnViewData& /*aViewData*/ ) {}; void NotifyViewDeactivatedL( const CXnViewData& aViewData ); @@ -208,8 +241,8 @@ void NotifyWidgetAdditionL( const CXnPluginData& aPluginData ); void NotifyWidgetRemovalL( const CXnPluginData& aPluginData ); - void NotifyViewAdditionL( const CXnPluginData& /*aPluginData*/ ){}; - void NotifyViewRemovalL( const CXnPluginData& /*aPluginData*/ ){}; + void NotifyViewAdditionL( const CXnViewData& /*aViewData*/ ){}; + void NotifyViewRemovalL( const CXnViewData& /*aViewData*/ ){}; void NotifyAllViewsLoadedL(){}; void NotifyContainerActivatedL( const CXnViewData& /*aViewData*/ ){}; @@ -240,6 +273,8 @@ RPointerArray< CXnNode > iPassiveFocusedNodes; /** Last pointer event */ TPointerEvent iPointerEvent; + /** Active text editor node, not owned */ + CXnNode* iActiveTextEditor; }; #endif //__XNKEYEVENTDISPATCHER_H__