defaultapplicationsettings/server/inc/das_view.h
branchRCL_3
changeset 14 5f281e37a2f5
parent 0 254040eb3b7d
equal deleted inserted replaced
13:90fe62538f66 14:5f281e37a2f5
       
     1 /*
       
     2 * Copyright (c) 2005-2006 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:  Standard View
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef C_DEFAULTAPPVIEW_H
       
    20 #define C_DEFAULTAPPVIEW_H
       
    21 
       
    22 #include <coecntrl.h> // CCoeControl
       
    23 
       
    24 
       
    25 // FORWARD DECLARATIONS
       
    26 class CDefaultAppAppUi;
       
    27 
       
    28 
       
    29 class CDefaultAppView : public CCoeControl
       
    30     {
       
    31     public: // New methods
       
    32 
       
    33         /**
       
    34         * NewL.
       
    35         * Two-phased constructor.
       
    36         * Create a CDefaultAppView object, which will draw itself to aRect.
       
    37         * @param aRect The rectangle this view will be drawn to.
       
    38         * @return a pointer to the created instance of CDefaultAppView.
       
    39         */
       
    40         static CDefaultAppView* NewL( const TRect& aRect );
       
    41 
       
    42         /**
       
    43         * NewLC.
       
    44         * Two-phased constructor.
       
    45         * Create a CDefaultAppView object, which will draw itself
       
    46         * to aRect.
       
    47         * @param aRect Rectangle this view will be drawn to.
       
    48         * @return A pointer to the created instance of CDefaultAppView.
       
    49         */
       
    50         static CDefaultAppView* NewLC( const TRect& aRect );
       
    51 
       
    52         /**
       
    53         * CDefaultAppView
       
    54         * Virtual Destructor.
       
    55         */
       
    56         virtual ~CDefaultAppView();
       
    57 
       
    58     public:  // Functions from base classes
       
    59 
       
    60         /**
       
    61         * From CCoeControl, Draw
       
    62         * Draw this CDefaultAppView to the screen.
       
    63         * @param aRect the rectangle of this view that needs updating
       
    64         */
       
    65         void Draw( const TRect& aRect ) const;
       
    66 
       
    67         /**
       
    68         * From CoeControl, SizeChanged.
       
    69         * Called by framework when the view size is changed.
       
    70         */
       
    71         virtual void SizeChanged();
       
    72 
       
    73     private: // Constructors
       
    74 
       
    75         /**
       
    76         * ConstructL
       
    77         * @param aRect The rectangle this view will be drawn to.
       
    78         */
       
    79         void ConstructL(const TRect& aRect);
       
    80 
       
    81         /**
       
    82         * C++ default constructor.
       
    83         */
       
    84         CDefaultAppView();
       
    85 
       
    86     };
       
    87 
       
    88 #endif // C_DEFAULTAPPVIEW_H
       
    89 
       
    90 // end of file
       
    91 
       
    92