diff -r 666f914201fb -r 2fe1408b6811 epoc32/include/mw/eikalert.h --- a/epoc32/include/mw/eikalert.h Tue Nov 24 13:55:44 2009 +0000 +++ b/epoc32/include/mw/eikalert.h Tue Mar 16 16:12:26 2010 +0000 @@ -1,1 +1,77 @@ -eikalert.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(__EIKALERT_H__) +#define __EIKALERT_H__ + +#if !defined(__EIKDIALG_H__) +#include +#endif + +#if !defined(__EIKENV_H__) +#include +#endif + +#include + +class CEikAlert : public CAknNoteDialog, public MEikAlertWin + { +public: + // From CCoeControl + IMPORT_C void HandlePointerEventL(const TPointerEvent& aPointerEvent); +private: + // Defined by the Mix-in class: + void ConstructL(); + void RunAlert(const TDesC& aMsg1,const TDesC& aMsg2); + void Release(); + CEikDialog* AsEikDialog(); +private: + void PreLayoutDynInitL(); +private: + /** + * From CAknControl + */ + IMPORT_C void* ExtensionInterface( TUid aInterface ); +private: + virtual void CEikDialog_Reserved_1(); + virtual void CEikDialog_Reserved_2(); +private: + virtual void CAknNoteDialog_Reserved(); + +protected: + const TDesC* iMsg1; + const TDesC* iMsg2; + friend class CEikAlertNotifier; + }; + +NONSHARABLE_CLASS(CEikAlertNotifier): public CBase, public MEikAlertWin + { + public: + ~CEikAlertNotifier(); + private: // from MEikAlert + void ConstructL(); + void RunAlert(const TDesC& aTitle, const TDesC& aMsg) ; + void Release(); + CEikDialog* AsEikDialog(); + private: + void CreateLocalDialogIfRequired(); + CEikAlert* iLocalDialog; + CBufFlat* iNotifierBuffer; + }; + +#endif