|
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: |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef C_NCD_SERVER_REPORT_OPERATION_PROXY_H |
|
20 #define C_NCD_SERVER_REPORT_OPERATION_PROXY_H |
|
21 |
|
22 |
|
23 #include "ncdoperationimpl.h" |
|
24 #include "ncdbaseoperationproxy.h" |
|
25 #include "ncdserverreportoperation.h" |
|
26 |
|
27 class MNcdServerReportOperationObserver; |
|
28 |
|
29 |
|
30 class CNcdServerReportOperationProxy : |
|
31 public CNcdOperation< MNcdServerReportOperation > |
|
32 { |
|
33 public: |
|
34 |
|
35 /** |
|
36 * Constructor. |
|
37 * |
|
38 * @param aSession is the session that is used between |
|
39 * the proxy and the server. |
|
40 * @param aNodeManager |
|
41 * @param aHandle is the handle that identifies the serverside |
|
42 * object that this proxy uses. |
|
43 * @param aRemoveHandler An observer that is called during destruction. |
|
44 * @param aObserver Observer to receive operation progress. |
|
45 */ |
|
46 static CNcdServerReportOperationProxy* NewL( |
|
47 MCatalogsClientServer& aSession, |
|
48 CNcdNodeManagerProxy* aNodeManager, |
|
49 TInt aHandle, |
|
50 MNcdOperationProxyRemoveHandler& aRemoveHandler, |
|
51 MNcdServerReportOperationObserver& aObserver ); |
|
52 |
|
53 /** |
|
54 * @see CNcdServerReportOperationProxy::NewL |
|
55 */ |
|
56 static CNcdServerReportOperationProxy* NewLC( |
|
57 MCatalogsClientServer& aSession, |
|
58 CNcdNodeManagerProxy* aNodeManager, |
|
59 TInt aHandle, |
|
60 MNcdOperationProxyRemoveHandler& aRemoveHandler, |
|
61 MNcdServerReportOperationObserver& aObserver ); |
|
62 |
|
63 |
|
64 public: // From MNcdOperation |
|
65 |
|
66 /** |
|
67 * @see MNcdOperation::OperationType() |
|
68 */ |
|
69 TNcdInterfaceId OperationType() const; |
|
70 |
|
71 |
|
72 protected: // Constructor and destructor |
|
73 |
|
74 /** |
|
75 * Default constructor protected. |
|
76 */ |
|
77 CNcdServerReportOperationProxy( MNcdServerReportOperationObserver& aObserver ); |
|
78 |
|
79 /** |
|
80 * Destructor. |
|
81 */ |
|
82 virtual ~CNcdServerReportOperationProxy(); |
|
83 |
|
84 /** |
|
85 * ConstructL |
|
86 */ |
|
87 virtual void ConstructL( |
|
88 MCatalogsClientServer& aSession, |
|
89 CNcdNodeManagerProxy* aNodeManager, |
|
90 TInt aHandle, |
|
91 MNcdOperationProxyRemoveHandler& aRemoveHandler ); |
|
92 |
|
93 |
|
94 protected: // From CNcdBaseOperationProxy |
|
95 |
|
96 /** |
|
97 * @see CNcdBaseOperationProxy::ProgressCallback() |
|
98 */ |
|
99 void ProgressCallback(); |
|
100 |
|
101 |
|
102 /** |
|
103 * @see CNcdBaseOperationProxy::QueryReceivedCallback() |
|
104 */ |
|
105 void QueryReceivedCallback( CNcdQuery* aQuery ); |
|
106 |
|
107 |
|
108 /** |
|
109 * @see CNcdBaseOperationProxy::CompleteCallback() |
|
110 */ |
|
111 void CompleteCallback( TInt aError ); |
|
112 |
|
113 |
|
114 private: // data |
|
115 |
|
116 /** Operation observer, for callbacks. */ |
|
117 MNcdServerReportOperationObserver& iObserver; |
|
118 |
|
119 }; |
|
120 |
|
121 #endif // C_NCD_SERVER_REPORT_OPERATION_PROXY_H |