S60 3rd Edition SDK for Symbian OS
Example Applications Guide

helloworldbasicappview.h

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

© Nokia 2006

Back to top