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 AFTASKSTORAGE_H |
|
18 #define AFTASKSTORAGE_H |
|
19 #include <e32base.h> |
|
20 class CAfTask; |
|
21 class MAfTaskStorage |
|
22 { |
|
23 public: |
|
24 /** |
|
25 * Register new task instance in storage. Ownership is transfered to storage. |
|
26 * @param task - instance that need to be registered |
|
27 */ |
|
28 virtual void PushL(CAfTask * task)=0; |
|
29 |
|
30 /** |
|
31 * Unregister task instance from storage. Ownership is transfered to caller. |
|
32 * @param task - instance that need to be unregistered |
|
33 */ |
|
34 virtual void Pop(CAfTask *)=0; |
|
35 |
|
36 /** |
|
37 * List of registered tasks |
|
38 */ |
|
39 virtual const RPointerArray<CAfTask>& StorageData() const =0; |
|
40 |
|
41 /** |
|
42 * Removes not valid task |
|
43 */ |
|
44 virtual void RemoveNotValidTasks(const CSession2* session) =0; |
|
45 }; |
|
46 |
|
47 #endif //AFTASKSTORAGE_H |
|
48 |