|
Nokia N97 SDK Example Applications Guide |
00001 00002 /* 00003 * ============================================================================== 00004 * Name : MyViewContainer2.h 00005 * Part of : MyView 00006 * Interface : 00007 * Description : Declares container for second view 00008 * Version : 00009 * 00010 * Copyright (c) 2002 - 2007 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 MYVIEWCONTAINER2_H 00018 #define MYVIEWCONTAINER2_H 00019 00020 // INCLUDES 00021 #include <coecntrl.h> 00022 00023 // FORWARD DECLARATIONS 00024 class CEikLabel; // for example labels 00025 00026 // CLASS DECLARATION 00027 00028 /** 00029 * CMyViewContainer2 container control class. 00030 * 00031 */ 00032 class CMyViewContainer2 : public CCoeControl, MCoeControlObserver 00033 { 00034 public: // Constructors and destructor 00035 00036 /** 00037 * EPOC default constructor. 00038 * @param aRect Frame rectangle for container. 00039 */ 00040 void ConstructL(const TRect& aRect); 00041 00042 /** 00043 * Destructor. 00044 */ 00045 ~CMyViewContainer2(); 00046 00047 private: // Functions from base classes 00048 00049 /** 00050 * From CoeControl,SizeChanged. 00051 */ 00052 void SizeChanged(); 00053 00054 /** 00055 * From CoeControl,CountComponentControls. 00056 */ 00057 TInt CountComponentControls() const; 00058 00059 /** 00060 * From CCoeControl,ComponentControl. 00061 */ 00062 CCoeControl* ComponentControl(TInt aIndex) const; 00063 00064 /** 00065 * From CCoeControl,Draw. 00066 */ 00067 void Draw(const TRect& aRect) const; 00068 00069 /** 00070 * From CCoeControl, HandleControlEventL. 00071 */ 00072 // event handling section 00073 // e.g Listbox events 00074 void HandleControlEventL(CCoeControl* aControl,TCoeEvent aEventType); 00075 00076 private: //data 00077 00078 CEikLabel* iLabel; // example label 00079 }; 00080 00081 #endif 00082 00083 // End of File
|
© Nokia 2009 |