Nokia N97 SDK
Example Applications Guide

aknexpopfieldbasedialog.h

00001 /*
00002 * ==============================================================================
00003 *  Name        : aknexpopfieldbasedialog.h
00004 *  Part of     : Popup-field example
00005 *  Interface   :
00006 *  Description :
00007 *  Version     :
00008 *
00009 *  Copyright (c) 2004 - 2006 Nokia Corporation.
00010 *  This material, including documentation and any related
00011 *  computer programs, is protected by copyright controlled by
00012 *  Nokia Corporation.
00013 * ==============================================================================
00014 */
00015 
00016 #ifndef __AKNEXPOPFIELDBASEDIALOG_H__
00017 #define __AKNEXPOPFIELDBASEDIALOG_H__
00018 
00019 // INCLUDES
00020 #include <aknform.h>
00021 
00022 // CLASS DECLARATION
00023 
00024 /**
00025 * CAknExPopFieldDialog
00026 */
00027 class CAknExPopFieldBaseDialog : public CAknForm
00028     {
00029     public: // destructor
00030 
00031         /**
00032         * CAknExPopFieldBaseDialog
00033         * Virtual Destructor.
00034         */
00035         virtual ~CAknExPopFieldBaseDialog();
00036 
00037     protected: // Constructors.
00038 
00039         /**
00040         * CAknExPopFieldBaseDialog
00041         * C++ default constructor.
00042         */
00043         CAknExPopFieldBaseDialog();
00044 
00045 
00046     public: // From CAknDialog
00047 
00048         /**
00049         * From CAknDialog, DynInitMenuPaneL.
00050         * Dims "Label", "Add" and "Delete" menu items.
00051         * @param aResourceId 
00052         * @param aMenuPane Pointer to menu-pane object.
00053         */
00054         virtual void DynInitMenuPaneL( TInt aResourceId, 
00055                                        CEikMenuPane* aMenuPane );
00056 
00057         /**
00058         * From CAknDialog, ProcessCommandL.
00059         * @param aCommandId
00060         */
00061         virtual void ProcessCommandL( TInt aCommandId );
00062 
00063 
00064     protected: // From CAknDialog
00065 
00066         /**
00067         * From CAknDialog, OkToExitL.
00068         * @param aButtonId
00069         * @return TBool ok to Exit?
00070         */
00071         virtual TBool OkToExitL( TInt aButtonId );
00072 
00073 
00074     private: // New functions
00075 
00076         /**
00077         * Configuration values into Popup Fields.
00078         * This is pure virtual function.
00079         */
00080         virtual void ConfigurePopfieldValueL() = 0;
00081 
00082     private: // From CEikDialog
00083 
00084         /**
00085         * From CEikDialog, PreLayoutDynInitL.
00086         * Initialises the dialog's controls before the dialog is sized 
00087         * and layed out.
00088         */
00089         void PreLayoutDynInitL();
00090 
00091         /**
00092         * From CEikDialog, PostLayoutDynInitL.
00093         * Initialises the dialog's controls after the dialog has been sized
00094         * but before it has been activated.
00095         */
00096         void PostLayoutDynInitL();
00097 
00098     };
00099 
00100 #endif  //__AKNEXPOPFIELDBASEDIALOG_H__
00101 
00102 // End of File

© Nokia 2009

Back to top