examples/SFExamples/RecipeEx/inc/MainViewContainer.h

00001 // Symbian Foundation Example Code
00002 // 
00003 // This software is in the public domain. No copyright is claimed, and you 
00004 // may use it for any purpose without license from the Symbian Foundation.
00005 // No warranty for any purpose is expressed or implied by the authors or
00006 // the Symbian Foundation. 
00007 
00008 
00009 #ifndef __MAINVIEWCONTAINER_H__
00010 #define __MAINVIEWCONTAINER_H__
00011 
00012 // Includes
00013 #include <coecntrl.h>
00014    
00015 // Forward declarations
00016 class CEikLabel;       
00017 
00025 class CMainViewContainer : public CCoeControl
00026     {
00027 public: // Constructors and destructor
00028         
00030         static CMainViewContainer* NewL(const TRect& aRect);
00031 
00033         static CMainViewContainer* NewLC(const TRect& aRect);
00034 
00036         ~CMainViewContainer();
00037 
00038 private: // More construction
00039         
00041         void ConstructL(const TRect& aRect);    
00042         
00043 private: // Functions from base classes
00044         
00049         void SizeChanged();
00050         
00054         TInt CountComponentControls() const;
00055         
00057         CCoeControl* ComponentControl(TInt aIndex) const;
00058         
00062         void Draw(const TRect& aRect) const;
00063         
00069         void HandleResourceChange(TInt aType);  
00070         
00071 private: //data
00072 
00076         CEikLabel* iLabel;          
00077 
00078     };
00079 
00080 #endif // __MAINVIEWCONTAINER_H__
00081 
00082 // End of File

Generated by  doxygen 1.6.2