epoc32/include/mw/eikinfo.h
branchSymbian2
changeset 2 2fe1408b6811
parent 1 666f914201fb
child 4 837f303aceeb
--- a/epoc32/include/mw/eikinfo.h	Tue Nov 24 13:55:44 2009 +0000
+++ b/epoc32/include/mw/eikinfo.h	Tue Mar 16 16:12:26 2010 +0000
@@ -1,1 +1,87 @@
-eikinfo.h
+/*
+* 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