sysresmonitoring/oommonitor/tsrc/appfortest/inc/controler.h
changeset 77 b01c07dfcf84
equal deleted inserted replaced
74:1505405bc645 77:b01c07dfcf84
       
     1 /*
       
     2 * Copyright (c) 2010 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: This file is the head file of controler.cpp
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef CONTROL_H
       
    19 #define CONTROL_H
       
    20 
       
    21 // INCLUDES
       
    22 #include <e32std.h>
       
    23 #include <e32base.h>
       
    24 #include <w32std.h>     // ws32.lib
       
    25 
       
    26 class CRedrawMonitor;
       
    27 class CEventMonitor;
       
    28 
       
    29 class CControler: public CBase
       
    30     {
       
    31     public:
       
    32         ~CControler();
       
    33         static CControler* NewL();
       
    34         void ExecuteD();
       
    35         void Exit();
       
    36         void Paint(TUint aHandle, const TRect& aRect);
       
    37         void HandleChangeForeGroundL();
       
    38         TBool HandleKeyEventL(const TKeyEvent& aKey, TEventCode aCode);
       
    39         TUid GetForeGroundAppUid();
       
    40         
       
    41     private:
       
    42         CControler();
       
    43         void ConstructL();
       
    44 
       
    45     private:
       
    46         CActiveScheduler* iActiveScheduler;
       
    47         CWsScreenDevice* iScreenDevice;
       
    48         RWsSession       iWsSession;
       
    49         RWindowGroup     iWindowGroup;
       
    50         RWindow*         iWindow;
       
    51         CWindowGc*       iWindowGc;
       
    52         CFont*           iFont;
       
    53         CRedrawMonitor*  iRedrawMonitor;
       
    54         CEventMonitor*   iEventMonitor;
       
    55         
       
    56         TBuf<100>        iBuffer;
       
    57     };
       
    58 
       
    59 #endif // CONTROL_H