equal
deleted
inserted
replaced
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 AFSESSION_H |
|
18 #define AFSESSION_H |
|
19 |
|
20 #ifndef __E32SVR_H__ |
|
21 #define __E32SVR_H__ |
|
22 #endif |
|
23 // INCLUDES |
|
24 #include <e32std.h> |
|
25 #include <e32base.h> |
|
26 #include <f32file.h> |
|
27 |
|
28 #include "aftaskstorage.h" |
|
29 |
|
30 class CAfStorage; |
|
31 |
|
32 class CAfSession : public CSession2, |
|
33 public MAfTaskStorage |
|
34 { |
|
35 public: |
|
36 ~CAfSession(); |
|
37 |
|
38 static CAfSession* NewL(RFs& fileSession, |
|
39 MAfTaskStorage& taskStorage, |
|
40 CAfStorage&storage); |
|
41 |
|
42 public: |
|
43 void PushL(CAfTask *); |
|
44 |
|
45 void Pop(CAfTask *); |
|
46 |
|
47 const RPointerArray<CAfTask>& StorageData() const; |
|
48 |
|
49 void RemoveNotValidTasks(const CSession2* session); |
|
50 |
|
51 private: |
|
52 CAfSession(RFs& fileSession, |
|
53 MAfTaskStorage& taskStorage, |
|
54 CAfStorage& storage); |
|
55 |
|
56 void ConstructL(); |
|
57 |
|
58 private: |
|
59 void ServiceL(const RMessage2& message); |
|
60 |
|
61 private: |
|
62 RFs& mFileSession; |
|
63 MAfTaskStorage& mTasksStorage; |
|
64 CAfStorage& mStorage; |
|
65 RPointerArray<CAfTask> mRunningTasks; |
|
66 }; |
|
67 |
|
68 #endif // AFSESSION_H |
|