|
1 /* |
|
2 * Copyright (c) 2005-2007 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 * Dummy Server Mtm |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 |
|
21 // INCLUDE FILES |
|
22 |
|
23 #include <e32cmn.h> |
|
24 #include <msventry.h> |
|
25 |
|
26 #include "UniDummyServerMtm.h" |
|
27 |
|
28 // EXTERNAL DATA STRUCTURES |
|
29 |
|
30 // EXTERNAL FUNCTION PROTOTYPES |
|
31 |
|
32 // CONSTANTS |
|
33 |
|
34 // MACROS |
|
35 |
|
36 // LOCAL CONSTANTS AND MACROS |
|
37 |
|
38 // MODULE DATA STRUCTURES |
|
39 |
|
40 // LOCAL FUNCTION PROTOTYPES |
|
41 |
|
42 // ==================== LOCAL FUNCTIONS ==================== |
|
43 |
|
44 // ================= MEMBER FUNCTIONS ======================= |
|
45 |
|
46 // --------------------------------------------------------- |
|
47 // C++ default constructor can NOT contain any code, that |
|
48 // might leave. |
|
49 // --------------------------------------------------------- |
|
50 // |
|
51 CUniDummyServerMtm::CUniDummyServerMtm( |
|
52 CRegisteredMtmDll& aRegisteredMtmDll, |
|
53 CMsvServerEntry* aInitialEntry ) |
|
54 : CBaseServerMtm( aRegisteredMtmDll, aInitialEntry ) |
|
55 { |
|
56 CActiveScheduler::Add( this ); |
|
57 } |
|
58 |
|
59 // --------------------------------------------------------- |
|
60 // Factory function |
|
61 // --------------------------------------------------------- |
|
62 // |
|
63 EXPORT_C CUniDummyServerMtm* CUniDummyServerMtm::NewL( |
|
64 CRegisteredMtmDll& aRegisteredMtmDll, |
|
65 CMsvServerEntry* aInitialEntry ) |
|
66 { |
|
67 |
|
68 CleanupStack::PushL( aInitialEntry ); // Take ownership of aInitialEntry |
|
69 CUniDummyServerMtm* self = new ( ELeave ) CUniDummyServerMtm( |
|
70 aRegisteredMtmDll, aInitialEntry ); |
|
71 CleanupStack::Pop( aInitialEntry ); // Now safely stored in member |
|
72 return self; |
|
73 } |
|
74 |
|
75 |
|
76 // --------------------------------------------------------- |
|
77 // Destructor |
|
78 // --------------------------------------------------------- |
|
79 // |
|
80 CUniDummyServerMtm::~CUniDummyServerMtm() |
|
81 { |
|
82 Cancel(); // cancel anything that may be pending... |
|
83 } |
|
84 |
|
85 |
|
86 // --------------------------------------------------------- |
|
87 // CUniDummyServerMtm::CopyToLocalL |
|
88 // |
|
89 // --------------------------------------------------------- |
|
90 // |
|
91 void CUniDummyServerMtm::CopyToLocalL( |
|
92 const CMsvEntrySelection& /*aSelection*/, |
|
93 TMsvId /*aDestination*/, |
|
94 TRequestStatus& aStatus ) |
|
95 { |
|
96 TRequestStatus* status = &aStatus; |
|
97 User::RequestComplete( status, KErrNotSupported ); |
|
98 } |
|
99 |
|
100 // --------------------------------------------------------- |
|
101 // CUniDummyServerMtm::CopyFromLocalL |
|
102 // |
|
103 // --------------------------------------------------------- |
|
104 // |
|
105 void CUniDummyServerMtm::CopyFromLocalL( |
|
106 const CMsvEntrySelection& /*aSelection*/, |
|
107 TMsvId /*aDestination*/, |
|
108 TRequestStatus& aStatus ) |
|
109 { |
|
110 TRequestStatus* status = &aStatus; |
|
111 User::RequestComplete( status, KErrNotSupported ); |
|
112 } |
|
113 |
|
114 // --------------------------------------------------------- |
|
115 // CUniDummyServerMtm::CopyWithinServiceL |
|
116 // |
|
117 // --------------------------------------------------------- |
|
118 // |
|
119 void CUniDummyServerMtm::CopyWithinServiceL( |
|
120 const CMsvEntrySelection& /*aSelection*/, |
|
121 TMsvId /*aDestination*/, |
|
122 TRequestStatus& aStatus ) |
|
123 { |
|
124 TRequestStatus* status = &aStatus; |
|
125 User::RequestComplete( status, KErrNotSupported ); |
|
126 } |
|
127 |
|
128 // --------------------------------------------------------- |
|
129 // CUniDummyServerMtm::MoveToLocalL |
|
130 // |
|
131 // --------------------------------------------------------- |
|
132 // |
|
133 void CUniDummyServerMtm::MoveToLocalL( |
|
134 const CMsvEntrySelection& /*aSelection*/, |
|
135 TMsvId /*aDestination*/, |
|
136 TRequestStatus& aStatus ) |
|
137 { |
|
138 TRequestStatus* status = &aStatus; |
|
139 User::RequestComplete( status, KErrNotSupported ); |
|
140 } |
|
141 |
|
142 // --------------------------------------------------------- |
|
143 // CUniDummyServerMtm::MoveFromLocalL |
|
144 // |
|
145 // --------------------------------------------------------- |
|
146 // |
|
147 void CUniDummyServerMtm::MoveFromLocalL( |
|
148 const CMsvEntrySelection& /*aSelection*/, |
|
149 TMsvId /*aDestination*/, |
|
150 TRequestStatus& aStatus ) |
|
151 { |
|
152 TRequestStatus* status = &aStatus; |
|
153 User::RequestComplete( status, KErrNotSupported ); |
|
154 } |
|
155 |
|
156 // --------------------------------------------------------- |
|
157 // CUniDummyServerMtm::MoveWithinServiceL |
|
158 // |
|
159 // --------------------------------------------------------- |
|
160 // |
|
161 void CUniDummyServerMtm::MoveWithinServiceL( |
|
162 const CMsvEntrySelection& /*aSelection*/, |
|
163 TMsvId /*aDestination*/, |
|
164 TRequestStatus& aStatus ) |
|
165 { |
|
166 TRequestStatus* status = &aStatus; |
|
167 User::RequestComplete( status, KErrNotSupported ); |
|
168 } |
|
169 |
|
170 // --------------------------------------------------------- |
|
171 // CUniDummyServerMtm::DeleteAllL |
|
172 // |
|
173 // --------------------------------------------------------- |
|
174 // |
|
175 void CUniDummyServerMtm::DeleteAllL( |
|
176 const CMsvEntrySelection& /* aSelection */, |
|
177 TRequestStatus& aStatus ) |
|
178 { |
|
179 TRequestStatus* status = &aStatus; |
|
180 User::RequestComplete( status, KErrNotSupported ); |
|
181 } |
|
182 |
|
183 // --------------------------------------------------------- |
|
184 // CUniDummyServerMtm::CreateL |
|
185 // |
|
186 // --------------------------------------------------------- |
|
187 // |
|
188 void CUniDummyServerMtm::CreateL( |
|
189 TMsvEntry /*aNewEntry*/, |
|
190 TRequestStatus& aStatus ) |
|
191 { |
|
192 TRequestStatus* status = &aStatus; |
|
193 User::RequestComplete( status, KErrNotSupported ); |
|
194 } |
|
195 |
|
196 // --------------------------------------------------------- |
|
197 // CUniDummyServerMtm::ChangeL |
|
198 // |
|
199 // --------------------------------------------------------- |
|
200 // |
|
201 void CUniDummyServerMtm::ChangeL( |
|
202 TMsvEntry /* aNewEntry*/ , |
|
203 TRequestStatus& aStatus ) |
|
204 { |
|
205 TRequestStatus* status = &aStatus; |
|
206 User::RequestComplete( status, KErrNotSupported ); |
|
207 } |
|
208 |
|
209 // --------------------------------------------------------- |
|
210 // CUniDummyServerMtm::StartCommandL |
|
211 // |
|
212 // --------------------------------------------------------- |
|
213 // |
|
214 void CUniDummyServerMtm::StartCommandL( |
|
215 CMsvEntrySelection& /*aSelection*/, |
|
216 TInt /*aCommand*/, |
|
217 const TDesC8& /*aParameter*/, |
|
218 TRequestStatus& aStatus ) |
|
219 { |
|
220 TRequestStatus* status = &aStatus; |
|
221 User::RequestComplete( status, KErrNotSupported ); |
|
222 } |
|
223 |
|
224 // --------------------------------------------------------- |
|
225 // CUniDummyServerMtm::CommandExpected |
|
226 // |
|
227 // --------------------------------------------------------- |
|
228 // |
|
229 TBool CUniDummyServerMtm::CommandExpected() |
|
230 { |
|
231 // so far we don't expect anything |
|
232 return EFalse; |
|
233 } |
|
234 |
|
235 // --------------------------------------------------------- |
|
236 // CUniDummyServerMtm::Progress |
|
237 // |
|
238 // --------------------------------------------------------- |
|
239 // |
|
240 const TDesC8& CUniDummyServerMtm::Progress() |
|
241 { |
|
242 // should load in latest progress, if something is going on |
|
243 return KNullDesC8(); |
|
244 } |
|
245 |
|
246 // --------------------------------------------------------- |
|
247 // CUniDummyServerMtm::DoCancel |
|
248 // |
|
249 // --------------------------------------------------------- |
|
250 // |
|
251 void CUniDummyServerMtm::DoCancel() |
|
252 { |
|
253 } |
|
254 |
|
255 // --------------------------------------------------------- |
|
256 // CUniDummyServerMtm::DoRunL |
|
257 // Active object completion |
|
258 // Run is used in this object to clean up after operations have finished. |
|
259 // |
|
260 // --------------------------------------------------------- |
|
261 // |
|
262 void CUniDummyServerMtm::DoRunL() |
|
263 { |
|
264 } |
|
265 |
|
266 // --------------------------------------------------------- |
|
267 // CUniDummyServerMtm::DoComplete |
|
268 // |
|
269 // Active object complete |
|
270 // --------------------------------------------------------- |
|
271 // |
|
272 void CUniDummyServerMtm::DoComplete( TInt /*aError*/ ) |
|
273 { |
|
274 } |
|
275 |
|
276 // ================= OTHER EXPORTED FUNCTIONS ============== |
|
277 |
|
278 // End of File |