diff -r 5315654608de -r 08c6ee43b396 idlehomescreen/widgetmanager/inc/wmmaincontainer.h --- a/idlehomescreen/widgetmanager/inc/wmmaincontainer.h Thu Jan 07 12:39:41 2010 +0200 +++ b/idlehomescreen/widgetmanager/inc/wmmaincontainer.h Mon Jan 18 20:10:36 2010 +0200 @@ -39,6 +39,7 @@ class CWmPortalButton; class CWmWidgetLoaderAo; class CWmMainContainerView; +class CWmConfiguration; /** * Container class for WmMainContainer @@ -170,9 +171,9 @@ void UninstallWidgetL(); /** - * opens OVI portal + * opens currently selected portal */ - void OpenOviPortalL(); + void OpenPortalL(); /** * Selection key (middle soft key) @@ -218,8 +219,9 @@ /** * Moves focus to the OVI button + * @param aIndex 0=first button, 1=second (if it exists) */ - void SetFocusToOviButton(); + void SetFocusToPortalButton( TInt aIndex ); /** * Moves focus to the widgets list, alternatively also setting the currently @@ -240,6 +242,11 @@ * To set iClosingDown. See above. */ void SetClosingDown( TBool aClosingDown ); + + /** + * access to WM configuration + */ + CWmConfiguration& Configuration(); protected: // from base class CCoeControl @@ -283,14 +290,21 @@ void LayoutControls(); void StartLoadingWidgetsL(); void RemoveCtrlsFromStack(); + void UpdateFocusMode(); + CCoeControl* FindChildControlByPoint( const TPoint& aPoint ); + void HandleFindSizeChanged(); TKeyResponse MoveFocusByKeys( const TKeyEvent& aKeyEvent, TEventCode aType ); - void UpdateFocusMode(); - CCoeControl* FindChildControlByPoint( const TPoint& aPoint ); - void HandleFindSizeChanged(); - void FetchRepositoryDataL(); - + TKeyResponse HandleButtonKeyEventL( + const TKeyEvent& aKeyEvent, + TEventCode aType ); + TKeyResponse HandleListKeyEventL( + const TKeyEvent& aKeyEvent, + TEventCode aType ); + TKeyResponse HandleSearchKeyEventL( + const TKeyEvent& aKeyEvent, + TEventCode aType ); private: /** @@ -319,9 +333,16 @@ CAknsBasicBackgroundControlContext* iBgContext; /** - * Ovi portal + * portal button + * (if there is only one button, this is it) */ - CWmPortalButton* iOviPortal; + CWmPortalButton* iPortalButtonOne; + + /** + * portal button + * (if there is only one button, this is NULL) + */ + CWmPortalButton* iPortalButtonTwo; /** GUI layout modes */ enum TWmLayout @@ -340,7 +361,7 @@ enum TWmFocusMode { ENowhere, - EOvi, + EPortal, EList, EFind }; @@ -362,19 +383,9 @@ TBool iClosingDown; /** - * Localized Url to start browser - */ - HBufC* iOviStoreUrl; - - /** - * OviStore bundleId + * The configuration */ - HBufC* iOviStoreClientBundleId; - - /** - * OviStore client param - */ - HBufC* iOviStoreClientParam; + CWmConfiguration* iConfiguration; };