|
S60 3rd Edition SDK for Symbian OS Example Applications Guide |
00001 /* 00002 * ============================================================================ 00003 * Name : CLmUiRefAppContainer.h 00004 * Part of : Landmarks Ui Reference Application 00005 * Interface : 00006 * Description : 00007 * Declares container control class for application. 00008 * Version : 00009 * 00010 * Copyright (c) 2005-2006 Nokia Corporation. 00011 * This material, including documentation and any related 00012 * computer programs, is protected by copyright controlled by 00013 * Nokia Corporation. 00014 * ============================================================================ 00015 */ 00016 00017 #ifndef CLMUIREFAPPCONTAINER_H 00018 #define CLMUIREFAPPCONTAINER_H 00019 00020 // INCLUDES 00021 #include <coecntrl.h> 00022 00023 // FORWARD DECLARATIONS 00024 00025 // CLASS DECLARATION 00026 00027 /** 00028 * CLmUiRefAppContainer container control class. 00029 * 00030 */ 00031 class CLmUiRefAppContainer: public CCoeControl 00032 { 00033 public: // Constructors and destructor 00034 00035 00036 /* Two-phased constructor 00037 * @param aKeyProcessor 00038 * @param aParent 00039 * @param aRect A rectangle for drawing. 00040 * @return The newly created object. 00041 */ 00042 static CLmUiRefAppContainer* NewL(MObjectProvider* aParent, 00043 const TRect& aRect ); 00044 00045 /** 00046 * Destructor. 00047 */ 00048 ~CLmUiRefAppContainer(); 00049 00050 public: // New functions 00051 00052 00053 public: // Functions from base classes 00054 00055 void Draw(const TRect& /*aRect*/) const; 00056 00057 private: // Functions from base classes 00058 00059 /** 00060 * From CoeControl,SizeChanged. 00061 */ 00062 void SizeChanged(); 00063 00064 /** 00065 * From CoeControl,CountComponentControls. 00066 */ 00067 TInt CountComponentControls() const; 00068 00069 /** 00070 * From CCoeControl,ComponentControl. 00071 */ 00072 CCoeControl* ComponentControl(TInt aIndex) const; 00073 00074 00075 private: 00076 /** 00077 * C++ default constructor. 00078 * @param aKeyProcessor 00079 * @return newly instantiated object 00080 */ 00081 CLmUiRefAppContainer(); 00082 00083 void ConstructL(const TRect& aRect); 00084 00085 00086 private: //data 00087 00088 CEikLabel* iLabel; // example label 00089 CEikLabel* iToDoLabel; // example label 00090 00091 }; 00092 00093 #endif 00094 00095 // End of File
|
© Nokia 2006 |