perfmon/inc/perfmon_datapopupcontainer.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_DATAPOPUPCONTAINER_H
       
    20 #define PERFMON_DATAPOPUPCONTAINER_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 CPerfMonDataPopupContainer : public CCoeControl, public MDrawUpdateCallback
       
    35     {
       
    36 public:
       
    37     void ConstructL(const TRect& aRect);
       
    38     ~CPerfMonDataPopupContainer();
       
    39 
       
    40 protected:
       
    41     void Draw(const TRect& aRect) const;
       
    42     virtual void SizeChanged();    
       
    43 
       
    44 public:
       
    45     void SetPositionAndSize();
       
    46     void UpdateVisibility(TBool aForeground=ETrue);
       
    47 
       
    48 public: // from MDrawUpdateCallback
       
    49     void DrawUpdate();
       
    50 
       
    51 private:
       
    52     CPerfMonModel*                      iModel;
       
    53     RWindowGroup                        iWindowGroup;
       
    54     const CFont*                        iFont; 
       
    55     TInt                                iFontSize;
       
    56     };
       
    57     
       
    58 #endif
       
    59 
       
    60 // End of File