Nokia N97 SDK
Example Applications Guide

OomExampleAppView.h

00001 /*
00002  * ============================================================================
00003  *  Name        : OomExampleAppView.h
00004  *  Part of     : OomMonitor Example Application
00005  *  Description : ?Description
00006  *  Version     : %version: 1 % << Don't touch! Updated by Synergy at check-out.
00007  *
00008  *  Copyright © 2009 Nokia.  All rights reserved.
00009  *  This material, including documentation and any related computer
00010  *  programs, is protected by copyright controlled by Nokia.  All
00011  *  rights are reserved.  Copying, including reproducing, storing,
00012  *  adapting or translating, any or all of this material requires the
00013  *  prior written consent of Nokia.  This material also contains
00014  *  confidential information which may not be disclosed to others
00015  *  without the prior written consent of Nokia.
00016  * ============================================================================
00017  * Template version: 4.2
00018  */
00019 
00020 #ifndef __OOMEXAMPLEAPPVIEW_h__
00021 #define __OOMEXAMPLEAPPVIEW_h__
00022 
00023 #include <coecntrl.h>
00024 
00025 class COomExampleAppView : public CCoeControl
00026     {
00027 public: // New methods
00028 
00029     /**
00030      * NewL.
00031      * Two-phased constructor.
00032      * Create a COomExampleAppView object, which will draw itself to aRect.
00033      * @param aRect The rectangle this view will be drawn to.
00034      * @return a pointer to the created instance of COomExampleAppView.
00035      */
00036     static COomExampleAppView* NewL( const TRect& aRect );
00037 
00038     /**
00039      * NewLC.
00040      * Two-phased constructor.
00041      * Create a COomExampleAppView object, which will draw itself
00042      * to aRect.
00043      * @param aRect Rectangle this view will be drawn to.
00044      * @return A pointer to the created instance of COomExampleAppView.
00045      */
00046     static COomExampleAppView* NewLC( const TRect& aRect );
00047 
00048     /**
00049      * ~COomExampleAppView
00050      * Virtual Destructor.
00051      */
00052     virtual ~COomExampleAppView();
00053 
00054 public: // Functions from base classes
00055 
00056     /**
00057      * From CCoeControl, Draw
00058      * Draw this COomExampleAppView to the screen.
00059      * @param aRect the rectangle of this view that needs updating
00060      */
00061     void Draw( const TRect& aRect ) const;
00062 
00063     /**
00064      * From CoeControl, SizeChanged.
00065      * Called by framework when the view size is changed.
00066      */
00067     virtual void SizeChanged();
00068 
00069     /**
00070      * From CoeControl, HandlePointerEventL.
00071      * Called by framework when a pointer touch event occurs.
00072      * Note: although this method is compatible with earlier SDKs, 
00073      * it will not be called in SDKs without Touch support.
00074      * @param aPointerEvent the information about this event
00075      */
00076     virtual void HandlePointerEventL( const TPointerEvent& aPointerEvent );
00077 
00078 private: // Constructors
00079 
00080     /**
00081      * ConstructL
00082      * 2nd phase constructor.
00083      * Perform the second phase construction of a
00084      * COomExampleAppView object.
00085      * @param aRect The rectangle this view will be drawn to.
00086      */
00087     void ConstructL(const TRect& aRect);
00088 
00089     /**
00090      * COomExampleAppView.
00091      * C++ default constructor.
00092      */
00093     COomExampleAppView();
00094 
00095     };
00096 
00097 #endif // __OOMEXAMPLEAPPVIEW_h__

© Nokia 2009

Back to top