|
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 MNcdNode interface |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef NCD_SERVER_REPORT_MANAGER_PROXY_H |
|
20 #define NCD_SERVER_REPORT_MANAGER_PROXY_H |
|
21 |
|
22 #include "ncdinterfacebaseproxy.h" |
|
23 #include "ncdserverreportmanager.h" |
|
24 |
|
25 class MCatalogsClientServer; |
|
26 class CNcdProviderProxy; |
|
27 class CNcdNodeProxy; |
|
28 |
|
29 |
|
30 /** |
|
31 * CNcdServerReportManagerProxy provides proxy side functionality |
|
32 * for MNcdServerReportManager interface. |
|
33 * |
|
34 * @see MNcdServerReportManager |
|
35 * |
|
36 * |
|
37 */ |
|
38 class CNcdServerReportManagerProxy : public CNcdInterfaceBaseProxy, |
|
39 public MNcdServerReportManager |
|
40 { |
|
41 |
|
42 public: |
|
43 |
|
44 /** |
|
45 * @see CNcdServerReportManagerProxy::CNcdServerReportManagerProxy |
|
46 * @return CNcdServerReportManagerProxy* Newly created object. |
|
47 */ |
|
48 static CNcdServerReportManagerProxy* NewL( MCatalogsClientServer& aSession, |
|
49 TInt aHandle, |
|
50 CNcdProviderProxy& aProvider ); |
|
51 |
|
52 /** |
|
53 * @see CNcdServerReportManagerProxy::NewL |
|
54 */ |
|
55 static CNcdServerReportManagerProxy* NewLC( MCatalogsClientServer& aSession, |
|
56 TInt aHandle, |
|
57 CNcdProviderProxy& aProvider ); |
|
58 |
|
59 |
|
60 /** |
|
61 * Destructor |
|
62 */ |
|
63 virtual ~CNcdServerReportManagerProxy(); |
|
64 |
|
65 |
|
66 /** |
|
67 * This is meant only for the external installation reporting. |
|
68 * |
|
69 * @see CNcdNodeInstallProxy::SetAsInstalledL |
|
70 * |
|
71 * @param aNode Node that has been tried to install. |
|
72 * @param aErroCode Error code describes the success of the install. |
|
73 */ |
|
74 void NodeSetAsInstalledL( CNcdNodeProxy& aNode, TInt aErrorCode ); |
|
75 |
|
76 |
|
77 public: // MNcdServerReportManager |
|
78 |
|
79 /** |
|
80 * @see MNcdServerReportManager::SetReportingMethodL |
|
81 */ |
|
82 virtual void SetReportingMethodL( const TReportingMethod& aMethod ); |
|
83 |
|
84 |
|
85 /** |
|
86 * @see MNcdServerReportManager::ReportingMethodL |
|
87 */ |
|
88 virtual TReportingMethod ReportingMethodL() const; |
|
89 |
|
90 |
|
91 /** |
|
92 * @see MNcdServerReportManager::SetReportingStyleL |
|
93 */ |
|
94 virtual void SetReportingStyleL( const TReportingStyle& aStyle ); |
|
95 |
|
96 |
|
97 /** |
|
98 * @see MNcdServerReportManager::ReportingStyleL |
|
99 */ |
|
100 virtual TReportingStyle ReportingStyleL() const; |
|
101 |
|
102 |
|
103 /** |
|
104 * @see MNcdServerReportManager::SendL |
|
105 */ |
|
106 virtual MNcdServerReportOperation* SendL( MNcdServerReportOperationObserver& aObserver ); |
|
107 |
|
108 |
|
109 protected: |
|
110 |
|
111 // Prevent these if not implemented |
|
112 CNcdServerReportManagerProxy( const CNcdServerReportManagerProxy& aObject ); |
|
113 CNcdServerReportManagerProxy& operator =( const CNcdServerReportManagerProxy& aObject ); |
|
114 |
|
115 |
|
116 /** |
|
117 * Constructor |
|
118 * |
|
119 * @param aSession The session between the client proxy and the |
|
120 * corresponding server object. |
|
121 * @param aHandle The handle which identifies the server object |
|
122 * that this proxy uses. |
|
123 * @param aProvider Provider that owns this class object. |
|
124 * |
|
125 * |
|
126 */ |
|
127 CNcdServerReportManagerProxy( MCatalogsClientServer& aSession, |
|
128 TInt aHandle, |
|
129 CNcdProviderProxy& aProvider ); |
|
130 |
|
131 /** |
|
132 * ConstructL |
|
133 * |
|
134 * |
|
135 */ |
|
136 virtual void ConstructL(); |
|
137 |
|
138 |
|
139 /** |
|
140 * @return CNcdProviderProxy Provider that owns this class object. |
|
141 */ |
|
142 CNcdProviderProxy& Provider(); |
|
143 |
|
144 |
|
145 private: // data |
|
146 |
|
147 CNcdProviderProxy& iProvider; |
|
148 |
|
149 }; |
|
150 |
|
151 #endif // NCD_SERVER_REPORT_MANAGER_PROXY_H |
|
152 |