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