epoc32/include/mw/eikinfo.h
author William Roberts <williamr@symbian.org>
Tue, 16 Mar 2010 16:12:26 +0000
branchSymbian2
changeset 2 2fe1408b6811
parent 1 666f914201fb
child 4 837f303aceeb
permissions -rw-r--r--
Final list of Symbian^2 public API header files
     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 the License "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members
     6 * which accompanies this distribution, and is available
     7 * at the URL "http://www.symbianfoundation.org/legal/licencesv10.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