epoc32/include/mw/eikalert.h
branchSymbian2
changeset 2 2fe1408b6811
parent 1 666f914201fb
child 4 837f303aceeb
equal deleted inserted replaced
1:666f914201fb 2:2fe1408b6811
     1 eikalert.h
     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(__EIKALERT_H__)
       
    20 #define __EIKALERT_H__
       
    21 
       
    22 #if !defined(__EIKDIALG_H__)
       
    23 #include <eikdialg.h>
       
    24 #endif
       
    25 
       
    26 #if !defined(__EIKENV_H__)
       
    27 #include <eikenv.h>
       
    28 #endif
       
    29 
       
    30 #include <aknstaticnotedialog.h>
       
    31 
       
    32 class CEikAlert : public CAknNoteDialog, public MEikAlertWin
       
    33 	{
       
    34 public: 
       
    35     // From CCoeControl
       
    36     IMPORT_C void HandlePointerEventL(const TPointerEvent& aPointerEvent);	
       
    37 private:
       
    38 	// Defined by the Mix-in class:
       
    39 	void ConstructL();
       
    40 	void RunAlert(const TDesC& aMsg1,const TDesC& aMsg2);
       
    41 	void Release();
       
    42 	CEikDialog* AsEikDialog();
       
    43 private:
       
    44 	void PreLayoutDynInitL();
       
    45 private:
       
    46     /**
       
    47     * From CAknControl
       
    48     */
       
    49     IMPORT_C void* ExtensionInterface( TUid aInterface );
       
    50 private: 
       
    51 	virtual void CEikDialog_Reserved_1();
       
    52 	virtual void CEikDialog_Reserved_2();	
       
    53 private: 
       
    54 	virtual void CAknNoteDialog_Reserved();
       
    55 
       
    56 protected:
       
    57 	const TDesC* iMsg1;
       
    58 	const TDesC* iMsg2;
       
    59 	friend class CEikAlertNotifier;
       
    60 	};
       
    61 
       
    62 NONSHARABLE_CLASS(CEikAlertNotifier): public CBase, public MEikAlertWin
       
    63     {
       
    64     public: 
       
    65         ~CEikAlertNotifier();
       
    66     private: // from MEikAlert    
       
    67         void ConstructL();
       
    68         void RunAlert(const TDesC& aTitle, const TDesC& aMsg) ;
       
    69         void Release();
       
    70         CEikDialog* AsEikDialog();
       
    71     private:
       
    72         void CreateLocalDialogIfRequired();     
       
    73         CEikAlert* iLocalDialog;
       
    74         CBufFlat* iNotifierBuffer;
       
    75     };
       
    76 
       
    77 #endif