|
1 /* |
|
2 * Copyright (c) 2008-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 the License "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 * This file defines a SIF Server task that implements the CSifTransportTask interface. |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 /** |
|
21 @file |
|
22 @internalComponent |
|
23 */ |
|
24 |
|
25 #ifndef SIFSERVERTASK_H |
|
26 #define SIFSERVERTASK_H |
|
27 |
|
28 #include <f32file.h> |
|
29 #include <usif/sif/siftransporttask.h> |
|
30 #include "sifservercommon.h" |
|
31 |
|
32 namespace Usif |
|
33 { |
|
34 class CSifPlugin; |
|
35 |
|
36 /** |
|
37 A SIF Server task. It implements the functionality of the SIF Server. |
|
38 |
|
39 This task is instantiated and executed by the @see CSifTransportRequest class |
|
40 in response to an incoming software management request. |
|
41 */ |
|
42 class CSifServerTask : public CSifTransportTask |
|
43 { |
|
44 public: |
|
45 /** |
|
46 Instantiates a SIF Server task. |
|
47 |
|
48 @return Pointer to a @see CSifServerTask object. |
|
49 */ |
|
50 static CSifServerTask* NewL(TransportTaskFactory::TTaskType aTaskType, TTransportTaskParams& aParams); |
|
51 |
|
52 virtual ~CSifServerTask(); |
|
53 |
|
54 protected: |
|
55 /** |
|
56 Implements the functionality of the SIF Server. |
|
57 |
|
58 @return TBool, ETrue if the processing of a software management request |
|
59 is completed and the task can be cleaned up, EFalse if the request requires |
|
60 further processing so this method will be called again. |
|
61 */ |
|
62 virtual TBool ExecuteImplL(); |
|
63 |
|
64 /** |
|
65 Cancels an ongoing asynchronous request. |
|
66 */ |
|
67 virtual void CancelImpl(); |
|
68 |
|
69 private: |
|
70 CSifServerTask(TransportTaskFactory::TTaskType aTaskType, TTransportTaskParams& aParams); |
|
71 |
|
72 void SelectAndLoadPluginL(); |
|
73 |
|
74 TransportTaskFactory::TTaskType iTaskType; |
|
75 CSifPlugin* iPlugin; |
|
76 TUid iEcomKey; |
|
77 }; |
|
78 |
|
79 } // End of namespace Usif |
|
80 |
|
81 |
|
82 #endif // #ifndef SIFSERVERTASK_H |