javauis/lcdui_akn/lcdui/inc/CMIDGaugeItem.h
branchRCL_3
changeset 24 6c158198356e
parent 17 0fd27995241b
equal deleted inserted replaced
23:e5618cc85d74 24:6c158198356e
    36  */
    36  */
    37 
    37 
    38 class CEikProgressInfo;
    38 class CEikProgressInfo;
    39 class CAknSlider;
    39 class CAknSlider;
    40 class CAknBitmapAnimation;
    40 class CAknBitmapAnimation;
       
    41 class CAknsFrameBackgroundControlContext;
    41 
    42 
    42 /** This interface is implemented by the alert dialog (CMIDAlertDialog). The current
    43 /** This interface is implemented by the alert dialog (CMIDAlertDialog). The current
    43     design is such that the alert dialog uses its own animations (loaded from resource)
    44     design is such that the alert dialog uses its own animations (loaded from resource)
    44     when a gauge is added to an alert. So when the gauge java peer is updated (for example
    45     when a gauge is added to an alert. So when the gauge java peer is updated (for example
    45     because its value is changed) we need to notify the alert, which will then have to
    46     because its value is changed) we need to notify the alert, which will then have to
   293     */
   294     */
   294     void ColorChange(TInt aType);
   295     void ColorChange(TInt aType);
   295 
   296 
   296     void SetGaugeListenerFromAlert(MMIDGaugeToAlertListner* aGaugeToAlertListner);
   297     void SetGaugeListenerFromAlert(MMIDGaugeToAlertListner* aGaugeToAlertListner);
   297 
   298 
       
   299     TTypeUid::Ptr MopSupplyObject(TTypeUid aId);
       
   300 
   298 private:
   301 private:
   299     /**
   302     /**
   300      * Ctor
   303      * Ctor
   301      * @param aUIManager UI manager
   304      * @param aUIManager UI manager
   302      *
   305      *
   355      * @return ETrue iBitmapAnimation has been created
   358      * @return ETrue iBitmapAnimation has been created
   356      *               and the animation is useful.
   359      *               and the animation is useful.
   357      * @since  S60 v5.0
   360      * @since  S60 v5.0
   358      */
   361      */
   359     TBool BitmapAnimationUsed() const;
   362     TBool BitmapAnimationUsed() const;
       
   363 
       
   364     /**
       
   365      * Gets new correct instance of control context or null.
       
   366      *
       
   367      * @return New instance of CAknsFrameBackgroundControlContext.
       
   368      *         Instance maybe a null.
       
   369      *
       
   370      * @since  S60 v5.0
       
   371      */
       
   372     CAknsFrameBackgroundControlContext* BackgroundControlContext();
   360 
   373 
   361 private:
   374 private:
   362     CEikProgressInfo* iProgressInfo;
   375     CEikProgressInfo* iProgressInfo;
   363     MMIDGaugeToAlertListner* iGaugeToAlertListner;
   376     MMIDGaugeToAlertListner* iGaugeToAlertListner;
   364     TAknLayoutRect iWaitGaugeRect; // form2_midp_gauge_wait_pane
   377     TAknLayoutRect iWaitGaugeRect; // form2_midp_gauge_wait_pane