tstaskmonitor/server/inc/tsrunningappstorage.h
changeset 80 397d00875918
child 83 156f692b1687
equal deleted inserted replaced
73:4bc7b118b3df 80:397d00875918
       
     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 RUNNINGAPPSTORAGE_H
       
    18 #define RUNNINGAPPSTORAGE_H
       
    19 
       
    20 // INCLUDES
       
    21 #include <e32std.h>
       
    22 #include <e32base.h>
       
    23 
       
    24 #include "hsdataobserver.h"
       
    25 #include "hsdataprovider.h"
       
    26 
       
    27 class CTsFswEngine;
       
    28 class CTsFswMonitor;
       
    29 /**
       
    30  *  CRunningAppServer
       
    31  * 
       
    32  */
       
    33 class CRunningAppStorage : public CBase,
       
    34                            public MHsDataProvider, 
       
    35                            public MHsDataObserver
       
    36                           
       
    37 {
       
    38 public:
       
    39     /**
       
    40      * Destructor.
       
    41      */
       
    42     ~CRunningAppStorage();
       
    43 
       
    44     /**
       
    45      * Two-phased constructor.
       
    46      */
       
    47     static CRunningAppStorage* NewL(MHsDataObserver& observer);
       
    48     
       
    49 public: //MHsDataObserver
       
    50     const TDesC8& Data() const; 
       
    51     
       
    52     //MHsDataChangeProvider
       
    53     void DataChanged();
       
    54 
       
    55 private:
       
    56     /**
       
    57      * Constructor for performing 1st stage construction
       
    58      */
       
    59     CRunningAppStorage(MHsDataObserver& observer);
       
    60 
       
    61     /**
       
    62      * Default constructor for performing 2nd stage construction
       
    63      */
       
    64     void ConstructL();
       
    65     
       
    66     void DataChangedL();
       
    67 
       
    68 private:
       
    69     MHsDataObserver& mObserver;
       
    70     RBuf8 mData;
       
    71     
       
    72     CTsFswEngine* mEngine;
       
    73     CTsFswMonitor* mMonitor;
       
    74 
       
    75 };
       
    76 
       
    77 #endif // RUNNINGAPPSERVER_H