classicui_plat/notes_api/inc/EIKINFO.H
changeset 49 31c16e0c5e3e
equal deleted inserted replaced
40:7165f928e888 49:31c16e0c5e3e
       
     1 /*
       
     2 * Copyright (c) 1997-1999 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 "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 *
       
    16 */
       
    17 
       
    18 
       
    19 #if !defined(__EIKINFO_H__)
       
    20 #define __EIKINFO_H__
       
    21 
       
    22 #if !defined(__EIKENV_H__)
       
    23 #include <eikenv.h>
       
    24 #endif
       
    25 
       
    26 #include <aknnotedialog.h>
       
    27 
       
    28 /**
       
    29  * Eikon info dialog, contains a title, message and Yes/No buttons.
       
    30  */
       
    31 class CEikInfoDialog : public CAknNoteDialog, public MEikInfoDialog
       
    32 	{
       
    33 	
       
    34 public:
       
    35 	/**
       
    36 	 * Left here for backwards compatibility.
       
    37 	 * Not used anymore.
       
    38      * 
       
    39     */
       
    40 	enum TExitKeys
       
    41 		{
       
    42 		EAllowEnter,
       
    43 		EIgnoreEnter
       
    44 		};
       
    45 public:
       
    46     /**
       
    47     * Constructor.
       
    48     */
       
    49 	IMPORT_C CEikInfoDialog(const TDesC& aTitle,const TDesC& aMsg,TExitKeys aExitKeys=EAllowEnter);
       
    50 	
       
    51 	/**
       
    52     * Constructor.
       
    53     */
       
    54 	CEikInfoDialog(TExitKeys aExitKeys=EAllowEnter);
       
    55 	
       
    56 	/**
       
    57      * Sets title and message and calls ExecuteLD for the dialog.
       
    58     */
       
    59 	IMPORT_C static TBool RunDlgLD(const TDesC& aTitle,const TDesC& aMsg,TExitKeys aExitKeys=EAllowEnter);
       
    60           
       
    61     /**
       
    62      * Handles pointer events.
       
    63     */
       
    64     IMPORT_C void HandlePointerEventL(const TPointerEvent& aPointerEvent);
       
    65     
       
    66 private: // from MEikInfoDialog
       
    67 	TBool RunDlgLD(TInt aResource, const TDesC& aTitle, const TDesC& aMsg);
       
    68 	
       
    69 private:
       
    70 	void PreLayoutDynInitL();
       
    71 	
       
    72 private:
       
    73     /**
       
    74     * From CAknControl
       
    75     */
       
    76     IMPORT_C void* ExtensionInterface( TUid aInterface );
       
    77     
       
    78 private:
       
    79 	IMPORT_C virtual void CEikDialog_Reserved_1();
       
    80 	IMPORT_C virtual void CEikDialog_Reserved_2();
       
    81 	
       
    82 private:
       
    83 	const TDesC* iTitle;
       
    84 	const TDesC* iMessage;
       
    85 	};
       
    86 
       
    87 #endif