Please note that as of October 24, 2014, the Nokia Developer Wiki will no longer be accepting user contributions, including new entries, edits and comments, as we begin transitioning to our new home, in the Windows Phone Development Wiki. We plan to move over the majority of the existing entries. Thanks for all your past and future contributions.

How to enable tone in dialogs

From 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.
26 page views in the last 30 days.