How to enable tone in dialogs

From Nokia Developer Wiki
Jump to: navigation, search
Article Metadata
Created: rathodavinash (01 Jul 2007)
Last edited: hamishwillee (26 Jul 2012)
By default all the query dialogs derived from CAknQueryDialog have the tone ENoTone. Which means when these dialogs are executed there is no sound.

But depending upon requirement there can be the following tones applied for such dialogs:

  • ENoTone No tone is played.
  • EConfirmationTone A confirmation tone is played.
  • EWarningTone A warning tone is played.
  • EErrorTone An error tone is played.

for e.g.

CAknQueryDialog::TTone tone=CAknQueryDialog::EErrorTone;
CAknMessageQueryDialog* dlg = new (ELeave)CAknMessageQueryDialog(tone);
dlg->ExecuteLD( R_MSG_OK );
This page was last modified on 26 July 2012, at 00:00.
24 page views in the last 30 days.

Was this page helpful?

Your feedback about this content is important. Let us know what you think.


Thank you!

We appreciate your feedback.