|
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: CIAUpdateHistoryItem |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef IA_UPDATE_HISTORY_ITEM_IMPL_H |
|
21 #define IA_UPDATE_HISTORY_ITEM_IMPL_H |
|
22 |
|
23 #include <e32base.h> |
|
24 #include "iaupdatehistoryitem.h" |
|
25 |
|
26 class MNcdPurchaseDetails; |
|
27 class MNcdProvider; |
|
28 |
|
29 /** |
|
30 * CIAUpdateHistoryItem provides history item. |
|
31 * |
|
32 * @since S60 v3.2 |
|
33 */ |
|
34 class CIAUpdateHistoryItem : public CBase, |
|
35 public MIAUpdateHistoryItem |
|
36 { |
|
37 |
|
38 public: |
|
39 |
|
40 /** |
|
41 * @param aDetails Purchase details of this item. |
|
42 * @param aProvider NCD Engine provider can be used to get |
|
43 * history information of nodes. |
|
44 * @return CIAUpdateHistoryItem* |
|
45 * @exception Leaves with KErrArgument if aDetails is NULL. |
|
46 * Leaves with system wide error code. |
|
47 * |
|
48 * @since S60 v3.2 |
|
49 */ |
|
50 static CIAUpdateHistoryItem* NewL( MNcdPurchaseDetails* aDetails, |
|
51 MNcdProvider& aProvider ); |
|
52 |
|
53 /** |
|
54 * @see CIAUpdateHistoryItem::NewL |
|
55 * |
|
56 * @since S60 v3.2 |
|
57 */ |
|
58 static CIAUpdateHistoryItem* NewLC( MNcdPurchaseDetails* aDetails, |
|
59 MNcdProvider& aProvider ); |
|
60 |
|
61 |
|
62 /** |
|
63 * Destructor |
|
64 * |
|
65 * @since S60 v3.2 |
|
66 */ |
|
67 virtual ~CIAUpdateHistoryItem(); |
|
68 |
|
69 |
|
70 /** |
|
71 * @return MNcdPurchaseDetails& Purchase details of this item. |
|
72 * Details are gotten from the purchase history. |
|
73 */ |
|
74 MNcdPurchaseDetails& Details() const; |
|
75 |
|
76 /** |
|
77 * @return MNcdProvider& Provider is used to get the history |
|
78 * information from the NCD Engine. |
|
79 */ |
|
80 MNcdProvider& Provider() const; |
|
81 |
|
82 |
|
83 public: // MIAUpdateHistoryItem |
|
84 |
|
85 /** |
|
86 * @see MIAUpdateHistoryItem::Name |
|
87 */ |
|
88 virtual const TDesC& Name() const; |
|
89 |
|
90 /** |
|
91 * @see MIAUpdateHistoryItem::Version |
|
92 */ |
|
93 virtual const TDesC& Version() const; |
|
94 |
|
95 /** |
|
96 * @see MIAUpdateHistoryItem::LastOperationTime |
|
97 */ |
|
98 virtual TTime LastOperationTime() const; |
|
99 |
|
100 /** |
|
101 * @see MIAUpdateHistoryItem::LastOperationErrorCode |
|
102 */ |
|
103 virtual TInt LastOperationErrorCode() const; |
|
104 |
|
105 /** |
|
106 * @see MIAUpdateHistoryItem::StateL |
|
107 */ |
|
108 virtual TIAHistoryItemState StateL() const; |
|
109 |
|
110 |
|
111 private: |
|
112 |
|
113 /** |
|
114 * @see CIAUpdateHistoryItem::NewL |
|
115 */ |
|
116 CIAUpdateHistoryItem( MNcdProvider& aProvider ); |
|
117 |
|
118 /** |
|
119 * ConstructL |
|
120 * |
|
121 * @see CIAUpdateHistoryItem::NewL |
|
122 */ |
|
123 virtual void ConstructL( MNcdPurchaseDetails* aDetails ); |
|
124 |
|
125 |
|
126 // Prevent these |
|
127 CIAUpdateHistoryItem( const CIAUpdateHistoryItem& aObject ); |
|
128 CIAUpdateHistoryItem& operator =( const CIAUpdateHistoryItem& aObject ); |
|
129 |
|
130 |
|
131 private: // data |
|
132 |
|
133 // Owned. |
|
134 MNcdPurchaseDetails* iDetails; |
|
135 |
|
136 MNcdProvider& iProvider; |
|
137 |
|
138 }; |
|
139 |
|
140 #endif // IA_UPDATE_HISTORY_ITEM_IMPL_H |