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