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