|
1 /* |
|
2 * Copyright (c) 2007-2008 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: CIAUpdateInstallOperation |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef IA_UPDATE_INSTALL_OPERATION_H |
|
21 #define IA_UPDATE_INSTALL_OPERATION_H |
|
22 |
|
23 |
|
24 #include <ncdinstalloperationobserver.h> |
|
25 |
|
26 #include "iaupdatenormalcontentoperation.h" |
|
27 |
|
28 class CIAUpdateNode; |
|
29 |
|
30 |
|
31 /** |
|
32 * CIAUpdateInstallOperation can handle installing of node content. |
|
33 */ |
|
34 class CIAUpdateInstallOperation : public CIAUpdateNormalContentOperation, |
|
35 public MNcdInstallOperationObserver |
|
36 { |
|
37 |
|
38 public: |
|
39 |
|
40 /** |
|
41 * @see CIAUpdateInstallOperation::CIAUpdateInstallOperation |
|
42 * @return CIAUpdateInstallOperation* Created object. |
|
43 * Ownership is transferred. |
|
44 */ |
|
45 static CIAUpdateInstallOperation* NewL( |
|
46 CIAUpdateNode& aNode, |
|
47 MIAUpdateContentOperationObserver& aObserver ); |
|
48 |
|
49 /** |
|
50 * @see CIAUpdateInstallOperation::NewL |
|
51 */ |
|
52 static CIAUpdateInstallOperation* NewLC( |
|
53 CIAUpdateNode& aNode, |
|
54 MIAUpdateContentOperationObserver& aObserver ); |
|
55 |
|
56 /** |
|
57 * Destructor |
|
58 */ |
|
59 virtual ~CIAUpdateInstallOperation(); |
|
60 |
|
61 |
|
62 public: // MNcdInstallOperationObserver |
|
63 |
|
64 /** |
|
65 * @see MNcdInstallOperationObserver::InstallProgress |
|
66 */ |
|
67 virtual void InstallProgress( |
|
68 MNcdInstallOperation& aOperation, TNcdProgress aProgress ); |
|
69 |
|
70 /** |
|
71 * @see MNcdInstallOperationObserver::QueryReceived |
|
72 */ |
|
73 virtual void QueryReceived( |
|
74 MNcdInstallOperation& aOperation, MNcdQuery* aQuery ); |
|
75 |
|
76 /** |
|
77 * @see MNcdInstallOperationObserver::OperationComplete |
|
78 */ |
|
79 virtual void OperationComplete( |
|
80 MNcdInstallOperation& aOperation, TInt aError ); |
|
81 |
|
82 |
|
83 protected: // CIAUpdateNormalContentOperation |
|
84 |
|
85 /** |
|
86 * @see CIAUpdateContentOperation::HandleContentL |
|
87 */ |
|
88 virtual MNcdOperation* HandleContentL(); |
|
89 |
|
90 |
|
91 private: |
|
92 |
|
93 // Prevent these if not implemented |
|
94 CIAUpdateInstallOperation( |
|
95 const CIAUpdateInstallOperation& aObject ); |
|
96 CIAUpdateInstallOperation& operator =( |
|
97 const CIAUpdateInstallOperation& aObject ); |
|
98 |
|
99 |
|
100 /** |
|
101 * @see CIAUpdateNormalContentOperation::CIAUpdateNormalContentOperation |
|
102 */ |
|
103 CIAUpdateInstallOperation( |
|
104 CIAUpdateNode& aNode, |
|
105 MIAUpdateContentOperationObserver& aObserver ); |
|
106 |
|
107 /** |
|
108 * ConstructL |
|
109 */ |
|
110 void ConstructL(); |
|
111 |
|
112 |
|
113 /** |
|
114 * Starts the silent install operation for given node. |
|
115 * |
|
116 * @return MNcdOperation* Operation that is started. |
|
117 */ |
|
118 MNcdOperation* InstallL(); |
|
119 |
|
120 |
|
121 private: // data |
|
122 |
|
123 }; |
|
124 |
|
125 #endif // IA_UPDATE_INSTALL_OPERATION_H |
|
126 |