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

/*
* Copyright (c) 1997-1999 Nokia Corporation and/or its subsidiary(-ies).
* All rights reserved.
* This component and the accompanying materials are made available
* 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
* which accompanies this distribution, and is available
* at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
*
* Initial Contributors:
* Nokia Corporation - initial contribution.
*
* Contributors:
*
* Description:
*
*/


#if !defined(__EIKINFO_H__)
#define __EIKINFO_H__

#if !defined(__EIKENV_H__)
#include <eikenv.h>
#endif

#include <aknnotedialog.h>

/**
 * Eikon info dialog, contains a title, message and Yes/No buttons.
 */
class CEikInfoDialog : public CAknNoteDialog, public MEikInfoDialog
	{
	
public:
	/**
	 * Left here for backwards compatibility.
	 * Not used anymore.
     * 
    */
	enum TExitKeys
		{
		EAllowEnter,
		EIgnoreEnter
		};
public:
    /**
    * Constructor.
    */
	IMPORT_C CEikInfoDialog(const TDesC& aTitle,const TDesC& aMsg,TExitKeys aExitKeys=EAllowEnter);
	
	/**
    * Constructor.
    */
	CEikInfoDialog(TExitKeys aExitKeys=EAllowEnter);
	
	/**
     * Sets title and message and calls ExecuteLD for the dialog.
    */
	IMPORT_C static TBool RunDlgLD(const TDesC& aTitle,const TDesC& aMsg,TExitKeys aExitKeys=EAllowEnter);
          
    /**
     * Handles pointer events.
    */
    IMPORT_C void HandlePointerEventL(const TPointerEvent& aPointerEvent);
    
private: // from MEikInfoDialog
	TBool RunDlgLD(TInt aResource, const TDesC& aTitle, const TDesC& aMsg);
	
private:
	void PreLayoutDynInitL();
	
private:
    /**
    * From CAknControl
    */
    IMPORT_C void* ExtensionInterface( TUid aInterface );
    
private:
	IMPORT_C virtual void CEikDialog_Reserved_1();
	IMPORT_C virtual void CEikDialog_Reserved_2();
	
private:
	const TDesC* iTitle;
	const TDesC* iMessage;
	};

#endif