|
1 // Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
2 // All rights reserved. |
|
3 // This component and the accompanying materials are made available |
|
4 // under the terms of "Eclipse Public License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // Contains placeholder for a removed function to prevent BC break. |
|
15 // |
|
16 |
|
17 |
|
18 |
|
19 // INCLUDE FILES |
|
20 #include <e32def.h> |
|
21 #include "sysutildebug.h" |
|
22 |
|
23 #ifdef _DEBUG |
|
24 #define UNSUPPORTED_CALL_TRACE(_dummyMethodOrdinal) TraceCaller(_dummyMethodOrdinal) |
|
25 #else // _DEBUG |
|
26 #define UNSUPPORTED_CALL_TRACE(_dummyMethodOrdinal) |
|
27 #endif // _DEBUG |
|
28 |
|
29 // ================= LOCAL FUNCTIONS ======================= |
|
30 |
|
31 #ifdef _DEBUG |
|
32 /** |
|
33 Print out which method dummy method was called. |
|
34 @internalComponent |
|
35 @param aDummyMethodOrdinal Integer identifying the dummy method called |
|
36 */ |
|
37 static void TraceCaller(TInt aDummyMethodOrdinal) |
|
38 { |
|
39 aDummyMethodOrdinal = aDummyMethodOrdinal; // To avoid compiler warning; |
|
40 |
|
41 TName caller = RThread().Name(); |
|
42 HBufC* hbuf = HBufC::New( 256 ); |
|
43 if ( hbuf ) |
|
44 { |
|
45 TPtr buf = hbuf->Des(); |
|
46 |
|
47 buf.Copy( _L( "SysUtil: '" ) ); |
|
48 buf.Append( caller ); |
|
49 buf.Append( _L( "' called Dummy::Dummy" ) ); |
|
50 |
|
51 __SYSUTIL_TRACE2("%S%d",&buf,aDummyMethodOrdinal); |
|
52 |
|
53 delete hbuf; |
|
54 } |
|
55 } |
|
56 |
|
57 #endif // _DEBUG |
|
58 |
|
59 // CLASS DECLARATION |
|
60 |
|
61 /** |
|
62 Dummy class. Contains placeholder for a removed function to prevent BC break. |
|
63 @publishedAll |
|
64 @deprecated |
|
65 */ |
|
66 class Dummy |
|
67 { |
|
68 |
|
69 public: // New functions |
|
70 |
|
71 IMPORT_C static TInt Dummy1(); |
|
72 IMPORT_C static void Dummy2(); |
|
73 IMPORT_C static void Dummy3(); |
|
74 IMPORT_C static void Dummy4(); |
|
75 IMPORT_C static void Dummy5(); |
|
76 IMPORT_C static void Dummy6(); |
|
77 IMPORT_C static void Dummy7(); |
|
78 IMPORT_C static void Dummy8(); |
|
79 IMPORT_C static void Dummy9(); |
|
80 IMPORT_C static void Dummy10(); |
|
81 IMPORT_C static void Dummy11(); |
|
82 IMPORT_C static void Dummy12(); |
|
83 IMPORT_C static void Dummy13(); |
|
84 IMPORT_C static void Dummy14(); |
|
85 IMPORT_C static void Dummy15(); |
|
86 IMPORT_C static void Dummy16(); |
|
87 IMPORT_C static void Dummy17(); |
|
88 IMPORT_C static void Dummy18(); |
|
89 IMPORT_C static void Dummy19(); |
|
90 IMPORT_C static void Dummy20(); |
|
91 IMPORT_C static void Dummy21(); |
|
92 IMPORT_C static void Dummy22(); |
|
93 IMPORT_C static void Dummy23(); |
|
94 IMPORT_C static void Dummy24(); |
|
95 IMPORT_C static void Dummy25(); |
|
96 IMPORT_C static void Dummy26(); |
|
97 IMPORT_C static void Dummy27(); |
|
98 IMPORT_C static void Dummy28(); |
|
99 IMPORT_C static void Dummy29(); |
|
100 IMPORT_C static void Dummy30(); |
|
101 }; |
|
102 |
|
103 // ================= MEMBER FUNCTIONS ======================= |
|
104 |
|
105 |
|
106 /** |
|
107 Dummy method |
|
108 @publishedAll |
|
109 @deprecated |
|
110 @return KErrNotSupported |
|
111 */ |
|
112 EXPORT_C TInt Dummy::Dummy1() |
|
113 { |
|
114 UNSUPPORTED_CALL_TRACE(1); |
|
115 return KErrNotSupported; |
|
116 } |
|
117 |
|
118 /** |
|
119 Dummy method |
|
120 @publishedAll |
|
121 @deprecated |
|
122 */ |
|
123 EXPORT_C void Dummy::Dummy2() { UNSUPPORTED_CALL_TRACE(2); }; |
|
124 /** |
|
125 Dummy method |
|
126 @publishedAll |
|
127 @deprecated |
|
128 */ |
|
129 EXPORT_C void Dummy::Dummy3() { UNSUPPORTED_CALL_TRACE(3); }; |
|
130 /** |
|
131 Dummy method |
|
132 @publishedAll |
|
133 @deprecated |
|
134 */ |
|
135 EXPORT_C void Dummy::Dummy4() { UNSUPPORTED_CALL_TRACE(4); }; |
|
136 /** |
|
137 Dummy method |
|
138 @publishedAll |
|
139 @deprecated |
|
140 */ |
|
141 EXPORT_C void Dummy::Dummy5() { UNSUPPORTED_CALL_TRACE(5); }; |
|
142 /** |
|
143 Dummy method |
|
144 @publishedAll |
|
145 @deprecated |
|
146 */ |
|
147 EXPORT_C void Dummy::Dummy6() { UNSUPPORTED_CALL_TRACE(6); }; |
|
148 /** |
|
149 Dummy method |
|
150 @publishedAll |
|
151 @deprecated |
|
152 */ |
|
153 EXPORT_C void Dummy::Dummy7() { UNSUPPORTED_CALL_TRACE(7); }; |
|
154 /** |
|
155 Dummy method |
|
156 @publishedAll |
|
157 @deprecated |
|
158 */ |
|
159 EXPORT_C void Dummy::Dummy8() { UNSUPPORTED_CALL_TRACE(8); }; |
|
160 /** |
|
161 Dummy method |
|
162 @publishedAll |
|
163 @deprecated |
|
164 */ |
|
165 EXPORT_C void Dummy::Dummy9() { UNSUPPORTED_CALL_TRACE(9); }; |
|
166 /** |
|
167 Dummy method |
|
168 @publishedAll |
|
169 @deprecated |
|
170 */ |
|
171 EXPORT_C void Dummy::Dummy10() { UNSUPPORTED_CALL_TRACE(10); }; |
|
172 /** |
|
173 Dummy method |
|
174 @publishedAll |
|
175 @deprecated |
|
176 */ |
|
177 EXPORT_C void Dummy::Dummy11() { UNSUPPORTED_CALL_TRACE(11); }; |
|
178 /** |
|
179 Dummy method |
|
180 @publishedAll |
|
181 @deprecated |
|
182 */ |
|
183 EXPORT_C void Dummy::Dummy12() { UNSUPPORTED_CALL_TRACE(12); }; |
|
184 /** |
|
185 Dummy method |
|
186 @publishedAll |
|
187 @deprecated |
|
188 */ |
|
189 EXPORT_C void Dummy::Dummy13() { UNSUPPORTED_CALL_TRACE(13); }; |
|
190 /** |
|
191 Dummy method |
|
192 @publishedAll |
|
193 @deprecated |
|
194 */ |
|
195 EXPORT_C void Dummy::Dummy14() { UNSUPPORTED_CALL_TRACE(14); }; |
|
196 /** |
|
197 Dummy method |
|
198 @publishedAll |
|
199 @deprecated |
|
200 */ |
|
201 EXPORT_C void Dummy::Dummy15() { UNSUPPORTED_CALL_TRACE(15); }; |
|
202 /** |
|
203 Dummy method |
|
204 @publishedAll |
|
205 @deprecated |
|
206 */ |
|
207 EXPORT_C void Dummy::Dummy16() { UNSUPPORTED_CALL_TRACE(16); }; |
|
208 /** |
|
209 Dummy method |
|
210 @publishedAll |
|
211 @deprecated |
|
212 */ |
|
213 EXPORT_C void Dummy::Dummy17() { UNSUPPORTED_CALL_TRACE(17); }; |
|
214 /** |
|
215 Dummy method |
|
216 @publishedAll |
|
217 @deprecated |
|
218 */ |
|
219 EXPORT_C void Dummy::Dummy18() { UNSUPPORTED_CALL_TRACE(18); }; |
|
220 /** |
|
221 Dummy method |
|
222 @publishedAll |
|
223 @deprecated |
|
224 */ |
|
225 EXPORT_C void Dummy::Dummy19() { UNSUPPORTED_CALL_TRACE(19); }; |
|
226 /** |
|
227 Dummy method |
|
228 @publishedAll |
|
229 @deprecated |
|
230 */ |
|
231 EXPORT_C void Dummy::Dummy20() { UNSUPPORTED_CALL_TRACE(20); }; |
|
232 /** |
|
233 Dummy method |
|
234 @publishedAll |
|
235 @deprecated |
|
236 */ |
|
237 EXPORT_C void Dummy::Dummy21() { UNSUPPORTED_CALL_TRACE(21); }; |
|
238 /** |
|
239 Dummy method |
|
240 @publishedAll |
|
241 @deprecated |
|
242 */ |
|
243 EXPORT_C void Dummy::Dummy22() { UNSUPPORTED_CALL_TRACE(22); }; |
|
244 /** |
|
245 Dummy method |
|
246 @publishedAll |
|
247 @deprecated |
|
248 */ |
|
249 EXPORT_C void Dummy::Dummy23() { UNSUPPORTED_CALL_TRACE(23); }; |
|
250 /** |
|
251 Dummy method |
|
252 @publishedAll |
|
253 @deprecated |
|
254 */ |
|
255 EXPORT_C void Dummy::Dummy24() { UNSUPPORTED_CALL_TRACE(24); }; |
|
256 /** |
|
257 Dummy method |
|
258 @publishedAll |
|
259 @deprecated |
|
260 */ |
|
261 EXPORT_C void Dummy::Dummy25() { UNSUPPORTED_CALL_TRACE(25); }; |
|
262 /** |
|
263 Dummy method |
|
264 @publishedAll |
|
265 @deprecated |
|
266 */ |
|
267 EXPORT_C void Dummy::Dummy26() { UNSUPPORTED_CALL_TRACE(26); }; |
|
268 /** |
|
269 Dummy method |
|
270 @publishedAll |
|
271 @deprecated |
|
272 */ |
|
273 EXPORT_C void Dummy::Dummy27() { UNSUPPORTED_CALL_TRACE(27); }; |
|
274 /** |
|
275 Dummy method |
|
276 @publishedAll |
|
277 @deprecated |
|
278 */ |
|
279 EXPORT_C void Dummy::Dummy28() { UNSUPPORTED_CALL_TRACE(28); }; |
|
280 /** |
|
281 Dummy method |
|
282 @publishedAll |
|
283 @deprecated |
|
284 */ |
|
285 EXPORT_C void Dummy::Dummy29() { UNSUPPORTED_CALL_TRACE(29); }; |
|
286 /** |
|
287 Dummy method |
|
288 @publishedAll |
|
289 @deprecated |
|
290 */ |
|
291 EXPORT_C void Dummy::Dummy30() { UNSUPPORTED_CALL_TRACE(30); }; |
|
292 |