Nokia N97 SDK
Example Applications Guide

aknexpoplistcontainer.h

00001 /*
00002 * ==============================================================================
00003 *  Name        : aknexpoplistcontainer.h
00004 *  Part of     : Popup-list example
00005 *  Interface   :
00006 *  Description :
00007 *  Version     :
00008 *
00009 *  Copyright (c) 2004 - 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 __AKNEXPOPLISTCONTAINER_H__
00017 #define __AKNEXPOPLISTCONTAINER_H__
00018 
00019 
00020 // INCLUDES
00021 #include <aknview.h>
00022  
00023 // CONSTANTS
00024 const TInt KNumberOfControls = 0;
00025 const TInt KRgbColorGray = 0xaaaaaa;
00026 
00027 
00028 // CLASS DECLARATION
00029 
00030 /**
00031 *  CAknExPopListContainer  container control class.
00032 */
00033 class CAknExPopListContainer : public CCoeControl, MCoeControlObserver
00034     {
00035     public: // Constructors and destructor
00036         
00037         /**
00038         * ConstructL
00039         * 2nd phase constructor.
00040         * @param aRect Frame rectangle for container.
00041         */
00042         void ConstructL(const TRect& aRect);
00043 
00044 
00045         /**
00046         * ~CAknExPopListContainer.
00047         * Virtual Destructor.
00048         */
00049         virtual ~CAknExPopListContainer();
00050 
00051 
00052     private: // Functions from base classes
00053 
00054         /**
00055         * From CoeControl,SizeChanged.
00056         */
00057         void SizeChanged();
00058 
00059         /**
00060         * From CoeControl,CountComponentControls.
00061         * @return number of controls inside this container.
00062         */
00063         TInt CountComponentControls() const;
00064 
00065         /**
00066         * From CCoeControl,ComponentControl.
00067         * @param Index number of the control.
00068         * @return Pointer of controls inside this container.
00069         */
00070         CCoeControl* ComponentControl( TInt aIndex ) const;
00071 
00072         /**
00073         * Draw
00074         * @param Specified area for drawing
00075         */
00076         void Draw(const TRect& aRect) const;
00077 
00078         /**
00079         * From CCoeControl, HandleControlEventL
00080         * Handles an event of type aEventType
00081         * @param aControl Pointer to component control
00082         * @param aEventType Event code
00083         */
00084         void HandleControlEventL( CCoeControl* aControl,
00085                                   TCoeEvent aEventType );
00086         
00087     };
00088 
00089 #endif  // __AKNEXPOPLISTCONTAINER_H__
00090 
00091 // End of File

© Nokia 2009

Back to top