Nokia N97 SDK
Example Applications Guide

datamobilityappmenuview.h

00001 /*
00002 * ============================================================================
00003 *  Name         : datamobilityappmenuview.h
00004 *  Part of      : datamobility
00005 *  Description  : Declares the menu view class.
00006 *
00007 *  Copyright (c) 2007 Nokia Corporation.
00008 *  This material, including documentation and any related
00009 *  computer programs, is protected by copyright controlled by
00010 *  Nokia Corporation.
00011 * ============================================================================
00012 */
00013 
00014 #ifndef DATAMOBILITYAPPMENUVIEW_H
00015 #define DATAMOBILITYAPPMENUVIEW_H
00016 
00017 // INCLUDES
00018 #include <aknview.h>
00019 #include <aknnavide.h>
00020 
00021 // FORWARD DECLARATIONS
00022 class CDataMobilityAppMenuContainer;
00023 
00024 // CLASS DECLARATION
00025 
00026 /**
00027 *  CDataMobilityAppMenuView view class.
00028 *
00029 */
00030 class CDataMobilityAppMenuView : public CAknView
00031     {
00032     public: // Constructors and destructor
00033 
00034         /**
00035         * NewL is first phase of two-phased constructor.
00036         */
00037         static CDataMobilityAppMenuView* NewL();
00038 
00039         /**
00040         * Destructor.
00041         */
00042         ~CDataMobilityAppMenuView();
00043 
00044     public: // Functions from base classes
00045 
00046         /**
00047         * Returns view´s id.
00048         * @return View id.
00049         */
00050         TUid Id() const;
00051 
00052         /**
00053         * Handles a command.
00054         * @param aCommand A command ID.
00055         */
00056         void HandleCommandL( TInt aCommand );
00057 
00058     private:
00059 
00060         /**
00061         * Symbian OS default constructor.
00062         */
00063         void ConstructL();
00064 
00065         /**
00066         * Initializes view when activated.
00067         * @param aPrevViewId Id of the previous view (not used).
00068         * @param aCustomMessageId Custom message id (not used).
00069         * @param aCustomMessage Custom message (not used).
00070         */
00071         void DoActivateL( const TVwsViewId& aPrevViewId,
00072                           TUid aCustomMessageId,
00073                           const TDesC8& aCustomMessage );
00074 
00075         /**
00076         * Deactivates view.
00077         */
00078         void DoDeactivate();
00079 
00080     private: // Data
00081 
00082         CDataMobilityAppMenuContainer*     iContainer;
00083         CAknNavigationDecorator*           iNaviDecorator;
00084     };
00085 
00086 #endif  // DATAMOBILITYAPPMENUVIEW_H
00087 
00088 // End of File

© Nokia 2009

Back to top