taskswitcher/server/inc/tsrunningappserver.h
changeset 116 305818acdca4
child 119 50e220be30d1
equal deleted inserted replaced
112:dbfb5e38438b 116:305818acdca4
       
     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 CTsResourceManager;
       
    27 class CTsWindowGroupsMonitor;
       
    28 class MTsModel;
       
    29 class CTsRunningAppModel;
       
    30 class CTsStorage;
       
    31 class CTsSerializedDataProvider;
       
    32 class CTsServiceProvider;
       
    33 
       
    34 /**
       
    35  *  CRunningAppServer
       
    36  * 
       
    37  */
       
    38 class CTsRunningAppServer : public CServer2,
       
    39                             public MTsDataObserver
       
    40 {
       
    41 public:
       
    42     ~CTsRunningAppServer();
       
    43 
       
    44     static CTsRunningAppServer* NewLC();
       
    45     
       
    46 public: //MHsDataObserver
       
    47     void DataChanged();
       
    48 
       
    49 private:
       
    50     CTsRunningAppServer();
       
    51     void ConstructL();
       
    52     CSession2* NewSessionL(const TVersion& aVersion, const RMessage2& aMsg) const;
       
    53     void addProviders( RPointerArray<MTsModel> &aDst, 
       
    54                        const CTsServiceProvider& aServiceProvider);
       
    55 
       
    56 private:
       
    57     CTsResourceManager* iResources;
       
    58     CTsWindowGroupsMonitor* iMonitor;
       
    59     CTsSerializedDataProvider* iSerializer;
       
    60     CTsStorage* iStorage; 
       
    61     CTsServiceProvider* iServiceProvider;
       
    62     CTsRunningAppModel* iAppsModel;
       
    63     CBase *iBacksteppingEngine;
       
    64 };
       
    65 
       
    66 #endif // RUNNINGAPPSERVER_H