tstaskmonitor/server/inc/hsrunningappserver.h
changeset 109 e0aa398e6810
parent 104 9b022b1f357c
child 115 3ab5c078b490
equal deleted inserted replaced
104:9b022b1f357c 109:e0aa398e6810
     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 #ifndef RUNNINGAPPSERVER_H
       
    18 #define RUNNINGAPPSERVER_H
       
    19 
       
    20 // INCLUDES
       
    21 #include <e32std.h>
       
    22 #include <e32base.h>
       
    23 #include <w32std.h>
       
    24 #include "tsdataobserver.h"
       
    25 
       
    26 class CRunningAppStorage;
       
    27 class CTsResourceManager;
       
    28 class CTsWindowGroupsMonitor;
       
    29 /**
       
    30  *  CRunningAppServer
       
    31  * 
       
    32  */
       
    33 class CRunningAppServer : public CServer2,
       
    34                           public MHsDataObserver,
       
    35                           public MHsDataObserverStorage
       
    36 {
       
    37 public:
       
    38     /**
       
    39      * Destructor.
       
    40      */
       
    41     ~CRunningAppServer();
       
    42 
       
    43     /**
       
    44      * Two-phased constructor.
       
    45      */
       
    46     static CRunningAppServer* NewLC();
       
    47     
       
    48 public: //MHsDataObserver
       
    49     void DataChanged();
       
    50     
       
    51 public: //MHsDataObserverStorage
       
    52     void PushL(CHsDataObserver*);
       
    53     void Pop(CHsDataObserver*);
       
    54     void Cancel(const RMessage2&);
       
    55 
       
    56 private:
       
    57     /**
       
    58      * Constructor for performing 1st stage construction
       
    59      */
       
    60     CRunningAppServer();
       
    61 
       
    62     /**
       
    63      * Default constructor for performing 2nd stage construction
       
    64      */
       
    65     void ConstructL();
       
    66 
       
    67     /**
       
    68      * Interface implementation
       
    69      * @see CServer2::NewSessionL(const TVersion&, const RMessage2&)
       
    70      */
       
    71     CSession2* NewSessionL(const TVersion& version, const RMessage2& message) const;
       
    72 private:
       
    73     RPointerArray<CHsDataObserver> mObservers;
       
    74     RWsSession mWsSession;
       
    75     CTsResourceManager* mResources;
       
    76     CTsWindowGroupsMonitor* mMonitor;
       
    77     CRunningAppStorage* mStorage;
       
    78     
       
    79     CBase *mScreenshotProviderStarter;
       
    80     CBase *mBacksteppingEngine;
       
    81 };
       
    82 
       
    83 #endif // RUNNINGAPPSERVER_H