resourcemgmt/hwresourcesmgr/test/multiclient/HWRMLightTestB/inc/HWRMLightTestBappview.h
changeset 0 4e1aa6a622a0
equal deleted inserted replaced
-1:000000000000 0:4e1aa6a622a0
       
     1 /*
       
     2 * Copyright (c) 2003-2009 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:
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef __HWRMLightTestB_APPVIEW_H__
       
    21 #define __HWRMLightTestB_APPVIEW_H__
       
    22 
       
    23 
       
    24 #include <coecntrl.h>
       
    25 
       
    26 /** 
       
    27   @class CHWRMLightTestBAppView
       
    28   
       
    29   An instance of CHWRMLightTestBAppView is the Application View object
       
    30   for the HWRMLightTestB example application
       
    31   * * Nokia Core OS *
       
    32   */
       
    33 class CHWRMLightTestBAppView : public CCoeControl
       
    34     {
       
    35 public:
       
    36 
       
    37 /**
       
    38   NewL
       
    39    
       
    40   Create a CHWRMLightTestBAppView object, which will draw itself to aRect
       
    41   @param aRect The rectangle this view will be drawn to
       
    42   @return A pointer to the created instance of CHWRMLightTestBAppView
       
    43   */
       
    44     static CHWRMLightTestBAppView* NewL(const TRect& aRect);
       
    45 
       
    46 /**
       
    47   NewLC
       
    48    
       
    49   Create a CHWRMLightTestBAppView object, which will draw itself to aRect
       
    50   @param aRect The rectangle this view will be drawn to
       
    51   @return A pointer to the created instance of CHWRMLightTestBAppView
       
    52   */
       
    53     static CHWRMLightTestBAppView* NewLC(const TRect& aRect);
       
    54 
       
    55 
       
    56 /**
       
    57   ~CHWRMLightTestBAppView
       
    58   
       
    59   Destroy the object
       
    60   */
       
    61      ~CHWRMLightTestBAppView();
       
    62 
       
    63 
       
    64 public:  // from CCoeControl
       
    65 /**
       
    66   Draw
       
    67   
       
    68   Draw this CHWRMLightTestBAppView to the screen
       
    69   @param aRect The rectangle of this view that needs updating
       
    70   */
       
    71     void Draw(const TRect& aRect) const;
       
    72   
       
    73 
       
    74 private:
       
    75 
       
    76 /**
       
    77   ConstructL
       
    78   
       
    79    Perform the second phase construction of a CHWRMLightTestBAppView object
       
    80   @param aRect The rectangle this view will be drawn to
       
    81   */
       
    82     void ConstructL(const TRect& aRect);
       
    83 
       
    84 /**
       
    85   CHWRMLightTestBAppView
       
    86   
       
    87   Perform the first phase of two phase construction 
       
    88   */
       
    89     CHWRMLightTestBAppView();
       
    90     };
       
    91 
       
    92 
       
    93 #endif // __HWRMLightTestB_APPVIEW_H__