aknnotewrappers.h

Go to the documentation of this file.
00001 /*
00002 * ============================================================================
00003 *  Name     : AknNoteWrappers.h
00004 *  Part of  : Avkon
00005 *
00006 *  Description:
00007 *       Wrappers for standard note types
00008 *  Version:
00009 *
00010 *  Copyright © 2002 Nokia Corporation.
00011 *  This material, including documentation and any related 
00012 *  computer programs, is protected by copyright controlled by 
00013 *  Nokia Corporation. All rights are reserved. Copying, 
00014 *  including reproducing, storing,  adapting or translating, any 
00015 *  or all of this material requires the prior written consent of 
00016 *  Nokia Corporation. This material also contains confidential 
00017 *  information which may not be disclosed to others without the 
00018 *  prior written consent of Nokia Corporation.
00019 * ============================================================================
00020 */
00021 
00022 
00023 #ifndef     __AknNoteWrappers_H__
00024 #define     __AknNoteWrappers_H__
00025 
00026 
00027 #include <AknNoteDialog.h> 
00028 #include <AknQueryDialog.h>
00029 
00030 
00031 class TResourceReader;
00032 
00033 
00034 class TAknNoteResData
00035         {
00036 public:
00037     void ReadFromResource(TResourceReader& aResReader);
00038 public:
00039         TInt iResId;
00040     CAknNoteDialog::TTimeout iTimeout;
00041     CAknNoteDialog::TTone iTone;
00042     TBuf<256> iText;
00043         };
00044 
00048 class CAknNoteWrapper : public CAknNoteDialog
00049     {
00050     public:
00056         IMPORT_C CAknNoteWrapper();
00065         IMPORT_C CAknNoteWrapper(CAknNoteWrapper** aSelfPtr);
00077                 IMPORT_C TInt ExecuteLD(TInt aResId);
00090                 IMPORT_C TInt ExecuteLD(TInt aResId, const TDesC& aPrompt);
00091 
00097             IMPORT_C void HandlePointerEventL(const TPointerEvent& aPointerEvent);              
00098     private:
00102         IMPORT_C void* ExtensionInterface( TUid aInterface );
00103         private: 
00104                 IMPORT_C virtual void CEikDialog_Reserved_1();
00105                 IMPORT_C virtual void CEikDialog_Reserved_2();  
00106         private: 
00107                 IMPORT_C virtual void CAknNoteDialog_Reserved();
00108         private:
00109                 TAknNoteResData ReadResDataAndPrepareL(TInt aResId);
00110 
00111         public:
00112                 
00119                 IMPORT_C virtual void HandleDialogPageEventL( TInt aEventID );
00120     private:
00121         IMPORT_C virtual void Reserved1();
00122     };
00123 
00129 class CAknResourceNoteDialog : public CAknNoteWrapper
00130     {
00131     public:
00141                 IMPORT_C TInt ExecuteLD();
00151                 IMPORT_C TInt ExecuteLD(const TDesC& aPrompt);
00156         IMPORT_C void HandlePointerEventL(const TPointerEvent& aPointerEvent);            
00157 
00158     protected:
00166         inline CAknResourceNoteDialog(TInt aResId)
00167             : iResId(aResId)
00168             {
00169             }
00170                 
00182         inline CAknResourceNoteDialog(TInt aResId, CAknNoteWrapper** aSelfPtr)
00183             : CAknNoteWrapper(aSelfPtr), iResId(aResId)
00184             {
00185             }
00186     private:
00190         IMPORT_C void* ExtensionInterface( TUid aInterface );
00191         private: 
00192                 IMPORT_C virtual void CEikDialog_Reserved_1();
00193                 IMPORT_C virtual void CEikDialog_Reserved_2();  
00194         private: 
00195                 IMPORT_C virtual void CAknNoteDialog_Reserved();
00196         private: // new virtual function
00197                 IMPORT_C virtual void CAknResourceNoteDialog_Reserved();
00198     private:
00199         TInt iResId;
00200                 TInt iSpare;
00201     };
00202 
00207 class CAknConfirmationNote : public CAknResourceNoteDialog
00208     {
00209     public:
00216         IMPORT_C CAknConfirmationNote();
00227         IMPORT_C CAknConfirmationNote( TBool aWaitingDialog );
00237         IMPORT_C CAknConfirmationNote(CAknConfirmationNote** aSelfPtr);
00242         IMPORT_C void HandlePointerEventL(const TPointerEvent& aPointerEvent);
00243     private:
00247         IMPORT_C void* ExtensionInterface( TUid aInterface );
00248         private: 
00249                 IMPORT_C virtual void CEikDialog_Reserved_1();
00250                 IMPORT_C virtual void CEikDialog_Reserved_2();  
00251         private: 
00252                 IMPORT_C virtual void CAknNoteDialog_Reserved();
00253         private: 
00254                 IMPORT_C virtual void CAknResourceNoteDialog_Reserved();
00255     };
00256 
00261 class CAknInformationNote : public CAknResourceNoteDialog
00262     {
00263     public:
00270         IMPORT_C CAknInformationNote();
00281                 IMPORT_C CAknInformationNote( TBool aWaitingDialog );
00291                 IMPORT_C CAknInformationNote(CAknInformationNote** aSelfPtr);
00296         IMPORT_C void HandlePointerEventL(const TPointerEvent& aPointerEvent);          
00297     private:
00301         IMPORT_C void* ExtensionInterface( TUid aInterface );        
00302         private: 
00303                 IMPORT_C virtual void CEikDialog_Reserved_1();
00304                 IMPORT_C virtual void CEikDialog_Reserved_2();  
00305         private: 
00306                 IMPORT_C virtual void CAknNoteDialog_Reserved();
00307         private: 
00308                 IMPORT_C virtual void CAknResourceNoteDialog_Reserved();
00309     };
00310 
00315 class CAknErrorNote : public CAknResourceNoteDialog
00316     {
00317     public:
00324                 IMPORT_C CAknErrorNote();
00335                 IMPORT_C CAknErrorNote( TBool aWaitingDialog );
00345                 IMPORT_C CAknErrorNote(CAknErrorNote** aSelfPtr);
00350             IMPORT_C void HandlePointerEventL(const TPointerEvent& aPointerEvent);  
00351     private:
00355         IMPORT_C void* ExtensionInterface( TUid aInterface );
00356         private: 
00357                 IMPORT_C virtual void CEikDialog_Reserved_1();
00358                 IMPORT_C virtual void CEikDialog_Reserved_2();  
00359         private: 
00360                 IMPORT_C virtual void CAknNoteDialog_Reserved();
00361         private: 
00362                 IMPORT_C virtual void CAknResourceNoteDialog_Reserved();
00363     };
00364 
00369 class CAknWarningNote : public CAknResourceNoteDialog
00370     {
00371     public:
00378         IMPORT_C CAknWarningNote();
00389                 IMPORT_C CAknWarningNote( TBool aWaitingDialog );
00399                 IMPORT_C CAknWarningNote(CAknWarningNote** aSelfPtr);
00404             IMPORT_C void HandlePointerEventL(const TPointerEvent& aPointerEvent);
00405     private:
00409         IMPORT_C void* ExtensionInterface( TUid aInterface );
00410         private: 
00411                 IMPORT_C virtual void CEikDialog_Reserved_1();
00412                 IMPORT_C virtual void CEikDialog_Reserved_2();  
00413         private: 
00414                 IMPORT_C virtual void CAknNoteDialog_Reserved();
00415         private: 
00416                 IMPORT_C virtual void CAknResourceNoteDialog_Reserved();
00417     };
00418 
00419 #endif  
00420 

Copyright © Nokia Corporation 2001-2008
Back to top