|
Nokia N97 SDK Example Applications Guide |
00001 /* Copyright (c) 2005-2006 Nokia Corporation. 00002 * This material, including documentation and any related 00003 * computer programs, is protected by copyright controlled by 00004 * Nokia Corporation. 00005 */ 00006 00007 #ifndef __AIWCONSUMERBASICSAPPVIEW_H__ 00008 #define __AIWCONSUMERBASICSAPPVIEW_H__ 00009 00010 // INCLUDES 00011 #include <coecntrl.h> 00012 00013 class CEikLabel; 00014 class CAIWConsumerBasicsAppUi; 00015 00016 // CLASS DECLARATION 00017 class CAIWConsumerBasicsAppView : public CCoeControl 00018 { 00019 public: // New methods 00020 00021 /** 00022 * Two-phased constructor. 00023 * Create a CAIWConsumerBasicsAppView object, which will draw itself to aRect. 00024 * @param aRect The rectangle this view will be drawn to. 00025 * @param aAppUi Reference to appui object. 00026 * @return a pointer to the created instance of CAIWConsumerBasicsAppView. 00027 */ 00028 static CAIWConsumerBasicsAppView* NewL( const TRect& aRect, 00029 CAIWConsumerBasicsAppUi& aAppUi ); 00030 00031 /** 00032 * Two-phased constructor. 00033 * Create a CAIWConsumerBasicsAppView object, which will draw itself 00034 * to aRect. 00035 * @param aRect Rectangle this view will be drawn to. 00036 * @param aAppUi Reference to appui object. 00037 * @return A pointer to the created instance of CAIWConsumerBasicsAppView. 00038 */ 00039 static CAIWConsumerBasicsAppView* NewLC( const TRect& aRect, 00040 CAIWConsumerBasicsAppUi& aAppUi ); 00041 00042 /** 00043 * Virtual Destructor. 00044 */ 00045 virtual ~CAIWConsumerBasicsAppView(); 00046 00047 public: // Functions from base classes 00048 00049 /** 00050 * From CCoeControl. 00051 * Draw this CAIWConsumerBasicsAppView to the screen. 00052 * @param aRect the rectangle of this view that needs updating 00053 */ 00054 void Draw( const TRect& aRect ) const; 00055 00056 /** 00057 * From CoeControl. 00058 * Called by framework when the view size is changed. 00059 */ 00060 void SizeChanged(); 00061 00062 /** 00063 * From CCoeControl 00064 * Gets help context. 00065 * @param aContext Help context. 00066 */ 00067 void GetHelpContext(TCoeHelpContext& aContext) const; 00068 00069 private: // Constructors 00070 00071 /** 00072 * 2nd phase constructor. 00073 * Perform the second phase construction of a CAIWConsumerBasicsAppView object. 00074 * @param aRect The rectangle this view will be drawn to. 00075 */ 00076 void ConstructL(const TRect& aRect); 00077 00078 /** 00079 * C++ default constructor. 00080 * @param aAppUi Reference to appui object. 00081 */ 00082 CAIWConsumerBasicsAppView( CAIWConsumerBasicsAppUi& aAppUi ); 00083 00084 private: // Data 00085 /** 00086 * Reference to AppUi. Not owned. 00087 */ 00088 CAIWConsumerBasicsAppUi& iAppUi; 00089 00090 /** 00091 * For resource reading and fonts. 00092 */ 00093 CCoeEnv* iCoeEnv; 00094 00095 /** 00096 * Info texts shown on the screen. 00097 */ 00098 HBufC* iAttachedText; 00099 HBufC* iDetachedText; 00100 HBufC* iMakeAttachText; 00101 HBufC* iMakeDetachText; 00102 }; 00103 00104 #endif // __AIWCONSUMERBASICSAPPVIEW_H__ 00105 00106 // End of File
|
© Nokia 2009 |