S60 3rd Edition SDK for Symbian OS
Example Applications Guide

HWRMTestAppContainer.h

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 CEikLabel;        // for example labels
00024 class CAknSingleStyleListBox;
00025 
00026 
00027 // CLASS DECLARATION
00028 
00029 /**
00030 *  CHWRMTestAppContainer  container control class.
00031 *
00032 *  @lib HWRMTestApp.exe
00033 *  @since Series S60 3.0
00034 */
00035 class CHWRMTestAppContainer : public CCoeControl, 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         ~CHWRMTestAppContainer();
00049 
00050     public: // New functions
00051         
00052         void AddMessageL( const TDesC& aMsg ) const;
00053 
00054     public: // Functions from base classes
00055 
00056         TKeyResponse OfferKeyEventL( const TKeyEvent& aKeyEvent,TEventCode aType );
00057         
00058     private: // Functions from base classes
00059 
00060        /**
00061         * From CoeControl,SizeChanged.
00062         */
00063         void SizeChanged();
00064 
00065        /**
00066         * From CoeControl,CountComponentControls.
00067         */
00068         TInt CountComponentControls() const;
00069 
00070        /**
00071         * From CCoeControl,ComponentControl.
00072         */
00073         CCoeControl* ComponentControl(TInt aIndex) const;
00074 
00075        /**
00076         * From CCoeControl,Draw.
00077         */
00078         void Draw(const TRect& aRect) const;
00079 
00080         /**
00081         * From CoeControl, HandleResourceChange.
00082         * Called by framework when the view layout is changed.
00083         */
00084         virtual void HandleResourceChange(TInt aType);
00085         
00086         /**
00087         * From MCoeControlObserver, HandleControlEventL.
00088         * Handles an event from an observed control.
00089         */
00090         void HandleControlEventL(CCoeControl* aControl,TCoeEvent aEventType);
00091 
00092     private: //data
00093         
00094         CAknSingleStyleListBox* iListBox;
00095         CEikLabel* iLabel;          // example label
00096     };
00097 
00098 #endif  // HWRMTESTAPPCONTAINER_H
00099 
00100 // End of File
00101 

© Nokia 2006

Back to top