S60 3rd Edition SDK for Symbian OS
Example Applications Guide

MessagingContainer.h

00001 /*
00002 * ==============================================================================
00003 *  Name        : MessagingContainer.h
00004 *  Part of     : Messaging
00005 *  Interface   : 
00006 *  Description : 
00007 *  Version     : 
00008 *
00009 *  Copyright (c) 2005-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 MESSAGINGCONTAINER_H
00017 #define MESSAGINGCONTAINER_H
00018 
00019 // INCLUDES
00020 #include <coecntrl.h>
00021 
00022 // FORWARD DECLARATIONS
00023 
00024 // CLASS DECLARATION
00025 
00026 /**
00027 *  CMessagingContainer  container control class.
00028 *  
00029 */
00030 class CMessagingContainer : public CCoeControl, MCoeControlObserver
00031     {
00032     public: // Constructors and destructor
00033                 /**
00034                 * NewL.
00035                 * Two-phased constructor.
00036                 * Construct a CMessagingContainer using two phase construction,
00037                 * and return a pointer to the created object
00038                 * @return A pointer to the created instance of CMessagingContainer
00039                 */
00040                 static CMessagingContainer* NewL( const TRect& aRect );
00041 
00042                 /**
00043                 * NewLC.
00044                 * Two-phased constructor.
00045                 * Construct a CMessagingContainer using two phase construction,
00046                 * and return a pointer to the created object
00047                 * @return A pointer to the created instance of CMessagingContainer
00048                 */
00049                 static CMessagingContainer* NewLC( const TRect& aRect );    
00050         
00051         /**
00052         * Destructor.
00053         */
00054         ~CMessagingContainer();
00055         
00056         private:
00057                 /**
00058         * Symbian default constructor.
00059         * @param aRect Frame rectangle for container.
00060         */
00061         void ConstructL( const TRect& aRect );
00062 
00063     public: // New functions
00064     
00065     public: // Functions from base classes
00066 
00067     private: // Functions from base classes
00068 
00069         /**
00070         * From CoeControl,SizeChanged.
00071         */
00072         void SizeChanged();
00073 
00074         /**
00075         * From CoeControl,CountComponentControls.
00076         */
00077         TInt CountComponentControls() const;
00078 
00079         /**
00080         * From CCoeControl,ComponentControl.
00081         */
00082         CCoeControl* ComponentControl( TInt aIndex ) const;
00083 
00084         /**
00085         * From CCoeControl,Draw.
00086         */
00087         void Draw( const TRect& aRect ) const;
00088 
00089                 /**
00090                 * From MCoeControlObserver
00091                 * Acts upon changes in the hosted control's state. 
00092                 *
00093                 * @param        aControl        The control changing its state
00094                 * @param        aEventType      The type of control event 
00095                 */
00096         void HandleControlEventL( CCoeControl* aControl, TCoeEvent aEventType );
00097         
00098     private: //data
00099         
00100     };
00101 
00102 #endif
00103 
00104 // End of File

© Nokia 2006

Back to top