Nokia N97 SDK
Example Applications Guide

aknexqueryview.h

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

© Nokia 2009

Back to top