S60 3rd Edition SDK FP2 for Symbian OS CommonDialogsEx

- Main Page
- Classes
- Files

# CommonDialogsExContainer.h

    00001 /*
    00002 * ============================================================================
    00003 *  Name        : commondialogsexcontainer.cpp
    00004 *  Part of     : CommonDialogsEx
    00005 *  Description : Declares CommonDialogsEx container.
    00006 *  Version     :
    00007 *
    00008 *  Copyright (c) 2006 Nokia Corporation.
    00009 *  This material, including documentation and any related
    00010 *  computer programs, is protected by copyright controlled by
    00011 *  Nokia Corporation.
    00012 * ==============================================================================
    00013 */
    00014
    00015 #ifndef CCOMMONDIALOGSEXCONTAINER_H
    00016 #define CCOMMONDIALOGSEXCONTAINER_H
    00017
    00018 // INCLUDES
    00019 #include <coecntrl.h>
    00020
    00021 // FORWARD DECLARATIONS
    00022 class CEikLabel;        // for example labels
    00023
    00024 // CLASS DECLARATION
    00025
    00026 /**
    00027 *  CCommonDialogsExContainer  container control class.
    00028 *
    00029 */
    00030 class CCommonDialogsExContainer : public CCoeControl, MCoeControlObserver
    00031     {
    00032     public: // Constructors and destructor
    00033
    00034         /**
    00035         * EPOC default constructor.
    00036         * @param aRect Frame rectangle for container.
    00037         */
    00038         void ConstructL(const TRect& aRect);
    00039
    00040         /**
    00041         * Destructor.
    00042         */
    00043         ~CCommonDialogsExContainer();
    00044
    00045     public: // New functions
    00046         /**
    00047          * Show text message on screen by using label
    00048          */
    00049         void CCommonDialogsExContainer::ShowTextL(
    00050                     const TDesC& aTextMain, const TDesC& aTextSub);
    00051
    00052     public: // Functions from base classes
    00053
    00054     private: // Functions from base classes
    00055
    00056        /**
    00057         * From CoeControl,SizeChanged.
    00058         */
    00059         void SizeChanged();
    00060
    00061        /**
    00062         * From CoeControl,CountComponentControls.
    00063         */
    00064         TInt CountComponentControls() const;
    00065
    00066        /**
    00067         * From CCoeControl,ComponentControl.
    00068         */
    00069         CCoeControl* ComponentControl(TInt aIndex) const;
    00070
    00071        /**
    00072         * From CCoeControl,Draw.
    00073         */
    00074         void Draw(const TRect& aRect) const;
    00075
    00076        /**
    00077         * From MCoeControlObserver
    00078         */
    00079
    00080         void HandleControlEventL(CCoeControl* aControl,TCoeEvent aEventType);
    00081
    00082             /**
    00083         * From CCoeControl, HandleResourceChange.
    00084         * Make dynamic resolution change smoother.
    00085         * @param aType A message UID value.
    00086         */
    00087         void HandleResourceChange( TInt aType );
    00088
    00089     private: //data
    00090
    00091         CEikLabel* iLabel;          // example label
    00092         CEikLabel* iToDoLabel;      // example label
    00093     };
    00094
    00095 #endif
    00096
    00097 // End of File

© Nokia 2007 |