eikalert.h

Go to the documentation of this file.
00001 // EIKALERT.H
00002 //
00003 // Copyright (c) 1997-1999 Symbian Ltd.  All rights reserved.
00004 //
00005 
00006 #if !defined(__EIKALERT_H__)
00007 #define __EIKALERT_H__
00008 
00009 #if !defined(__EIKDIALG_H__)
00010 #include <eikdialg.h>
00011 #endif
00012 
00013 #if !defined(__EIKENV_H__)
00014 #include <eikenv.h>
00015 #endif
00016 
00017 #include <aknstaticnotedialog.h>
00018 
00019 class CEikAlert : public CAknNoteDialog, public MEikAlertWin
00020         {
00021 public: 
00022     // From CCoeControl
00023     IMPORT_C void HandlePointerEventL(const TPointerEvent& aPointerEvent);      
00024 private:
00025         // Defined by the Mix-in class:
00026         void ConstructL();
00027         void RunAlert(const TDesC& aMsg1,const TDesC& aMsg2);
00028         void Release();
00029         CEikDialog* AsEikDialog();
00030 private:
00031         void PreLayoutDynInitL();
00032 private:
00036     IMPORT_C void* ExtensionInterface( TUid aInterface );
00037 private: 
00038         virtual void CEikDialog_Reserved_1();
00039         virtual void CEikDialog_Reserved_2();   
00040 private: 
00041         virtual void CAknNoteDialog_Reserved();
00042 
00043 protected:
00044         const TDesC* iMsg1;
00045         const TDesC* iMsg2;
00046         friend class CEikAlertNotifier;
00047         };
00048 
00049 NONSHARABLE_CLASS(CEikAlertNotifier): public CBase, public MEikAlertWin
00050     {
00051     public: 
00052         ~CEikAlertNotifier();
00053     private: // from MEikAlert    
00054         void ConstructL();
00055         void RunAlert(const TDesC& aTitle, const TDesC& aMsg) ;
00056         void Release();
00057         CEikDialog* AsEikDialog();
00058     private:
00059         void CreateLocalDialogIfRequired();     
00060         CEikAlert* iLocalDialog;
00061         CBufFlat* iNotifierBuffer;
00062     };
00063 
00064 #endif

Copyright © Nokia Corporation 2001-2008
Back to top