- // Copyright (c) 2006 Nokia Corporation.
- #ifndef __S60UIEXAMPLE_INITIALVIEW_H__
- #define __S60UIEXAMPLE_INITIALVIEW_H__
- #include <aknview.h>
- class CS60UIExampleInitialContainer;
- class CS60UIExampleModel;
- /**
- * CS60UIExampleInitialView view class.
- * An instance of the Application View object for the S60UIExample
- * example application
- */
- class CS60UIExampleInitialView: public CAknView
- {
- public: // Constructors and destructor
- /**
- * NewL.
- * Two-phased constructor.
- * Construct a CS60UIExampleInitialView for the AVKON application aApp.
- * Using two phase construction,and return a pointer to the created object
- * @return a pointer to the created instance of CS60UIExampleInitialView
- */
- static CS60UIExampleInitialView* NewL(CS60UIExampleModel& aModel);
- /**
- * NewLC.
- * Two-phased constructor.
- * Construct a CS60UIExampleInitialView for the AVKON application aApp.
- * Using two phase construction,and return a pointer to the created object
- * @return a pointer to the created instance of CS60UIExampleInitialView
- */
- static CS60UIExampleInitialView* NewLC(CS60UIExampleModel& aModel);
- /**
- * ~CS60UIExampleInitialView.
- * Virtual Destructor.
- */
- virtual ~CS60UIExampleInitialView();
- public: // Functions from base classes from CAknView
- /**
- * Id
- * @return Id Uid value
- */
- TUid Id() const;
- /**
- * HandleCommandL
- * From CAknView, takes care of command handling.
- * @param aCommand Command to be handled
- */
- void HandleCommandL(TInt aCommand);
- /**
- * DoActivateL
- * From CAknExView, activate an AknView.
- * @param aPrevViewId The id of the previous view
- * @param aCustomMessageId message identifier
- * @param aCustomMessage custom message provided when the view is changed
- */
- void DoActivateL(const TVwsViewId& aPrevViewId,
- TUid aCustomMessageId,
- const TDesC8& aCustomMessage);
- /**
- * DoDeactivate
- * From AknView, deactivate an AknView
- * Remove the container class instance from the App UI's stack and
- * deletes the instance
- */
- void DoDeactivate();
- private: // Constructors and destructor
- /**
- * CS60UIExampleInitialView.
- * C++ default constructor.
- */
- CS60UIExampleInitialView(CS60UIExampleModel& aModel);
- /**
- * ConstructL.
- * 2nd phase constructor.
- */
- void ConstructL();
- private: // Data
- /**
- * iContainer,container for this view
- * owned by CS60UIExampleInitialView object.
- */
- CS60UIExampleInitialContainer* iContainer;
- /** View Identifier **/
- TUid iIdentifier;
- /**
- * iModel, has the model data
- * Not owned by this class
- */
- CS60UIExampleModel& iModel;
- };
- #endif // __S60UIEXAMPLE_INITIALVIEW_H__
- // End of File