equal
deleted
inserted
replaced
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; |
|
42 |
41 |
43 /** This interface is implemented by the alert dialog (CMIDAlertDialog). The current |
42 /** This interface is implemented by the alert dialog (CMIDAlertDialog). The current |
44 design is such that the alert dialog uses its own animations (loaded from resource) |
43 design is such that the alert dialog uses its own animations (loaded from resource) |
45 when a gauge is added to an alert. So when the gauge java peer is updated (for example |
44 when a gauge is added to an alert. So when the gauge java peer is updated (for example |
46 because its value is changed) we need to notify the alert, which will then have to |
45 because its value is changed) we need to notify the alert, which will then have to |
116 * @param aForeground ETrue to switch to the foreground. EFalse to switch |
115 * @param aForeground ETrue to switch to the foreground. EFalse to switch |
117 * from the foreground. |
116 * from the foreground. |
118 * @note Animation of non-interactive gauges is started/stopped. |
117 * @note Animation of non-interactive gauges is started/stopped. |
119 */ |
118 */ |
120 virtual void HandleForegroundL(TBool aForeground); |
119 virtual void HandleForegroundL(TBool aForeground); |
|
120 |
|
121 virtual inline TBool IsInteractive(); |
121 |
122 |
122 protected: |
123 protected: |
123 /** |
124 /** |
124 * Ctor |
125 * Ctor |
125 * @param aUIManager UI manager |
126 * @param aUIManager UI manager |
294 */ |
295 */ |
295 void ColorChange(TInt aType); |
296 void ColorChange(TInt aType); |
296 |
297 |
297 void SetGaugeListenerFromAlert(MMIDGaugeToAlertListner* aGaugeToAlertListner); |
298 void SetGaugeListenerFromAlert(MMIDGaugeToAlertListner* aGaugeToAlertListner); |
298 |
299 |
299 TTypeUid::Ptr MopSupplyObject(TTypeUid aId); |
300 virtual inline TBool IsInteractive(); |
300 |
301 |
301 private: |
302 private: |
302 /** |
303 /** |
303 * Ctor |
304 * Ctor |
304 * @param aUIManager UI manager |
305 * @param aUIManager UI manager |
358 * @return ETrue iBitmapAnimation has been created |
359 * @return ETrue iBitmapAnimation has been created |
359 * and the animation is useful. |
360 * and the animation is useful. |
360 * @since S60 v5.0 |
361 * @since S60 v5.0 |
361 */ |
362 */ |
362 TBool BitmapAnimationUsed() const; |
363 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(); |
|
373 |
364 |
374 private: |
365 private: |
375 CEikProgressInfo* iProgressInfo; |
366 CEikProgressInfo* iProgressInfo; |
376 MMIDGaugeToAlertListner* iGaugeToAlertListner; |
367 MMIDGaugeToAlertListner* iGaugeToAlertListner; |
377 TAknLayoutRect iWaitGaugeRect; // form2_midp_gauge_wait_pane |
368 TAknLayoutRect iWaitGaugeRect; // form2_midp_gauge_wait_pane |
428 // |
419 // |
429 // From CMIDControlItem |
420 // From CMIDControlItem |
430 // |
421 // |
431 void ResolutionChange(TInt aType); |
422 void ResolutionChange(TInt aType); |
432 |
423 |
|
424 virtual inline TBool IsInteractive(); |
|
425 |
433 private: |
426 private: |
434 |
427 |
435 /** |
428 /** |
436 * Ctor |
429 * Ctor |
437 * @param aUIManager UI manager |
430 * @param aUIManager UI manager |
453 TInt iOriginalSliderValue; |
446 TInt iOriginalSliderValue; |
454 TBool iPhysicsScrollingTriggered; |
447 TBool iPhysicsScrollingTriggered; |
455 }; |
448 }; |
456 |
449 |
457 |
450 |
|
451 TBool inline CMIDGaugeItem::IsInteractive() |
|
452 { |
|
453 return EFalse; |
|
454 } |
|
455 |
|
456 TBool inline CMIDNonInteractiveGauge::IsInteractive() |
|
457 { |
|
458 return EFalse; |
|
459 } |
|
460 |
|
461 TBool inline CMIDInteractiveGauge::IsInteractive() |
|
462 { |
|
463 return ETrue; |
|
464 } |
|
465 |
458 #endif // CMIDGAUGEITEM_H |
466 #endif // CMIDGAUGEITEM_H |
459 |
467 |
460 // End of File |
468 // End of File |