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 ACTIVITYDATAPROVIDERTASK_H |
|
18 #define ACTIVITYDATAPROVIDERTASK_H |
|
19 |
|
20 // INCLUDES |
|
21 #include <e32std.h> |
|
22 #include <e32base.h> |
|
23 |
|
24 #include "activitytaskstorage.h" |
|
25 #include "activitytask.h" |
|
26 |
|
27 /** |
|
28 * CActivityDataProviderTask |
|
29 * |
|
30 */ |
|
31 class ActivityDataProviderTask |
|
32 { |
|
33 public: |
|
34 /** |
|
35 * Handle data request. Deliver data stored in other task. |
|
36 * @param storage - data tasks storage |
|
37 * @param msg - request message |
|
38 */ |
|
39 static void ExecuteL(MActivityTaskStorage& storage, const RMessage2& msg); |
|
40 |
|
41 private: |
|
42 /** |
|
43 * Write response data to request message |
|
44 * @param msg - destination message |
|
45 * @param src - data source |
|
46 */ |
|
47 static void ProvideDataL(const RMessage2& msg, const CActivityTask& src); |
|
48 |
|
49 }; |
|
50 |
|
51 #endif // ACTIVITYDATAPROVIDERTASK_H |