CAknInfoPopupNoteController Class Reference
#include
<mw/AknInfoPopupNoteController.h>
class CAknInfoPopupNoteController : public CTimer |
Inherits from
- CAknInfoPopupNoteController
Protected Member Functions |
---|
virtual void | DoCancel() |
Detailed Description
The controller part of popup. It is active object, and uses timer to show popup after specified time interval (default 1 sec.) and popup hides automaticly after an other period (default 10 sec.).
Member Enumeration Documentation
Enum TTone
The tone played before the dialog is shown. Application specific tones may be played by casting the application defined Sound ID (SID), to TTone
Enumerator | Value | Description |
---|
ENoTone | 0 |
No tone is played.
|
EConfirmationTone | EAvkonSIDConfirmationTone |
A confirmation tone is played.
|
EWarningTone | EAvkonSIDWarningTone |
A warning tone is played.
|
EErrorTone | EAvkonSIDErrorTone |
An error tone is played.
|
Constructor & Destructor Documentation
~CAknInfoPopupNoteController ( )
~CAknInfoPopupNoteController | ( | ) | [virtual] |
Member Function Documentation
AddObserverL ( const MAknInfoPopupNoteObserver & )
Adds an observer for the pop-up.
Parameter | Description | aObserver | The observer to be added. |
DoCancel ( )
void | DoCancel | ( | ) | [protected, virtual] |
From CTimer. Cancels an outstanding asynchronous request.
HideInfoPopupNote ( )
IMPORT_C void | HideInfoPopupNote | ( | ) | |
HideWhenAppFaded ( const TBool )
IMPORT_C void | HideWhenAppFaded | ( | const TBool | aHide | ) | |
Whether info popup note will be automatically hidden or not when app ui is faded (true by default)
- Since
- 3.1
Parameter | Description | aHide | ETrue when hidden, EFalse when shown or controlled externally |
NotifyObservers ( MAknInfoPopupNoteObserver::TAknInfoPopupNoteEvent )
Notifies the observers of the info popup note of an event.
Parameter | Description | aEvent | The event, of which the observers are notified. |
RemoveObserver ( const MAknInfoPopupNoteObserver & )
Removes an observer from the pop-up.
Parameter | Description | aObserver | The observer to be removed. |
RestoreDefaultPosition ( )
IMPORT_C void | RestoreDefaultPosition | ( | ) | |
Restores the info pop-up note's default position discarding previously set values to position and alignment.
- Since
- 3.1
SetPositionAndAlignment ( const TPoint &, const TGulAlignmentValue & )
Sets the position and alignment of the info pop-up note.
- Since
- 3.1
Parameter | Description | aPosition | The position, where pop-up note is displayed. |
aAlignment | Specifies the part of pop-up note that will be aligned with the given position. |
SetPositionByHighlight ( const TRect & )
IMPORT_C void | SetPositionByHighlight | ( | const TRect & | aHighlightRect | ) | |
Sets the position of the info pop-up note so that it is aligned with the given rectangle as specified in the LAF data. This is intented to be used in conjunction with lists and grids if the application wishes to implement a pop-up that follows lists/grids item highlight.
- Since
- 3.1
Parameter | Description | aHighlightRect | Screen-relative rectangle used to calculate pop-up's position. |
SetTextL ( const TDesC & )
IMPORT_C void | SetTextL | ( | const TDesC & | aText | ) | |
Set text to show in popup. If given text is too long for popup, it is truncated.
Parameter | Description | aText | Text to show in popup. |
SetTimeDelayBeforeShow ( TInt )
IMPORT_C void | SetTimeDelayBeforeShow | ( | TInt | aMilliSeconds | ) | |
Set time delay period before popup is shown (in milliseconds). (if this isn't set, default delay time before show is 1 sec. )
Parameter | Description | aMilliSeconds | Wanted delay time in milliseconds. |
SetTimePopupInView ( TInt )
IMPORT_C void | SetTimePopupInView | ( | TInt | aMilliSeconds | ) | |
Set time period how long popup is in view (in milliseconds). (if this isn't set, default show time is 10 sec. )
Parameter | Description | aMilliSeconds | Wanted show time in milliseconds. if set to 0, popup is shown until HideInfoPopupNote is called |
SetTone ( const TTone & )
IMPORT_C void | SetTone | ( | const TTone & | aTone | ) | |
Set the tone to be played when the info popup note is shown
Parameter | Description | aTone | The tone |
SetTooltipModeL ( const TBool )
IMPORT_C void | SetTooltipModeL | ( | const TBool | aTooltipMode | ) | |
Sets the tooltip mode. When tooltip mode is on, info pop-up note is displayed with only one line of text, and the width of the pop-up note depends on the text length.
- Since
- 3.1
Parameter | Description | aTooltipMode | ETrue to set tooltip mode on, EFalse to set it off. |
ShowInfoPopupNote ( )
IMPORT_C void | ShowInfoPopupNote | ( | ) | |
Show popup after delay time (hide possible previous popup immediately) and hide popup again after setted time.