API published in: S60 3rd Ed
Link against: avkon.lib
Required Capabilities
None
#include <akninfopopupnotecontroller.h>
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.).
Public Types |
|
enum | TTone { ENoTone = 0, EConfirmationTone = EAvkonSIDConfirmationTone, EWarningTone = EAvkonSIDWarningTone, EErrorTone = EAvkonSIDErrorTone } |
The tone played before the dialog is shown. More... |
|
Public Member Functions |
|
virtual | ~CAknInfoPopupNoteController () |
Destructor. |
|
IMPORT_C void | SetTimeDelayBeforeShow (TInt aMilliSeconds) |
Set time delay period before popup is shown (in milliseconds). |
|
IMPORT_C void | SetTimePopupInView (TInt aMilliSeconds) |
Set time period how long popup is in view (in milliseconds). |
|
IMPORT_C void | SetTextL (const TDesC &aText) |
Set text to show in popup. |
|
IMPORT_C void | ShowInfoPopupNote () |
Show popup after delay time (hide possible previous popup immediately) and hide popup again after setted time. |
|
IMPORT_C void | HideInfoPopupNote () |
Hide popup immediately. |
|
IMPORT_C void | AddObserverL (const MAknInfoPopupNoteObserver &aObserver) |
Adds an observer for the pop-up. |
|
IMPORT_C void | RemoveObserver (const MAknInfoPopupNoteObserver &aObserver) |
Removes an observer from the pop-up. |
|
IMPORT_C void | SetPositionAndAlignment (const TPoint &aPosition, const TGulAlignmentValue &aAlignment) |
Sets the position and alignment of the info pop-up note. |
|
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. |
|
IMPORT_C void | RestoreDefaultPosition () |
Restores the info pop-up note's default position discarding previously set values to position and alignment. |
|
IMPORT_C void | SetTooltipModeL (const TBool aTooltipMode) |
Sets the tooltip mode. |
|
void | NotifyObservers (MAknInfoPopupNoteObserver::TAknInfoPopupNoteEvent aEvent) |
Notifies the observers of the info popup note of an event. |
|
IMPORT_C void | SetTone (const TTone &aTone) |
Set the tone to be played when the info popup note is shown. |
|
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). |
|
Static Public Member Functions |
|
static IMPORT_C CAknInfoPopupNoteController * | NewL () |
Two-phased constructor. |
|
Protected Member Functions |
|
void | DoCancel () |
From CTimer. |
|
The tone played before the dialog is shown. Application specific tones may be played by casting the application defined Sound ID (SID), to TTone |
|
Destructor. |
|
Adds an observer for the pop-up.
|
|
From CTimer. Cancels an outstanding asynchronous request. |
|
Hide popup immediately. |
|
Whether info popup note will be automatically hidden or not when app ui is faded (true by default).
|
|
Two-phased constructor. |
|
Notifies the observers of the info popup note of an event.
|
|
Removes an observer from the pop-up.
|
|
Restores the info pop-up note's default position discarding previously set values to position and alignment. |
|
Sets the position and alignment of the info pop-up note.
|
|
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.
|
|
Set text to show in popup. If given text is too long for popup, it is truncated.
|
|
Set time delay period before popup is shown (in milliseconds). (if this isn't set, default delay time before show is 1 sec. )
|
|
Set time period how long popup is in view (in milliseconds). (if this isn't set, default show time is 10 sec. )
|
|
Set the tone to be played when the info popup note is shown.
|
|
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.
|
|
Show popup after delay time (hide possible previous popup immediately) and hide popup again after setted time. |