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 "tsdataobserver.h" |
|
24 #include "hsdataprovider.h" |
|
25 #include "tsdatastorage.h" |
|
26 /** |
|
27 * CActivitySession |
|
28 * |
|
29 */ |
|
30 class CRunningAppSession : public CSession2 |
|
31 { |
|
32 public: |
|
33 // Constructors and destructor |
|
34 |
|
35 /** |
|
36 * Destructor. |
|
37 */ |
|
38 ~CRunningAppSession(); |
|
39 |
|
40 /** |
|
41 * Two-phased constructor. |
|
42 * @param fileSession - initialized file system session |
|
43 * @param taskStorage - global observers storage |
|
44 * @param storage - data storage |
|
45 */ |
|
46 static CRunningAppSession* NewL(MHsDataObserverStorage& observerStorage, |
|
47 const MHsDataProvider& dataProvider, |
|
48 MTsDataStorage& dataStorage); |
|
49 |
|
50 private: |
|
51 |
|
52 /** |
|
53 * Constructor for performing 1st stage construction |
|
54 */ |
|
55 CRunningAppSession(MHsDataObserverStorage& observerStorage, |
|
56 const MHsDataProvider& dataProvider, |
|
57 MTsDataStorage& dataStorage); |
|
58 |
|
59 /** |
|
60 * EPOC default constructor for performing 2nd stage construction |
|
61 */ |
|
62 void ConstructL(); |
|
63 |
|
64 private: |
|
65 /** |
|
66 * Implements interface |
|
67 * @see void CSession2::ServiceL(const RMessage2&) |
|
68 */ |
|
69 void ServiceL(const RMessage2& message); |
|
70 |
|
71 private: |
|
72 MHsDataObserverStorage& mObserverStorage; |
|
73 const MHsDataProvider& mDataProvider; |
|
74 MTsDataStorage& mDataStorage; |
|
75 }; |
|
76 |
|
77 #endif // RUNNINGAPPSESSION_H |
|