epoc32/include/mw/eikalert.h
author William Roberts <williamr@symbian.org>
Wed, 31 Mar 2010 12:33:34 +0100
branchSymbian3
changeset 4 837f303aceeb
parent 2 2fe1408b6811
permissions -rw-r--r--
Current Symbian^3 public API header files (from PDK 3.0.h)
This is the epoc32/include tree with the "platform" subtrees removed, and
all but a selected few mbg and rsg files removed.
     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 "Eclipse Public License v1.0"
     6 * which accompanies this distribution, and is available
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.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