perfmon/inc/perfmon_graphscontainer.h
branchRCL_3
changeset 21 b3cee849fa46
parent 20 48060abbbeaf
child 22 fad26422216a
equal deleted inserted replaced
20:48060abbbeaf 21:b3cee849fa46
     1 /*
       
     2 * Copyright (c) 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 #ifndef PERFMON_GRAPHSCONTAINER_H
       
    20 #define PERFMON_GRAPHSCONTAINER_H
       
    21 
       
    22 // INCLUDES
       
    23 #include <coecntrl.h>
       
    24 
       
    25 #include "perfmon_drawcallback.h"
       
    26 
       
    27 
       
    28 // FORWARD DECLARATIONS
       
    29 class CPerfMonModel;
       
    30 
       
    31 
       
    32 // CLASS DECLARATIONS
       
    33 
       
    34 class CPerfMonGraphsContainer : public CCoeControl, public MDrawUpdateCallback
       
    35     {
       
    36 public:
       
    37     void ConstructL(const TRect& aRect);
       
    38     ~CPerfMonGraphsContainer();
       
    39 
       
    40 private:
       
    41     void Draw(const TRect& aRect) const;
       
    42     void HandleResourceChange(TInt aType);
       
    43 
       
    44 public:
       
    45 	TKeyResponse OfferKeyEventL(const TKeyEvent& aKeyEvent, TEventCode /*aType*/);
       
    46 
       
    47 public: // from MDrawUpdateCallback
       
    48     void DrawUpdate();
       
    49 
       
    50 private:
       
    51     CPerfMonModel*                      iModel;
       
    52     const CFont*                        iFont;
       
    53     };
       
    54     
       
    55 #endif
       
    56 
       
    57 // End of File