|
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: ?Description |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef IA_UPDATE_NODE_DETAILS_H |
|
20 #define IA_UPDATE_NODE_DETAILS_H |
|
21 |
|
22 |
|
23 #include <e32base.h> |
|
24 #include <e32cmn.h> |
|
25 #include "iaupdatenode.h" |
|
26 #include "iaupdatebasenode.h" |
|
27 |
|
28 class CIAUpdateNodeDependency; |
|
29 class CIAUpdatePlatformDependency; |
|
30 class MNcdNodeMetadata; |
|
31 |
|
32 |
|
33 class CIAUpdateNodeDetails : public CBase |
|
34 { |
|
35 |
|
36 public: |
|
37 |
|
38 /** |
|
39 * @param aData If NULL then all the details values will be set to defaults. |
|
40 * If metadata is not NULL then its details key-value-pairs are used to create |
|
41 * contents of this class object. Ownership is not transferred. |
|
42 */ |
|
43 static CIAUpdateNodeDetails* NewL( const MNcdNodeMetadata* aData ); |
|
44 static CIAUpdateNodeDetails* NewLC( const MNcdNodeMetadata* aData ); |
|
45 |
|
46 virtual ~CIAUpdateNodeDetails(); |
|
47 |
|
48 /** |
|
49 * @param aData If NULL then all the details values will be set to defaults. |
|
50 * If metadata is not NULL then its details key-value-pairs are used to create |
|
51 * contents of this class object. Ownership is not transferred. |
|
52 */ |
|
53 void SetDetailsL( const MNcdNodeMetadata* aData ); |
|
54 |
|
55 MIAUpdateNode::TPackageType ContentType() const; |
|
56 |
|
57 MIAUpdateBaseNode::TImportance Importance() const; |
|
58 |
|
59 void SetImportance( MIAUpdateBaseNode::TImportance aImportance ); |
|
60 |
|
61 const TDesC& SearchCriteria() const; |
|
62 |
|
63 TBool EmbededDegrades() const; |
|
64 |
|
65 void GetDependenciesL( |
|
66 RPointerArray< CIAUpdateNodeDependency >& aDependencies ) const; |
|
67 |
|
68 CIAUpdatePlatformDependency& PlatformDependency() const; |
|
69 |
|
70 const TDesC& FwVersion1() const; |
|
71 |
|
72 const TDesC& FwVersion2() const; |
|
73 |
|
74 const TDesC& FwVersion3() const; |
|
75 |
|
76 TBool RebootAfterInstall() const; |
|
77 |
|
78 |
|
79 private: |
|
80 |
|
81 CIAUpdateNodeDetails(); |
|
82 void ConstructL( const MNcdNodeMetadata* aData ); |
|
83 |
|
84 void ClearAll(); |
|
85 |
|
86 // Prevent these if they are not implemented. |
|
87 CIAUpdateNodeDetails( const CIAUpdateNodeDetails& aObject ); |
|
88 CIAUpdateNodeDetails& operator =( const CIAUpdateNodeDetails& aObject ); |
|
89 |
|
90 |
|
91 private: // data |
|
92 |
|
93 MIAUpdateNode::TPackageType iType; |
|
94 MIAUpdateBaseNode::TImportance iImportance; |
|
95 HBufC* iSearchCriteria; |
|
96 |
|
97 RPointerArray< CIAUpdateNodeDependency > iDependencies; |
|
98 CIAUpdatePlatformDependency* iPlatformDependency; |
|
99 |
|
100 HBufC* iFwVersion1; |
|
101 HBufC* iFwVersion2; |
|
102 HBufC* iFwVersion3; |
|
103 |
|
104 TBool iRebootAfterInstall; |
|
105 |
|
106 }; |
|
107 |
|
108 #endif // IA_UPDATE_NODE_DETAILS_H |