locationlandmarksuirefapp/inc/LmUiRefAppContainer.h
branchRCL_3
changeset 18 870918037e16
parent 0 522cd55cc3d7
equal deleted inserted replaced
17:1fc85118c3ae 18:870918037e16
       
     1 /*
       
     2 * Copyright (c) 2003 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:   LandmarksUi Content File -
       
    15 *     Declares container control class for application.
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 
       
    21 
       
    22 
       
    23 
       
    24 #ifndef CLMUIREFAPPCONTAINER_H
       
    25 #define CLMUIREFAPPCONTAINER_H
       
    26 
       
    27 // INCLUDES
       
    28 #include <coecntrl.h>
       
    29 
       
    30 // FORWARD DECLARATIONS
       
    31 
       
    32 // CLASS DECLARATION
       
    33 
       
    34 /**
       
    35 *  CLmUiRefAppContainer container control class.
       
    36 *
       
    37 */
       
    38 class CLmUiRefAppContainer: public CCoeControl
       
    39     {
       
    40     public: // Constructors and destructor
       
    41 
       
    42 
       
    43          /* Two-phased constructor
       
    44          * @param aKeyProcessor
       
    45          * @param aParent
       
    46          * @param aRect A rectangle for drawing.
       
    47          * @return The newly created object.
       
    48          */
       
    49          static CLmUiRefAppContainer* NewL(MObjectProvider* aParent,
       
    50 		                           const TRect& aRect );
       
    51 
       
    52         /**
       
    53         * Destructor.
       
    54         */
       
    55         ~CLmUiRefAppContainer();
       
    56 
       
    57     public: // New functions
       
    58 
       
    59 
       
    60     public: // Functions from base classes
       
    61 
       
    62 	void Draw(const TRect& /*aRect*/) const;
       
    63 
       
    64     private: // Functions from base classes
       
    65 
       
    66        /**
       
    67         * From CoeControl,SizeChanged.
       
    68         */
       
    69         void SizeChanged();
       
    70 
       
    71        /**
       
    72         * From CoeControl,CountComponentControls.
       
    73         */
       
    74         TInt CountComponentControls() const;
       
    75 
       
    76        /**
       
    77         * From CCoeControl,ComponentControl.
       
    78         */
       
    79         CCoeControl* ComponentControl(TInt aIndex) const;
       
    80 
       
    81 
       
    82        private:
       
    83         /**
       
    84         * C++ default constructor.
       
    85         * @param aKeyProcessor
       
    86         * @return newly instantiated object
       
    87         */
       
    88         CLmUiRefAppContainer();
       
    89 
       
    90         void ConstructL(const TRect& aRect);
       
    91 
       
    92 
       
    93     private: //data
       
    94 
       
    95         CEikLabel* iLabel;          // example label
       
    96         CEikLabel* iToDoLabel;      // example label
       
    97 
       
    98     };
       
    99 
       
   100 #endif
       
   101 
       
   102 // End of File