Nokia N97 SDK
Example Applications Guide

aknexpopfieldview.h

00001 /*
00002 * ==============================================================================
00003 *  Name        : aknexpopfieldview.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 __AKNEXPOPFIELDVIEW_H__
00017 #define __AKNEXPOPFIELDVIEW_H__
00018 
00019 // INCLUDES
00020 #include <aknview.h>
00021 
00022 // CONSTANTS
00023 const TUid KViewId = { 1 }; // UID of view
00024 const TInt KAknExPopFieldResourceIdInitialize = 0;
00025 const TInt KAknExPopFieldTitleBufLength = 256;
00026 
00027 
00028 // FORWARD DECLARATIONS
00029 class CAknExPopFieldContainer;
00030 
00031 
00032 
00033 // CLASS DECLARATION
00034 
00035 /**
00036 * CAknExPopFieldView view class.
00037 *
00038 */
00039 class CAknExPopFieldView : public CAknView
00040     {
00041     public: // Constructors and destructor
00042 
00043         /**
00044         * CAknExPopFieldView
00045         * C++ default constructor.
00046         */
00047         CAknExPopFieldView();
00048 
00049         /**
00050         * ConstructL
00051         * 2nd phase constructor.
00052         */
00053         void ConstructL();
00054 
00055         /**
00056         * CAknExPopFieldView
00057         * Virtual Destructor.
00058         */
00059         virtual ~CAknExPopFieldView();
00060 
00061 
00062     public: // New functions
00063 
00064         /**
00065         * DisplayNextOutlineL
00066         * Display next outline.
00067         */
00068         void DisplayNextOutlineL();
00069 
00070     public: // From CAknView.
00071 
00072         /**
00073         * From CAknView, Id.
00074         * Returns the ID of view.
00075         * @return The ID of view.
00076         */
00077         TUid Id() const;
00078 
00079         /**
00080         * From CAknView, HandleCommandL.
00081         * handles the commands. if the command is command which is require to
00082         * display outline-screen, the command is reported to container class.
00083         * @param aCommand Command to be handled.
00084         */
00085         void HandleCommandL( TInt aCommand );
00086         
00087         /**
00088         * HandleSizeChange.
00089         * Handles a resolution change
00090         */
00091         void HandleSizeChange();
00092 
00093     private: // New functions
00094 
00095         /**
00096         * IndicateTitlePaneTextL
00097         * Set title text to status-pane
00098         * @param aCommand
00099         */
00100         void IndicateTitlePaneTextL( TInt aCommand );
00101 
00102 
00103     private: // From CAknView
00104 
00105         /**
00106         * From CAknView, DoActivateL.
00107         * Creates the Container class object.
00108         * @param aPrevViewId aPrevViewId is not used.
00109         * @param aCustomMessageId aCustomMessageId is not used.
00110         * @param aCustomMessage aCustomMessage is not used.
00111         */
00112         void DoActivateL( const TVwsViewId& aPrevViewId,
00113                           TUid aCustomMessageId,
00114                           const TDesC8& aCustomMessage );
00115 
00116         /**
00117         * From CAknView, DoDeactivate.
00118         * Deletes the Container class object.
00119         */
00120         void DoDeactivate();
00121 
00122 
00123     private: // Data
00124 
00125         /**
00126         * iContainer
00127         * Owned by CAknExPopFieldView object.
00128         */
00129         CAknExPopFieldContainer* iContainer;
00130 
00131 
00132         // Integer for Current outline
00133         TInt iCurrentOutline;
00134     };
00135 
00136 #endif  //__AKNEXPOPFIELDVIEW_H__
00137 
00138 // End of File

© Nokia 2009

Back to top