tstaskmonitor/server/inc/hsrunningappsession.h
author hgs
Fri, 14 May 2010 17:24:44 +0300
changeset 94 dbb8300717f7
child 83 156f692b1687
permissions -rw-r--r--
201019

/*
* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of "Eclipse Public License v1.0"
* which accompanies this distribution, and is available
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
*
* Initial Contributors:
* Nokia Corporation - initial contribution.
*
* Contributors:
*
* Description:
*
*/
#ifndef RUNNINGAPPSESSION_H
#define RUNNINGAPPSESSION_H

// INCLUDES
#include <e32std.h>
#include <e32base.h>
#include "hsdataobserver.h"
#include "hsdataprovider.h"
/**
 *  CActivitySession
 * 
 */
class CRunningAppSession : public CSession2
{
public:
    // Constructors and destructor

    /**
     * Destructor.
     */
    ~CRunningAppSession();

    /**
     * Two-phased constructor.
     * @param fileSession - initialized file system session
     * @param taskStorage - global observers storage
     * @param storage - data storage
     */
    static CRunningAppSession* NewL(MHsDataObserverStorage& observerStorage, 
                                    const MHsDataProvider& dataProvider);

private:

    /**
     * Constructor for performing 1st stage construction
     */
    CRunningAppSession(MHsDataObserverStorage& observerStorage, 
                       const MHsDataProvider& dataProvider);

    /**
     * EPOC default constructor for performing 2nd stage construction
     */
    void ConstructL();

private:
    /**
     * Implements interface
     * @see void CSession2::ServiceL(const RMessage2&)
     */
    void ServiceL(const RMessage2& message);

private:
    MHsDataObserverStorage& mObserverStorage;
    const MHsDataProvider& mDataProvider;
};

#endif // RUNNINGAPPSESSION_H