perfmon/inc/perfmon_datapopupcontainer.h
branchRCL_3
changeset 20 fad26422216a
parent 0 d6fe6244b863
equal deleted inserted replaced
19:b3cee849fa46 20:fad26422216a
       
     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