API published in: S60 1st Ed
Link against: avkon.lib eikctl.lib eikcdlg.lib
Required Capabilities
None
#include <aknnotedialog.h>
Inherits CEikDialog.
Inherited by CAknNoteWrapper, CAknProgressDialog, CAknStaticNoteDialog, CEikAlert, and CEikInfoDialog.
Displays a note to the user for:
Public Types |
|
enum | TTimeout { EUndefinedTimeout = 0, ENoTimeout = 0, EShortTimeout = 1500000, ELongTimeout = 3000000, EShortestTimeout = 500000 } |
The timeout in microseconds for automatically deleting the dialog. More... |
|
enum | TTone { ENoTone = 0, EConfirmationTone = EAvkonSIDConfirmationTone, EWarningTone = EAvkonSIDWarningTone, EErrorTone = EAvkonSIDErrorTone } |
The tone played before the dialog is shown. More... |
|
Public Member Functions |
|
IMPORT_C | CAknNoteDialog () |
C++ default constructor. |
|
IMPORT_C | CAknNoteDialog (const TTone &aTone, const TTimeout &aTimeout=ENoTimeout) |
C++ default constructor. |
|
IMPORT_C | CAknNoteDialog (CEikDialog **aSelfPtr, const TTone &aTone=ENoTone, const TTimeout &aTimeout=ENoTimeout) |
C++ default constructor. |
|
virtual IMPORT_C | ~CAknNoteDialog () |
Destructor. |
|
IMPORT_C void | SetTimeout (const TTimeout &aTimeout) |
Sets the dialog timeout. |
|
IMPORT_C void | SetTone (const TTone &aTone) |
Sets the dialog tone . |
|
IMPORT_C void | SetTextWrapping (TBool aEnabled) |
Enables or disables text wrapping. |
|
IMPORT_C void | SetTextProcessing (TBool aEnabled) |
Enables or disables all text processing done by the dialog. |
|
IMPORT_C void | SetImageL (CEikImage *aImage) |
Set the dialog image. |
|
IMPORT_C void | SetIconL (CEikImage *aIcon) |
Sets the dialog icon. |
|
IMPORT_C void | SetTextNumberL (TInt aNumber) |
Sets the number in the dialog text. |
|
IMPORT_C void | SetTextPluralityL (const TBool isPlural) |
Sets the text plurality for the dialog. |
|
IMPORT_C void | SetTextL (const TDesC &aLabel) |
Sets the dialog text. |
|
IMPORT_C TKeyResponse | OfferKeyEventL (const TKeyEvent &aKeyEvent, TEventCode aType) |
From CCoeControl . |
|
IMPORT_C void | HandleResourceChange (TInt aType) |
From CCoeControl . |
|
IMPORT_C void | LayoutAndDraw () |
Do layout and draw the note dialog. |
|
virtual IMPORT_C TInt | RunLD () |
From @ CEikDialog. |
|
IMPORT_C void | ExitSleepingDialog () |
From CEikDialog . |
|
IMPORT_C TInt | ExecuteDlgLD (const TTimeout aTimeout, const TTone aTone, TInt aResourceID) |
Set timeout, tone, resource ID and then initialize and launch the dialog. |
|
IMPORT_C TInt | ExecuteDlgLD (const TTone aTone, TInt aResourceID) |
Set tone, resource ID and then initialize and launch the dialog. |
|
IMPORT_C TInt | ExecuteDlgLD (TInt aResourceId, TInt aNoteControlId=0) |
Set note control ID, resource ID and then initialize and launch the dialog. |
|
IMPORT_C TInt | RunDlgLD (const TTimeout aTimeout, const TTone aTone) |
Set timeout and tone and run the dialog. |
|
IMPORT_C TInt | RunDlgLD (const TTone aTone) |
Set tone and run the dialog. |
|
IMPORT_C TInt | RunDlgLD () |
Run the dialog. |
|
IMPORT_C TInt | RunDlgLD (TInt aNoteControlId) |
Set NoteControlID and run the dialog. |
|
IMPORT_C void | SetCurrentLabelL (TInt aControlId, const TDesC &aLabel) |
Sets a new label for the specified dialog. |
|
virtual IMPORT_C void | HandlePointerEventL (const TPointerEvent &aPointerEvent) |
From CCoeControl . |
|
Protected Member Functions |
|
IMPORT_C void | SetSizeAndPosition (const TSize &aSize) |
From CEikDialog . |
|
IMPORT_C void | PreLayoutDynInitL (void) |
From CEikDialog . |
|
IMPORT_C void | PostLayoutDynInitL () |
From CEikDialog . |
|
IMPORT_C void | PlayTone () |
Plays a tone. |
|
IMPORT_C void | ReportUserActivity () const |
Indicates that there is user activity. |
|
IMPORT_C CAknNoteAttributes * | ControlAttributes () |
Gets the control attributes. |
|
IMPORT_C void | TransferControlAttributes () |
Transfers the control attributes from the dialog to the control. |
|
IMPORT_C CAknKeySoundSystem * | SoundSystem () const |
Gets the used sound system. |
|
IMPORT_C CAknNoteControl * | NoteControl () |
Gets the Note control. |
|
IMPORT_C void | SetNoMemoryAllocation () |
Sets an indication that memory should not be allocated. |
|
Static Protected Member Functions |
|
static IMPORT_C TInt | StaticDeleteL (TAny *aThis) |
Deletes the note dialog. |
|
Protected Attributes |
|
CPeriodic * | iTimer |
Note timeout timer. |
|
TInt | iTimeoutInMicroseconds |
Note timeout in microseconds. |
|
CEikDialog ** | iSelfPtr |
Used for notes that are not modal. |
|
TTone | iTone |
The tone to be played. |
|
CAknNoteAttributes * | iControlAttributes |
Note control attributes. |
|
The timeout in microseconds for automatically deleting the dialog. |
|
The tone played before the dialog is shown.
Application specific tones may be played by casting the application defined Sound ID (SID), to |
|
C++ default constructor.
Initialises the tone to |
|
C++ default constructor.
Initialises the tone to
|
|
C++ default constructor.
Initialises the tone to
|
|
Destructor. Deletes timer and control attributes. If the self pointer is not null, sets the pointer to point to NULL. |
|
Gets the control attributes.
If the control has already been created this method return the attributes stored inside the control. If not then the local
attributes are returned. The local attributes are transferred to the control in Derived classes should use this method when trying to access the control attributes.
|
|
Set note control ID, resource ID and then initialize and launch the dialog. This method is deprecated and should not be used.
|
|
Set tone, resource ID and then initialize and launch the dialog. This method is deprecated and should not be used.
|
|
Set timeout, tone, resource ID and then initialize and launch the dialog. This method is deprecated and should not be used.
|
|
From Exits a sleeping dialog without deleting it. Reimplemented from CEikDialog. |
|
From Processes the pointer event directed to the dialog.
Reimplemented from CEikDialog. Reimplemented in CAknNoteWrapper, CAknResourceNoteDialog, CAknConfirmationNote, CAknInformationNote, CAknErrorNote, CAknWarningNote, CAknProgressDialog, CAknStaticNoteDialog, CAknWaitDialog, CEikAlert, and CEikInfoDialog. |
|
From
Handles a change to the control's resources of type
Reimplemented from CEikDialog. |
|
Do layout and draw the note dialog.
Needed when changing control components (e.g. the text) dynamically. This is needed because the size of the dialog might change
(e.g. because of bigger text displayed in more lines, etc.) Set methods call
Derived classes that implement this kind of methods should call |
|
Gets the Note control.
Returns the first control on the active page, which is of type Derived classes must use this method to get access to the note control.
|
|
From Handles key events.
Any event which is not a key press is forwarded to
Reimplemented from CEikDialog. Reimplemented in CAknProgressDialog, and CAknStaticNoteDialog. |
|
Plays a tone.
The tone must be previously specified. The sound ID is set depending on the tone type. The tone is played using
|
|
From Performs dynamic operations after the layout. Called by the Uikon framework after the dialog layout is executed, this method can be overrwritten to perform specific operations. The following operations are performed:-
Reimplemented from CEikDialog. Reimplemented in CAknStaticNoteDialog. |
|
From Performs dynamic operations before the layout. Called by the Uikon framework before the dialog layout is executed, this method can be overrwritten to perform specific operations. The following operations are performed:-
Reimplemented from CEikDialog. Reimplemented in CAknProgressDialog. |
|
Indicates that there is user activity. Resets timers which are monitoring user inactivity. This will disable functionality that checks for user inactivity by listening to these timers.
Derived classes must call this method if they override
|
|
Set NoteControlID and run the dialog. This method is deprecated and should not be used.
|
|
Run the dialog. This method is deprecated and should not be used.
|
|
Set tone and run the dialog. This method is deprecated and should not be used.
|
|
Set timeout and tone and run the dialog. This method is deprecated and should not be used.
|
|
From @ CEikDialog. Executes a dialog.
Plays a tone (if one was defined) and simulates user activity. Forwards call to
Reimplemented from CEikDialog. Reimplemented in CAknProgressDialog. |
|
Sets a new label for the specified dialog.
This method is deprecated.
|
|
Sets the dialog icon. Changes the number type icon in the note control. Overrides the icon which was set in the resource file. The dialog takes ownership of the pointer The numbertype icon is the small icon which is bottom left in the note (thumbnail icon).
|
|
Set the dialog image. Change the image in the note control. Override the image which was set in the resource file. The dialog takes ownership of the pointer. The note image is the big image or icon which is top right.
|
|
Sets an indication that memory should not be allocated. This method is reserved for CEikAlert usage. |
|
From Sets the size and the position for the layout.
The dialog height and width are retrieved from the control (if it exists already).If it does not exist, then default values
are used. The client rect is obtained from the application UI.
Reimplemented from CEikDialog. |
|
Sets the dialog text. This method can set a formatted text, e.g. "You have 1 new message". It can however set an unformatted text as well, e.g. "You have \%d messages". The plurality of the dialog must be previously specified - if not singular plurality is used unless there was no singular text specified in the resource file.
|
|
Sets the number in the dialog text.
Sets a number in the note text. If the text specified in the resource file or via
|
|
Sets the text plurality for the dialog. Indicates whether to use plural or singular text. These texts must have been specified in the resource file.
|
|
Enables or disables all text processing done by the dialog. This includes text wrapping, text truncation and reordering of bidirectional text. By default, it is enabled. If text processing is disabled, lines are broken only at explicit line end characters and they are not truncated, but drawn as long as they fit. Also, the dialog does not handle reordering of the bidirectional text. This method must be called before the text is set.
|
|
Enables or disables text wrapping.
Enables or disables text wrapping depending on the values of
This method must be called before
|
|
Sets the dialog timeout.
|
|
Sets the dialog tone .
|
|
Gets the used sound system.
Calls
|
|
Deletes the note dialog.
Called when the timer completes, this method deletes the dialog. A
|
|
Transfers the control attributes from the dialog to the control.
Must be called by derived classes in |
|
Note control attributes. |
|
Used for notes that are not modal. The calling application has no way of knowing when the note is deleted. |
|
Note timeout in microseconds. |
|
Note timeout timer. |
|
The tone to be played. |