tstaskmonitor/server/inc/hsrunningappsession.h
changeset 94 dbb8300717f7
child 83 156f692b1687
equal deleted inserted replaced
93:82b66994846c 94:dbb8300717f7
       
     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 RUNNINGAPPSESSION_H
       
    18 #define RUNNINGAPPSESSION_H
       
    19 
       
    20 // INCLUDES
       
    21 #include <e32std.h>
       
    22 #include <e32base.h>
       
    23 #include "hsdataobserver.h"
       
    24 #include "hsdataprovider.h"
       
    25 /**
       
    26  *  CActivitySession
       
    27  * 
       
    28  */
       
    29 class CRunningAppSession : public CSession2
       
    30 {
       
    31 public:
       
    32     // Constructors and destructor
       
    33 
       
    34     /**
       
    35      * Destructor.
       
    36      */
       
    37     ~CRunningAppSession();
       
    38 
       
    39     /**
       
    40      * Two-phased constructor.
       
    41      * @param fileSession - initialized file system session
       
    42      * @param taskStorage - global observers storage
       
    43      * @param storage - data storage
       
    44      */
       
    45     static CRunningAppSession* NewL(MHsDataObserverStorage& observerStorage, 
       
    46                                     const MHsDataProvider& dataProvider);
       
    47 
       
    48 private:
       
    49 
       
    50     /**
       
    51      * Constructor for performing 1st stage construction
       
    52      */
       
    53     CRunningAppSession(MHsDataObserverStorage& observerStorage, 
       
    54                        const MHsDataProvider& dataProvider);
       
    55 
       
    56     /**
       
    57      * EPOC default constructor for performing 2nd stage construction
       
    58      */
       
    59     void ConstructL();
       
    60 
       
    61 private:
       
    62     /**
       
    63      * Implements interface
       
    64      * @see void CSession2::ServiceL(const RMessage2&)
       
    65      */
       
    66     void ServiceL(const RMessage2& message);
       
    67 
       
    68 private:
       
    69     MHsDataObserverStorage& mObserverStorage;
       
    70     const MHsDataProvider& mDataProvider;
       
    71 };
       
    72 
       
    73 #endif // RUNNINGAPPSESSION_H