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

Public Member Functions
~CAknInfoPopupNoteController()
IMPORT_C voidAddObserverL(const MAknInfoPopupNoteObserver &)
IMPORT_C voidHideInfoPopupNote()
IMPORT_C voidHideWhenAppFaded(const TBool)
IMPORT_C CAknInfoPopupNoteController *NewL()
voidNotifyObservers(MAknInfoPopupNoteObserver::TAknInfoPopupNoteEvent)
IMPORT_C voidRemoveObserver(const MAknInfoPopupNoteObserver &)
IMPORT_C voidRestoreDefaultPosition()
IMPORT_C voidSetPositionAndAlignment(const TPoint &, const TGulAlignmentValue &)
IMPORT_C voidSetPositionByHighlight(const TRect &)
IMPORT_C voidSetTextL(const TDesC &)
IMPORT_C voidSetTimeDelayBeforeShow(TInt)
IMPORT_C voidSetTimePopupInView(TInt)
IMPORT_C voidSetTone(const TTone &)
IMPORT_C voidSetTooltipModeL(const TBool)
IMPORT_C voidShowInfoPopupNote()
Protected Member Functions
voidDoCancel()
Private Member Functions
CAknInfoPopupNoteController()
voidConstructL()
voidPlayTone()
voidRunL()
Inherited Functions
CActive::CActive(TInt)
CActive::Cancel()
CActive::Deque()
CActive::Extension_(TUint,TAny *&,TAny *)
CActive::IsActive()const
CActive::IsAdded()const
CActive::Priority()const
CActive::RunError(TInt)
CActive::SetActive()
CActive::SetPriority(TInt)
CActive::~CActive()
CBase::CBase()
CBase::Delete(CBase *)
CBase::operator new(TUint)
CBase::operator new(TUint,TAny *)
CBase::operator new(TUint,TLeave)
CBase::operator new(TUint,TLeave,TUint)
CBase::operator new(TUint,TUint)
CBase::~CBase()
CTimer::After(TTimeIntervalMicroSeconds32)
CTimer::At(const TTime &)
CTimer::AtUTC(const TTime &)
CTimer::CTimer(TInt)
CTimer::HighRes(TTimeIntervalMicroSeconds32)
CTimer::Inactivity(TTimeIntervalSeconds)
CTimer::Lock(TTimerLockSpec)
CTimer::~CTimer()
Public Member Enumerations
enumTTone { ENoTone = 0, EConfirmationTone = EAvkonSIDConfirmationTone, EWarningTone = EAvkonSIDWarningTone, EErrorTone = EAvkonSIDErrorTone }
Private Member Enumerations
enumTInfoPopupNoteState { EHidden, EWaitingToShow, EShowing }
Inherited Enumerations
CActive:TPriority
Private Attributes
RPointerArray< MAknInfoPopupNoteObserver >iObservers
CAknInfoPopupNote *iPopup
TInfoPopupNoteState iState
TInt iTimeDelayBeforeShow
TInt iTimeInView
TTone iTone
Inherited Attributes
CActive::iStatus

Constructor & Destructor Documentation

CAknInfoPopupNoteController()

CAknInfoPopupNoteController()[private]

C++ default constructor.

~CAknInfoPopupNoteController()

~CAknInfoPopupNoteController()[virtual]

Destructor.

Member Functions Documentation

AddObserverL(const MAknInfoPopupNoteObserver &)

IMPORT_C voidAddObserverL(const MAknInfoPopupNoteObserver &aObserver)

Adds an observer for the pop-up.

Parameters

const MAknInfoPopupNoteObserver & aObserverThe observer to be added.

ConstructL()

voidConstructL()[private]

By default Symbian 2nd phase constructor is private.

DoCancel()

voidDoCancel()[protected, virtual]

From CTimer. Cancels an outstanding asynchronous request.

HideInfoPopupNote()

IMPORT_C voidHideInfoPopupNote()

Hide popup immediately.

HideWhenAppFaded(const TBool)

IMPORT_C voidHideWhenAppFaded(const TBoolaHide)
Whether info popup note will be automatically hidden or not when app ui is faded (true by default)
Since
3.1

Parameters

const TBool aHideETrue when hidden, EFalse when shown or controlled externally

NewL()

IMPORT_C CAknInfoPopupNoteController *NewL()[static]

Two-phased constructor.

NotifyObservers(MAknInfoPopupNoteObserver::TAknInfoPopupNoteEvent)

voidNotifyObservers(MAknInfoPopupNoteObserver::TAknInfoPopupNoteEventaEvent)

Notifies the observers of the info popup note of an event.

Parameters

MAknInfoPopupNoteObserver::TAknInfoPopupNoteEvent aEventThe event, of which the observers are notified.

PlayTone()

voidPlayTone()[private]

Play the tone.

RemoveObserver(const MAknInfoPopupNoteObserver &)

IMPORT_C voidRemoveObserver(const MAknInfoPopupNoteObserver &aObserver)

Removes an observer from the pop-up.

Parameters

const MAknInfoPopupNoteObserver & aObserverThe observer to be removed.

RestoreDefaultPosition()

IMPORT_C voidRestoreDefaultPosition()
Restores the info pop-up note's default position discarding previously set values to position and alignment.
Since
3.1

RunL()

voidRunL()[private, virtual]

Show popup. Called by system framework.

SetPositionAndAlignment(const TPoint &, const TGulAlignmentValue &)

IMPORT_C voidSetPositionAndAlignment(const TPoint &aPosition,
const TGulAlignmentValue &aAlignment
)
Sets the position and alignment of the info pop-up note.
Since
3.1

Parameters

const TPoint & aPositionThe position, where pop-up note is displayed.
const TGulAlignmentValue & aAlignmentSpecifies the part of pop-up note that will be aligned with the given position.

SetPositionByHighlight(const TRect &)

IMPORT_C voidSetPositionByHighlight(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 & aHighlightRectScreen-relative rectangle used to calculate pop-up's position.

SetTextL(const TDesC &)

IMPORT_C voidSetTextL(const TDesC &aText)

Set text to show in popup. If given text is too long for popup, it is truncated.

Parameters

const TDesC & aTextText to show in popup.

SetTimeDelayBeforeShow(TInt)

IMPORT_C voidSetTimeDelayBeforeShow(TIntaMilliSeconds)

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 aMilliSecondsWanted delay time in milliseconds.

SetTimePopupInView(TInt)

IMPORT_C voidSetTimePopupInView(TIntaMilliSeconds)

Set time period how long popup is in view (in milliseconds). (if this isn't set, default show time is 10 sec. )

Parameters

TInt aMilliSecondsWanted show time in milliseconds. if set to 0, popup is shown until HideInfoPopupNote is called

SetTone(const TTone &)

IMPORT_C voidSetTone(const TTone &aTone)

Set the tone to be played when the info popup note is shown

Parameters

const TTone & aToneThe tone

SetTooltipModeL(const TBool)

IMPORT_C voidSetTooltipModeL(const TBoolaTooltipMode)
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 aTooltipModeETrue to set tooltip mode on, EFalse to set it off.

ShowInfoPopupNote()

IMPORT_C voidShowInfoPopupNote()

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

RPointerArray< MAknInfoPopupNoteObserver >iObservers[private]

CAknInfoPopupNote * iPopup

CAknInfoPopupNote *iPopup[private]

TInfoPopupNoteState iState

TInfoPopupNoteState iState[private]

TInt iTimeDelayBeforeShow

TInt iTimeDelayBeforeShow[private]

TInt iTimeInView

TInt iTimeInView[private]

TTone iTone

TTone iTone[private]