CAknInfoPopupNoteController Class Reference
class CAknInfoPopupNoteController : public CTimer |
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.).
avkon.lib
- Since
- Series 60 3.0
Inherits from
- CAknInfoPopupNoteController
Protected Member Functions |
---|
void | DoCancel() |
Constructor & Destructor Documentation
CAknInfoPopupNoteController()
CAknInfoPopupNoteController | ( | ) | [private] |
~CAknInfoPopupNoteController()
~CAknInfoPopupNoteController | ( | ) | [virtual] |
Member Functions Documentation
AddObserverL(const MAknInfoPopupNoteObserver &)
Adds an observer for the pop-up.
ConstructL()
void | ConstructL | ( | ) | [private] |
By default Symbian 2nd phase constructor is private.
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
Parameters
const TBool aHide | ETrue when hidden, EFalse when shown or controlled externally |
NotifyObservers(MAknInfoPopupNoteObserver::TAknInfoPopupNoteEvent)
Notifies the observers of the info popup note of an event.
RemoveObserver(const MAknInfoPopupNoteObserver &)
Removes an observer from the pop-up.
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
RunL()
void | RunL | ( | ) | [private, virtual] |
Show popup. Called by system framework.
SetPositionAndAlignment(const TPoint &, const TGulAlignmentValue &)
Sets the position and alignment of the info pop-up note.
- Since
- 3.1
Parameters
const TPoint & aPosition | The position, where pop-up note is displayed. |
const TGulAlignmentValue & 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
Parameters
const TRect & 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.
Parameters
const TDesC & 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. )
Parameters
TInt 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. )
Parameters
TInt 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
Parameters
const TTone & 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
Parameters
const TBool 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.
Member Enumerations Documentation
Enum TInfoPopupNoteState
Enumerators
EHidden | |
EWaitingToShow | |
EShowing | |
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
Enumerators
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.
|
Member Data Documentation
RPointerArray< MAknInfoPopupNoteObserver > iObservers
CAknInfoPopupNote * iPopup
CAknInfoPopupNote * | iPopup | [private] |
TInfoPopupNoteState
iState
TInt
iTimeDelayBeforeShow
TInt
| iTimeDelayBeforeShow | [private] |
TInt
iTimeInView
TInt
| iTimeInView | [private] |
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.