idlehomescreen/widgetmanager/inc/wmmaincontainer.h
changeset 2 08c6ee43b396
parent 1 5315654608de
child 4 4d54b72983ae
equal deleted inserted replaced
1:5315654608de 2:08c6ee43b396
    37 class CCoeControl;
    37 class CCoeControl;
    38 class CAknSearchField;
    38 class CAknSearchField;
    39 class CWmPortalButton;
    39 class CWmPortalButton;
    40 class CWmWidgetLoaderAo;
    40 class CWmWidgetLoaderAo;
    41 class CWmMainContainerView;
    41 class CWmMainContainerView;
       
    42 class CWmConfiguration;
    42 
    43 
    43 /**
    44 /**
    44  * Container class for WmMainContainer
    45  * Container class for WmMainContainer
    45  * 
    46  * 
    46  * @class	CWmMainContainer WmMainContainer.h
    47  * @class	CWmMainContainer WmMainContainer.h
   168 	 * executes widget uninstall 
   169 	 * executes widget uninstall 
   169 	 */
   170 	 */
   170 	void UninstallWidgetL();
   171 	void UninstallWidgetL();
   171 
   172 
   172     /**
   173     /**
   173      * opens OVI portal
   174      * opens currently selected portal
   174      */
   175      */
   175     void OpenOviPortalL();
   176     void OpenPortalL();
   176 
   177 
   177     /**
   178     /**
   178      * Selection key (middle soft key)
   179      * Selection key (middle soft key)
   179      */
   180      */
   180     void SelectL();
   181     void SelectL();
   216 	 */
   217 	 */
   217 	void HandlePointerEventL( const TPointerEvent& aPointerEvent );
   218 	void HandlePointerEventL( const TPointerEvent& aPointerEvent );
   218 	
   219 	
   219 	/**
   220 	/**
   220 	 * Moves focus to the OVI button
   221 	 * Moves focus to the OVI button
   221 	 */
   222 	 * @param aIndex 0=first button, 1=second (if it exists)
   222     void SetFocusToOviButton();
   223 	 */
       
   224     void SetFocusToPortalButton( TInt aIndex );
   223 
   225 
   224     /**
   226     /**
   225      * Moves focus to the widgets list, alternatively also setting the currently
   227      * Moves focus to the widgets list, alternatively also setting the currently
   226      * selected item.
   228      * selected item.
   227      * @param aIndex the item in widgets list to highlight during setting focus.
   229      * @param aIndex the item in widgets list to highlight during setting focus.
   238         
   240         
   239     /*
   241     /*
   240      * To set iClosingDown. See above.
   242      * To set iClosingDown. See above.
   241      */
   243      */
   242     void SetClosingDown( TBool aClosingDown );
   244     void SetClosingDown( TBool aClosingDown );
       
   245 
       
   246     /**
       
   247      * access to WM configuration
       
   248      */
       
   249     CWmConfiguration& Configuration();
   243     
   250     
   244 protected: // from base class CCoeControl
   251 protected: // from base class CCoeControl
   245     
   252     
   246     /**
   253     /**
   247      * Sets the control's extent, specifying a rectangle.
   254      * Sets the control's extent, specifying a rectangle.
   281     void AddControlL( CCoeControl* aControl, TInt aControlId );
   288     void AddControlL( CCoeControl* aControl, TInt aControlId );
   282     void InitializeControlsL( const TRect& aRect );
   289     void InitializeControlsL( const TRect& aRect );
   283     void LayoutControls();
   290     void LayoutControls();
   284     void StartLoadingWidgetsL();
   291     void StartLoadingWidgetsL();
   285     void RemoveCtrlsFromStack();
   292     void RemoveCtrlsFromStack();
       
   293     void UpdateFocusMode();
       
   294     CCoeControl* FindChildControlByPoint( const TPoint& aPoint );
       
   295     void HandleFindSizeChanged();
   286     TKeyResponse MoveFocusByKeys(
   296     TKeyResponse MoveFocusByKeys(
   287             const TKeyEvent& aKeyEvent, 
   297             const TKeyEvent& aKeyEvent, 
   288             TEventCode aType );
   298             TEventCode aType );
   289     void UpdateFocusMode();
   299     TKeyResponse HandleButtonKeyEventL( 
   290     CCoeControl* FindChildControlByPoint( const TPoint& aPoint );
   300             const TKeyEvent& aKeyEvent, 
   291     void HandleFindSizeChanged();
   301             TEventCode aType );
   292     void FetchRepositoryDataL();
   302     TKeyResponse HandleListKeyEventL( 
   293 
   303             const TKeyEvent& aKeyEvent, 
       
   304             TEventCode aType );
       
   305     TKeyResponse HandleSearchKeyEventL( 
       
   306             const TKeyEvent& aKeyEvent, 
       
   307             TEventCode aType );
   294 private:
   308 private:
   295 
   309 
   296     /**
   310     /**
   297      * the plugin root
   311      * the plugin root
   298      */
   312      */
   317      * background
   331      * background
   318      */
   332      */
   319     CAknsBasicBackgroundControlContext* iBgContext;
   333     CAknsBasicBackgroundControlContext* iBgContext;
   320     
   334     
   321     /**
   335     /**
   322      * Ovi portal
   336      * portal button
   323      */
   337      * (if there is only one button, this is it)
   324     CWmPortalButton*             iOviPortal;
   338      */
       
   339     CWmPortalButton*             iPortalButtonOne;
       
   340 
       
   341     /**
       
   342      * portal button
       
   343      * (if there is only one button, this is NULL)
       
   344      */
       
   345     CWmPortalButton*             iPortalButtonTwo;
   325 
   346 
   326     /** GUI layout modes */
   347     /** GUI layout modes */
   327     enum TWmLayout
   348     enum TWmLayout
   328         {
   349         {
   329         EPortrait,
   350         EPortrait,
   338 
   359 
   339     /** focus modes */
   360     /** focus modes */
   340     enum TWmFocusMode
   361     enum TWmFocusMode
   341         {
   362         {
   342         ENowhere,
   363         ENowhere,
   343         EOvi,
   364         EPortal,
   344         EList,
   365         EList,
   345         EFind
   366         EFind
   346         };
   367         };
   347 
   368 
   348     /**
   369     /**
   360      * should be ignored.
   381      * should be ignored.
   361      */
   382      */
   362     TBool                   iClosingDown;
   383     TBool                   iClosingDown;
   363     
   384     
   364     /**
   385     /**
   365      * Localized Url to start browser
   386      * The configuration
   366      */
   387      */
   367     HBufC*                  iOviStoreUrl;
   388     CWmConfiguration*       iConfiguration;
   368     
       
   369     /**
       
   370      * OviStore bundleId
       
   371      */
       
   372     HBufC*                  iOviStoreClientBundleId;
       
   373     
       
   374     /**
       
   375      * OviStore client param
       
   376      */
       
   377     HBufC*                  iOviStoreClientParam;
       
   378     
   389     
   379     };
   390     };
   380 
   391 
   381 #endif // WMMAINCONTAINER_H
   392 #endif // WMMAINCONTAINER_H
   382 
   393