|
Nokia N97 SDK Example Applications Guide |
00001 /* 00002 * ============================================================================== 00003 * Name : HWRMTestAppContainer.h 00004 * Part of : HWRMTestApp 00005 * Interface : 00006 * Description : Declares container control for application. 00007 * Version : 00008 * 00009 * Copyright (c) 2002-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 HWRMTESTAPPCONTAINER_H 00017 #define HWRMTESTAPPCONTAINER_H 00018 00019 // INCLUDES 00020 #include <coecntrl.h> 00021 00022 // FORWARD DECLARATIONS 00023 class CEikEdwin; 00024 00025 // CLASS DECLARATION 00026 00027 /** 00028 * CHWRMTestAppContainer container control class. 00029 * 00030 * @lib HWRMTestApp.exe 00031 * @since Series S60 3.0 00032 */ 00033 class CHWRMTestAppContainer : public CCoeControl, public MCoeControlObserver 00034 { 00035 public: // Constructors and destructor 00036 00037 /** 00038 * EPOC default constructor. 00039 * @param aRect Frame rectangle for container. 00040 */ 00041 void ConstructL(const TRect& aRect); 00042 00043 /** 00044 * Destructor. 00045 */ 00046 ~CHWRMTestAppContainer(); 00047 00048 public: // New functions 00049 00050 void AddMessageL( const TDesC& aMsg ) const; 00051 00052 public: // Functions from base classes 00053 00054 TKeyResponse OfferKeyEventL( const TKeyEvent& aKeyEvent,TEventCode aType ); 00055 00056 private: // Functions from base classes 00057 00058 /** 00059 * From CoeControl,SizeChanged. 00060 */ 00061 void SizeChanged(); 00062 00063 /** 00064 * From CoeControl,CountComponentControls. 00065 */ 00066 TInt CountComponentControls() const; 00067 00068 /** 00069 * From CCoeControl,ComponentControl. 00070 */ 00071 CCoeControl* ComponentControl(TInt aIndex) const; 00072 00073 /** 00074 * From CCoeControl,Draw. 00075 */ 00076 void Draw(const TRect& aRect) const; 00077 00078 /** 00079 * From CoeControl, HandleResourceChange. 00080 * Called by framework when the view layout is changed. 00081 */ 00082 virtual void HandleResourceChange(TInt aType); 00083 00084 /** 00085 * From MCoeControlObserver, HandleControlEventL. 00086 * Handles an event from an observed control. 00087 */ 00088 void HandleControlEventL(CCoeControl* aControl,TCoeEvent aEventType); 00089 00090 private: //data 00091 00092 /** 00093 * Editor window for displaying messages. 00094 * Own. 00095 */ 00096 CEikEdwin* iEdwin; 00097 }; 00098 00099 #endif // HWRMTESTAPPCONTAINER_H 00100 00101 // End of File 00102
|
© Nokia 2009 |