Nokia N97 SDK Example Applications Guide

- Main Page
- Namespaces
- Classes
- Files

# HsWidgetAppView.h

    00001 /*
    00002  ============================================================================
    00003  Name           : HsWidgetAppView.h
    00004  Author   :
    00005  Copyright   : Your copyright notice
    00006  Description : Declares view class for application.
    00007  ============================================================================
    00008  */
    00009
    00010 #ifndef __HSWIDGETAPPVIEW_H__
    00011 #define __HSWIDGETAPPVIEW_H__
    00012
    00013 // INCLUDES
    00014 #include <coecntrl.h>
    00015
    00016 // CLASS DECLARATION
    00017 class CHsWidgetAppView : public CCoeControl
    00018         {
    00019 public:
    00020         // New methods
    00021
    00022         /**
    00023          * NewL.
    00024          * Two-phased constructor.
    00025          * Create a CHsWidgetAppView object, which will draw itself to aRect.
    00026          * @param aRect The rectangle this view will be drawn to.
    00027          * @return a pointer to the created instance of CHsWidgetAppView.
    00028          */
    00029         static CHsWidgetAppView* NewL(const TRect& aRect);
    00030
    00031         /**
    00032          * NewLC.
    00033          * Two-phased constructor.
    00034          * Create a CHsWidgetAppView object, which will draw itself
    00035          * to aRect.
    00036          * @param aRect Rectangle this view will be drawn to.
    00037          * @return A pointer to the created instance of CHsWidgetAppView.
    00038          */
    00039         static CHsWidgetAppView* NewLC(const TRect& aRect);
    00040
    00041         /**
    00042          * ~CHsWidgetAppView
    00043          * Virtual Destructor.
    00044          */
    00045         virtual ~CHsWidgetAppView();
    00046
    00047 public:
    00048         // Functions from base classes
    00049
    00050         /**
    00051          * From CCoeControl, Draw
    00052          * Draw this CHsWidgetAppView to the screen.
    00053          * @param aRect the rectangle of this view that needs updating
    00054          */
    00055         void Draw(const TRect& aRect) const;
    00056
    00057         /**
    00058          * From CoeControl, SizeChanged.
    00059          * Called by framework when the view size is changed.
    00060          */
    00061         virtual void SizeChanged();
    00062
    00063 private:
    00064         // Constructors
    00065
    00066         /**
    00067          * ConstructL
    00068          * 2nd phase constructor.
    00069          * Perform the second phase construction of a
    00070          * CHsWidgetAppView object.
    00071          * @param aRect The rectangle this view will be drawn to.
    00072          */
    00073         void ConstructL(const TRect& aRect);
    00074
    00075         /**
    00076          * CHsWidgetAppView.
    00077          * C++ default constructor.
    00078          */
    00079         CHsWidgetAppView();
    00080
    00081         };
    00082
    00083 #endif // __HSWIDGETAPPVIEW_H__
    00084 // End of File

© Nokia 2009 |