browserutilities/browsertelservice/src/BrowserTelServiceDlgs.cpp
changeset 0 dd21522fd290
child 68 92a765b5b3e7
equal deleted inserted replaced
-1:000000000000 0:dd21522fd290
       
     1 /*
       
     2 * Copyright (c) 2003 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of the License "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description: 
       
    15 *	  Definition of class TDialerDialogs.
       
    16 *
       
    17 *
       
    18 */
       
    19 
       
    20  
       
    21 // INCLUDE FILES
       
    22 
       
    23 #include <eikenv.h>
       
    24 #include <eikon.rsg>
       
    25 #include <AknNoteWrappers.h>
       
    26 
       
    27 #include <BrowserTelService.rsg>
       
    28 #include "BrowserTelServiceDlgs.h"
       
    29 
       
    30 
       
    31 // ================= MEMBER FUNCTIONS =======================
       
    32 
       
    33 //---------------------------------------------------------------------------------------
       
    34 // TDialerDialogs::ErrorNoteL()
       
    35 //---------------------------------------------------------------------------------------
       
    36 //
       
    37 void TDialerDialogs::ErrorNoteL( const TDesC& aPrompt )
       
    38 	{
       
    39 	CAknErrorNote* note = new( ELeave ) CAknErrorNote();
       
    40 	note->ExecuteLD( aPrompt );	
       
    41 	}
       
    42 
       
    43 //---------------------------------------------------------------------------------------
       
    44 // TDialerDialogs::ConfirmationDlgL()
       
    45 //---------------------------------------------------------------------------------------
       
    46 //
       
    47 TInt TDialerDialogs::ConfirmationDlgL( const TDesC& aMsg, TInt aResourceId )
       
    48 	{
       
    49 	TPtrC msg( aMsg );
       
    50 	CAknQueryDialog* dialog = new( ELeave ) CAknQueryDialog( msg );
       
    51 	return dialog->ExecuteLD( aResourceId );
       
    52 	}
       
    53 
       
    54 //---------------------------------------------------------------------------------------
       
    55 // TDialerDialogs::ConfirmationDlgL()
       
    56 //---------------------------------------------------------------------------------------
       
    57 //
       
    58 TInt TDialerDialogs::WaitDialogL( const TDesC& aMsg, TInt aResourceId )
       
    59 	{
       
    60 	TPtrC msg(aMsg);
       
    61 	CAknWaitDialog *dialog = NULL;
       
    62 	dialog = new ( ELeave ) CAknWaitDialog( 
       
    63 		reinterpret_cast<CEikDialog**>( dialog ) );
       
    64 	dialog->PrepareLC( aResourceId );
       
    65 	dialog->SetTextL( msg );
       
    66 	return dialog->RunLD();	
       
    67 	}