|
1 /* |
|
2 * Copyright (c) 2006 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: Contains CNcdPurchaseHistoryProxy class |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef C_NCDPURCHASEHISTORYPROXY_H |
|
20 #define C_NCDPURCHASEHISTORYPROXY_H |
|
21 |
|
22 |
|
23 #include <e32base.h> |
|
24 #include <e32cmn.h> |
|
25 |
|
26 #include "ncdinterfacebaseproxy.h" |
|
27 #include "ncdpurchasehistory.h" |
|
28 |
|
29 |
|
30 class CNcdOperationManagerProxy; |
|
31 |
|
32 |
|
33 /** |
|
34 * CPurchaseHistoryProxy provides functions to ... |
|
35 * @lib ?library |
|
36 * @since S60 ?S60_version *** for example, S60 v3.0 |
|
37 */ |
|
38 class CNcdPurchaseHistoryProxy : public CNcdInterfaceBaseProxy, |
|
39 public MNcdPurchaseHistory |
|
40 { |
|
41 |
|
42 public: |
|
43 |
|
44 /** |
|
45 * NewL |
|
46 * |
|
47 * @return CNcdPurchaseHistoryProxy* Pointer to the created object |
|
48 * of this class. |
|
49 */ |
|
50 static CNcdPurchaseHistoryProxy* NewL( |
|
51 MCatalogsClientServer& aSession, |
|
52 TInt aHandle, |
|
53 CCatalogsInterfaceBase* aParent, |
|
54 CNcdOperationManagerProxy& aOperationManager ); |
|
55 |
|
56 /** |
|
57 * NewLC |
|
58 * |
|
59 * @return CNcdPurchaseHistoryProxy* Pointer to the created object |
|
60 * of this class. |
|
61 */ |
|
62 static CNcdPurchaseHistoryProxy* NewLC( |
|
63 MCatalogsClientServer& aSession, |
|
64 TInt aHandle, |
|
65 CCatalogsInterfaceBase* aParent, |
|
66 CNcdOperationManagerProxy& aOperationManager ); |
|
67 |
|
68 /** |
|
69 * Destructor |
|
70 */ |
|
71 virtual ~CNcdPurchaseHistoryProxy(); |
|
72 |
|
73 // From MNcdPurchaseHistory |
|
74 |
|
75 /** |
|
76 * @see MNcdPurchaseHistory::SavePurchaseL |
|
77 */ |
|
78 void SavePurchaseL( const MNcdPurchaseDetails& aDetails, |
|
79 TBool aSaveIcon ); |
|
80 |
|
81 /** |
|
82 * @see MNcdPurchaseHistory::PurchaseIdsL |
|
83 */ |
|
84 RArray<TUint> PurchaseIdsL( const MNcdPurchaseHistoryFilter& aFilter ); |
|
85 |
|
86 /** |
|
87 * @see MNcdPurchaseHistory::PurchaseDetailsL |
|
88 */ |
|
89 CNcdPurchaseDetails* PurchaseDetailsL( TUint aPurchaseId, |
|
90 TBool aLoadIcon ); |
|
91 |
|
92 /** |
|
93 * @see MNcdPurchaseHistory::RemovePurchaseL |
|
94 */ |
|
95 void RemovePurchaseL( TUint aPurchaseId ); |
|
96 |
|
97 /** |
|
98 * @see MNcdPurchaseHistory::EventCountL |
|
99 */ |
|
100 TUint EventCountL(); |
|
101 |
|
102 protected: |
|
103 |
|
104 /** |
|
105 * Constructor |
|
106 */ |
|
107 CNcdPurchaseHistoryProxy( |
|
108 MCatalogsClientServer& aSession, |
|
109 TInt aHandle, |
|
110 CCatalogsInterfaceBase* aParent, |
|
111 CNcdOperationManagerProxy& aOperationManager ); |
|
112 |
|
113 /** |
|
114 * ConstructL |
|
115 */ |
|
116 virtual void ConstructL(); |
|
117 |
|
118 private: |
|
119 |
|
120 // Prevent if not implemented |
|
121 CNcdPurchaseHistoryProxy( const CNcdPurchaseHistoryProxy& aObject ); |
|
122 CNcdPurchaseHistoryProxy& operator = |
|
123 ( const CNcdPurchaseHistoryProxy& aObject ); |
|
124 |
|
125 private: // data |
|
126 |
|
127 CNcdOperationManagerProxy& iOperationManager; |
|
128 |
|
129 }; |
|
130 |
|
131 |
|
132 #endif // C_NCDPURCHASEHISTORYPROXY_H |