5
|
1 |
/*
|
|
2 |
* Copyright (c) 2006-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 the License "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 |
|
|
20 |
|
|
21 |
// INCLUDE FILES
|
|
22 |
#include <e32svr.h>
|
|
23 |
#include <StifParser.h>
|
|
24 |
#include <Stiftestinterface.h>
|
|
25 |
#include <LiwServiceHandler.h>
|
|
26 |
#include <Liwbufferextension.h>
|
|
27 |
|
|
28 |
|
|
29 |
#include "tsnsrprovidertest.h"
|
|
30 |
#include "txmlconvertor.h"
|
|
31 |
|
|
32 |
#include <f32file.h>
|
|
33 |
#include <e32des16.h>
|
|
34 |
#include <e32base.h>
|
|
35 |
|
|
36 |
#include "tsnsrprovidertestobserver.h"
|
|
37 |
#include "txmlconvertor.h"
|
|
38 |
_LIT8(KErrorCode,"ErrorCode");
|
|
39 |
|
|
40 |
|
|
41 |
|
|
42 |
|
|
43 |
void CProviderTest::Delete()
|
|
44 |
{
|
|
45 |
|
|
46 |
}
|
|
47 |
|
|
48 |
// -----------------------------------------------------------------------------
|
|
49 |
// Csapi_getheader:RunMethodL
|
|
50 |
// Run specified method. Contains also table of test mothods and their names.
|
|
51 |
// -----------------------------------------------------------------------------
|
|
52 |
//
|
|
53 |
TInt CProviderTest::RunMethodL(
|
|
54 |
CStifItemParser& aItem )
|
|
55 |
{
|
|
56 |
|
|
57 |
static TStifFunctionInfo const KFunctions[] =
|
|
58 |
{
|
|
59 |
|
|
60 |
ENTRY( "CheckInputArgumentType", CProviderTest::CheckInputArgumentType ),
|
|
61 |
};
|
|
62 |
|
|
63 |
const TInt count = sizeof( KFunctions ) /
|
|
64 |
sizeof( TStifFunctionInfo );
|
|
65 |
|
|
66 |
return RunInternalL( KFunctions, count, aItem );
|
|
67 |
|
|
68 |
}
|
|
69 |
|
|
70 |
|
|
71 |
|
|
72 |
|
|
73 |
// -----------------------------------------------------------------------------
|
|
74 |
// CAppManagerTest:CheckInputArgumentType
|
|
75 |
//
|
|
76 |
// -----------------------------------------------------------------------------
|
|
77 |
//
|
|
78 |
TInt CProviderTest::CheckInputArgumentType( CStifItemParser& aItem )
|
|
79 |
{
|
|
80 |
|
|
81 |
__UHEAP_MARK;
|
|
82 |
TPtrC16 serice16;
|
|
83 |
TPtrC16 Interface16;
|
|
84 |
TPtrC16 command16;
|
|
85 |
TInt servicecmdpptions;
|
|
86 |
TPtrC16 callback;
|
|
87 |
TPtrC16 nextcmd;
|
|
88 |
|
|
89 |
TInt expected;
|
|
90 |
TInt err;
|
|
91 |
CProviderObserver* callbackobj = NULL;
|
|
92 |
|
|
93 |
TInt result =KErrNone ;// KErrGeneral; // 0 means pass and -1 means Fail
|
|
94 |
|
|
95 |
|
|
96 |
do
|
|
97 |
{
|
|
98 |
aItem.GetNextString(serice16);
|
|
99 |
aItem.GetNextString(Interface16);
|
|
100 |
aItem.GetNextString(command16);
|
|
101 |
aItem.GetNextInt(servicecmdpptions);
|
|
102 |
aItem.GetNextString(callback);
|
|
103 |
|
|
104 |
|
|
105 |
|
|
106 |
|
|
107 |
iLog->Log(_L("read varibale "));
|
|
108 |
|
|
109 |
/*-------------------------------------------------------------------------------------------*/
|
|
110 |
CLiwServiceHandler* iServiceHandler = CLiwServiceHandler::NewL();
|
|
111 |
CleanupStack::PushL(iServiceHandler);//1
|
|
112 |
|
|
113 |
if ( iServiceHandler )
|
|
114 |
iLog->Log(_L("Got Service Handler "));
|
|
115 |
else
|
|
116 |
iLog->Log(_L("Didn't get service handler"));
|
|
117 |
|
|
118 |
|
|
119 |
//Take the Interface name and provider from cfg file
|
|
120 |
TBuf8<30> interface8;
|
|
121 |
TBuf8<30> service8;
|
|
122 |
interface8.Copy(Interface16);
|
|
123 |
service8.Copy(serice16);
|
|
124 |
|
|
125 |
CLiwCriteriaItem* crit = CLiwCriteriaItem::NewL(1,interface8,service8);
|
|
126 |
iLog->Log(_L("Create criterai Item"));
|
|
127 |
crit->SetServiceClass(TUid::Uid(KLiwClassBase));
|
|
128 |
CleanupStack::PushL(crit);//2
|
|
129 |
|
|
130 |
|
|
131 |
RCriteriaArray critArray;
|
|
132 |
iLog->Log(_L("Append in Crit"));
|
|
133 |
critArray.AppendL(crit);
|
|
134 |
CleanupClosePushL(critArray);//3
|
|
135 |
|
|
136 |
iServiceHandler->AttachL(critArray);
|
|
137 |
|
|
138 |
|
|
139 |
iLog->Log(_L("Creating Output"));
|
|
140 |
CLiwGenericParamList* output = CLiwGenericParamList::NewL();
|
|
141 |
CleanupStack::PushL(output);//4
|
|
142 |
CLiwGenericParamList* input = CLiwGenericParamList::NewL();
|
|
143 |
CleanupStack::PushL(input);//5
|
|
144 |
|
|
145 |
iLog->Log(_L("call Service cmd L"));
|
|
146 |
iServiceHandler->ExecuteServiceCmdL(*crit, *input, *output);
|
|
147 |
|
|
148 |
iLog->Log(_L("Service cmdl is over"));
|
|
149 |
|
|
150 |
// Create the Instance of SAPI class and the Input Param and output Param
|
|
151 |
TInt pos = 0;
|
|
152 |
MLiwInterface* Interface = NULL;
|
|
153 |
output->FindFirst(pos,interface8 );
|
|
154 |
if(pos != KErrNotFound)
|
|
155 |
{
|
|
156 |
Interface = (*output)[pos].Value().AsInterface();
|
|
157 |
}
|
|
158 |
output->Reset();
|
|
159 |
|
|
160 |
CleanupClosePushL(*Interface);//6
|
|
161 |
iLog->Log(_L("got Interface"));
|
|
162 |
input->Reset();
|
|
163 |
|
|
164 |
|
|
165 |
if (FillInputParmaeterList( aItem, input) == KErrNone )
|
|
166 |
{
|
|
167 |
//Call Service
|
|
168 |
//PrintInputParameterList(input);
|
|
169 |
TBuf8<30> command8;
|
|
170 |
command8.Copy(command16);
|
|
171 |
|
|
172 |
if(callback.CompareF(_L("NULL"))==0)
|
|
173 |
{
|
|
174 |
//without call back
|
|
175 |
Interface->ExecuteCmdL(command8,*input,*output,servicecmdpptions, NULL);
|
|
176 |
|
|
177 |
}
|
|
178 |
else
|
|
179 |
|
|
180 |
{
|
|
181 |
//need to change the observer
|
|
182 |
callbackobj = CProviderObserver::NewL();
|
|
183 |
//CleanupStack::PushL( callbackobj);
|
|
184 |
Interface->ExecuteCmdL(command8,*input,*output,servicecmdpptions, callbackobj);
|
|
185 |
//CleanupStack::PopAndDestroy( );
|
|
186 |
}
|
|
187 |
|
|
188 |
aItem.GetNextInt(expected);
|
|
189 |
const TLiwGenericParam* p= NULL;
|
|
190 |
p = output->FindFirst(pos, KErrorCode); // Finding Error Code
|
|
191 |
if(p)
|
|
192 |
{
|
|
193 |
err = p->Value().AsTInt32();
|
|
194 |
|
|
195 |
if(err == 0 )
|
|
196 |
{
|
|
197 |
// Requested Accepted by the provider
|
|
198 |
if( (callback != NULL) && (KLiwOptASyncronous == servicecmdpptions) )
|
|
199 |
{
|
|
200 |
// need to wait for callback
|
|
201 |
CActiveSchedulerWait* wait = new CActiveSchedulerWait();
|
|
202 |
CleanupStack::PushL( wait);
|
|
203 |
callbackobj->SetWait( wait );
|
|
204 |
wait->Start();
|
|
205 |
CleanupStack::PopAndDestroy();//Active Wait Scheduler
|
|
206 |
}
|
|
207 |
|
|
208 |
}
|
|
209 |
|
|
210 |
input->Reset();
|
|
211 |
output->Reset();
|
|
212 |
iLog->Log(_L("Got Error Code "));
|
|
213 |
|
|
214 |
if(expected != err)
|
|
215 |
{
|
|
216 |
result = KErrGeneral;
|
|
217 |
}
|
|
218 |
}
|
|
219 |
else
|
|
220 |
result = KErrNone;
|
|
221 |
}
|
|
222 |
else
|
|
223 |
{
|
|
224 |
//Input Parameter List is not properly entered in Cfg file
|
|
225 |
PrintInputParameterList(input);
|
|
226 |
result = KErrGeneral;
|
|
227 |
}
|
|
228 |
|
|
229 |
output->Reset();
|
|
230 |
input->Reset();
|
|
231 |
delete callbackobj;
|
|
232 |
CleanupStack::PopAndDestroy( );
|
|
233 |
CleanupStack::PopAndDestroy( );
|
|
234 |
CleanupStack::PopAndDestroy( );
|
|
235 |
CleanupStack::PopAndDestroy( );
|
|
236 |
CleanupStack::PopAndDestroy( );
|
|
237 |
CleanupStack::PopAndDestroy( );
|
|
238 |
|
|
239 |
__UHEAP_MARKEND;
|
|
240 |
if( result )
|
|
241 |
return result;
|
|
242 |
|
|
243 |
|
|
244 |
aItem.GetNextString(nextcmd);
|
|
245 |
|
|
246 |
}while( nextcmd.CompareF(_L("Done") ) != 0);
|
|
247 |
|
|
248 |
return result;
|
|
249 |
}
|
|
250 |
|
|
251 |
|
|
252 |
|
|
253 |
|
|
254 |
|
|
255 |
|
|
256 |
TInt CProviderTest::FillInputParmaeterList( CStifItemParser& aItem , CLiwGenericParamList* input )
|
|
257 |
|
|
258 |
{
|
|
259 |
|
|
260 |
TInt intValue;
|
|
261 |
TPtrC16 value16;
|
|
262 |
TBuf8<40> value8;
|
|
263 |
TLiwVariant value;
|
|
264 |
TLiwGenericParam valueParam;
|
|
265 |
TBuf8<40> next8 ;
|
|
266 |
TPtrC next16;
|
|
267 |
TPtrC16 dataType;
|
|
268 |
|
|
269 |
aItem.GetNextString(next16);
|
|
270 |
while( next16.CompareF(_L("Finish"))!= 0)
|
|
271 |
{
|
|
272 |
aItem.GetNextString(dataType);
|
|
273 |
//Convert variable name into 8 bit key
|
|
274 |
next8.Copy(next16);
|
|
275 |
|
|
276 |
if(dataType.CompareF(_L("Int") )== 0)
|
|
277 |
{
|
|
278 |
//Value should be Integer
|
|
279 |
aItem.GetNextInt(intValue);
|
|
280 |
value.SetL((TInt32)intValue);
|
|
281 |
valueParam.SetNameAndValueL(next8, value);
|
|
282 |
input->AppendL(valueParam);
|
|
283 |
value.Reset();
|
|
284 |
valueParam.Reset();
|
|
285 |
}
|
|
286 |
|
|
287 |
else if ( dataType.CompareF(_L("String") ) == 0)
|
|
288 |
{
|
|
289 |
//Value should be 8 bit
|
|
290 |
aItem.GetNextString(value16);
|
|
291 |
value8.Copy(value16);
|
|
292 |
value.SetL(value8);
|
|
293 |
valueParam.SetNameAndValueL(next8, value);
|
|
294 |
input->AppendL(valueParam);
|
|
295 |
value.Reset();
|
|
296 |
valueParam.Reset();
|
|
297 |
}
|
|
298 |
else if ( dataType.CompareF(_L("UnicodeString") ) == 0)
|
|
299 |
{
|
|
300 |
//Value should be 16 bit string
|
|
301 |
aItem.GetNextString(value16);
|
|
302 |
value.SetL(value16);
|
|
303 |
valueParam.SetNameAndValueL(next8, value);
|
|
304 |
input->AppendL(valueParam);
|
|
305 |
value.Reset();
|
|
306 |
valueParam.Reset();
|
|
307 |
}
|
|
308 |
else if ( dataType.CompareF(_L("Map")) == 0)
|
|
309 |
{
|
|
310 |
//Value should be map
|
|
311 |
CLiwDefaultMap *map = CLiwDefaultMap::NewL();
|
|
312 |
value.SetL(map);
|
|
313 |
valueParam.SetNameAndValueL(next8, value);
|
|
314 |
input->AppendL(valueParam);
|
|
315 |
map->DecRef();
|
|
316 |
value.Reset();
|
|
317 |
valueParam.Reset();
|
|
318 |
|
|
319 |
if( FillMap(aItem,map) !=KErrNone)
|
|
320 |
return KErrGeneral;
|
|
321 |
|
|
322 |
}
|
|
323 |
else if ( dataType.CompareF(_L("List")) == 0)
|
|
324 |
{
|
|
325 |
//Value should be map
|
|
326 |
CLiwDefaultList *list = CLiwDefaultList::NewL();
|
|
327 |
value.SetL(list);
|
|
328 |
valueParam.SetNameAndValueL(next8, value);
|
|
329 |
input->AppendL(valueParam);
|
|
330 |
list->DecRef();
|
|
331 |
value.Reset();
|
|
332 |
valueParam.Reset();
|
|
333 |
|
|
334 |
if( FillList(aItem,list) !=KErrNone)
|
|
335 |
return KErrGeneral;
|
|
336 |
}
|
|
337 |
else
|
|
338 |
{
|
|
339 |
return KErrGeneral;
|
|
340 |
}
|
|
341 |
aItem.GetNextString(next16);
|
|
342 |
}//While loop
|
|
343 |
|
|
344 |
|
|
345 |
return KErrNone;
|
|
346 |
|
|
347 |
}
|
|
348 |
|
|
349 |
|
|
350 |
|
|
351 |
|
|
352 |
|
|
353 |
TInt CProviderTest::FillMap( CStifItemParser& aItem , CLiwDefaultMap* aMap )
|
|
354 |
|
|
355 |
{
|
|
356 |
|
|
357 |
TInt intValue;
|
|
358 |
TPtrC16 value16;
|
|
359 |
TBuf8<40> value8;
|
|
360 |
TLiwVariant value;
|
|
361 |
TBuf8<40> next8 ;
|
|
362 |
TPtrC next16;
|
|
363 |
TPtrC16 dataType;
|
|
364 |
|
|
365 |
aItem.GetNextString(next16);
|
|
366 |
while( next16.CompareF(_L("End"))!= 0)
|
|
367 |
{
|
|
368 |
aItem.GetNextString(dataType);
|
|
369 |
//Convert variable name into 8 bit key
|
|
370 |
next8.Copy(next16);
|
|
371 |
|
|
372 |
|
|
373 |
if(dataType.CompareF(_L("Int") )== 0)
|
|
374 |
{
|
|
375 |
//Value should be Integer
|
|
376 |
aItem.GetNextInt(intValue);
|
|
377 |
value.SetL((TInt32)intValue);
|
|
378 |
aMap->InsertL(next8,value);
|
|
379 |
value.Reset();
|
|
380 |
}
|
|
381 |
|
|
382 |
else if(dataType.CompareF(_L("Bool") )== 0)
|
|
383 |
{
|
|
384 |
//Value should be Integer
|
|
385 |
aItem.GetNextInt(intValue);
|
|
386 |
value.SetL((TBool)intValue);
|
|
387 |
aMap->InsertL(next8,value);
|
|
388 |
value.Reset();
|
|
389 |
}
|
|
390 |
|
|
391 |
else if(dataType.CompareF(_L("UInt") )== 0)
|
|
392 |
{
|
|
393 |
//Value should be Integer
|
|
394 |
aItem.GetNextInt(intValue);
|
|
395 |
value.SetL((TUint)intValue);
|
|
396 |
aMap->InsertL(next8,value);
|
|
397 |
value.Reset();
|
|
398 |
}
|
|
399 |
|
|
400 |
else if ( dataType.CompareF(_L("String") ) == 0)
|
|
401 |
{
|
|
402 |
//Value should be 8 bit
|
|
403 |
aItem.GetNextString(value16);
|
|
404 |
value8.Copy(value16);
|
|
405 |
value.SetL(value8);
|
|
406 |
aMap->InsertL(next8,value);
|
|
407 |
value.Reset();
|
|
408 |
}
|
|
409 |
else if ( dataType.CompareF(_L("UnicodeString") ) == 0)
|
|
410 |
{
|
|
411 |
//Value should be 16 bit string
|
|
412 |
aItem.GetNextString(value16);
|
|
413 |
value.SetL(value16);
|
|
414 |
aMap->InsertL(next8,value);
|
|
415 |
value.Reset();
|
|
416 |
}
|
|
417 |
else if ( dataType.CompareF(_L("Map")) == 0)
|
|
418 |
{
|
|
419 |
//Value should be map
|
|
420 |
CLiwDefaultMap *map = CLiwDefaultMap::NewL();
|
|
421 |
value.SetL(map);
|
|
422 |
aMap->InsertL(next8,value);
|
|
423 |
map->DecRef();
|
|
424 |
value.Reset();
|
|
425 |
|
|
426 |
if( FillMap(aItem,map) !=KErrNone)
|
|
427 |
return KErrGeneral;
|
|
428 |
|
|
429 |
}
|
|
430 |
else if ( dataType.CompareF(_L("List")) == 0)
|
|
431 |
{
|
|
432 |
//Value should be map
|
|
433 |
CLiwDefaultList *list = CLiwDefaultList::NewL();
|
|
434 |
value.SetL(list);
|
|
435 |
aMap->InsertL(next8,value);
|
|
436 |
list->DecRef();
|
|
437 |
value.Reset();
|
|
438 |
|
|
439 |
|
|
440 |
if( FillList(aItem,list) !=KErrNone)
|
|
441 |
return KErrGeneral;
|
|
442 |
}
|
|
443 |
else
|
|
444 |
{
|
|
445 |
return KErrGeneral;
|
|
446 |
}
|
|
447 |
aItem.GetNextString(next16);
|
|
448 |
}//While loop
|
|
449 |
|
|
450 |
|
|
451 |
return KErrNone;
|
|
452 |
|
|
453 |
}
|
|
454 |
|
|
455 |
|
|
456 |
|
|
457 |
TInt CProviderTest::FillList( CStifItemParser& aItem , CLiwDefaultList* aList )
|
|
458 |
|
|
459 |
{
|
|
460 |
|
|
461 |
TInt intValue;
|
|
462 |
TPtrC16 value16;
|
|
463 |
TBuf8<40> value8;
|
|
464 |
TLiwVariant value;
|
|
465 |
TBuf8<40> next8 ;
|
|
466 |
TPtrC next16;
|
|
467 |
TPtrC16 dataType;
|
|
468 |
|
|
469 |
aItem.GetNextString(dataType);
|
|
470 |
while( dataType.CompareF(_L("End"))!= 0)
|
|
471 |
{
|
|
472 |
//aItem.GetNextString(dataType);
|
|
473 |
|
|
474 |
if(dataType.CompareF(_L("Int") )== 0)
|
|
475 |
{
|
|
476 |
//Value should be Integer
|
|
477 |
aItem.GetNextInt(intValue);
|
|
478 |
value.SetL((TInt32)intValue);
|
|
479 |
aList->AppendL(value);
|
|
480 |
value.Reset();
|
|
481 |
}
|
|
482 |
|
|
483 |
else if ( dataType.CompareF(_L("String") ) == 0)
|
|
484 |
{
|
|
485 |
//Value should be 8 bit
|
|
486 |
aItem.GetNextString(value16);
|
|
487 |
value8.Copy(value16);
|
|
488 |
value.SetL(value8);
|
|
489 |
aList->AppendL(value);
|
|
490 |
value.Reset();
|
|
491 |
}
|
|
492 |
else if ( dataType.CompareF(_L("UnicodeString") ) == 0)
|
|
493 |
{
|
|
494 |
//Value should be 16 bit string
|
|
495 |
aItem.GetNextString(value16);
|
|
496 |
value.SetL(value16);
|
|
497 |
aList->AppendL(value);
|
|
498 |
value.Reset();
|
|
499 |
}
|
|
500 |
else if ( dataType.CompareF(_L("Map")) == 0)
|
|
501 |
{
|
|
502 |
//Value should be map
|
|
503 |
CLiwDefaultMap *map = CLiwDefaultMap::NewL();
|
|
504 |
value.SetL(map);
|
|
505 |
aList->AppendL(value);
|
|
506 |
map->DecRef();
|
|
507 |
value.Reset();
|
|
508 |
|
|
509 |
if( FillMap(aItem,map) !=KErrNone)
|
|
510 |
return KErrGeneral;
|
|
511 |
|
|
512 |
}
|
|
513 |
else if ( dataType.CompareF(_L("List")) == 0)
|
|
514 |
{
|
|
515 |
//Value should be List
|
|
516 |
CLiwDefaultList *list = CLiwDefaultList::NewL();
|
|
517 |
value.SetL(list);
|
|
518 |
aList->AppendL(value);
|
|
519 |
list->DecRef();
|
|
520 |
value.Reset();
|
|
521 |
|
|
522 |
if( FillList(aItem,list) !=KErrNone)
|
|
523 |
return KErrGeneral;
|
|
524 |
|
|
525 |
}
|
|
526 |
else
|
|
527 |
{
|
|
528 |
return KErrGeneral;
|
|
529 |
}
|
|
530 |
aItem.GetNextString(dataType);
|
|
531 |
}//While loop
|
|
532 |
|
|
533 |
|
|
534 |
return KErrNone;
|
|
535 |
|
|
536 |
}
|
|
537 |
|
|
538 |
|
|
539 |
void CProviderTest::PrintInputParameterList( CLiwGenericParamList* input )
|
|
540 |
{
|
|
541 |
|
|
542 |
// Show the Input List
|
|
543 |
RFs fs;
|
|
544 |
RFile file;
|
|
545 |
User::LeaveIfError(fs.Connect());
|
|
546 |
|
|
547 |
CleanupClosePushL(fs);//1
|
|
548 |
TInt errfile=0;
|
|
549 |
TEntry entry;
|
|
550 |
|
|
551 |
|
|
552 |
|
|
553 |
if( fs.Entry(_L("c:\\Data\\Provider\\"),entry) != KErrNone)
|
|
554 |
{
|
|
555 |
TInt ret = fs.MkDir(_L("c:\\Data\\Provider\\"));
|
|
556 |
}
|
|
557 |
|
|
558 |
TBuf<100> flname(_L("c:\\Data\\Provider\\InputList.xml"));
|
|
559 |
|
|
560 |
errfile =file.Replace(fs,flname, EFileWrite | EFileStreamText);
|
|
561 |
CleanupClosePushL(file);//2
|
|
562 |
|
|
563 |
|
|
564 |
/*------------------------------------------------------------------------------*/
|
|
565 |
//Generate Xml file
|
|
566 |
TPtrC filebuf;
|
|
567 |
|
|
568 |
|
|
569 |
CXmlConvertor* convertor = CXmlConvertor::NewL();
|
|
570 |
CleanupStack::PushL(convertor);
|
|
571 |
convertor->BuildOutputTreeL(*input,filebuf);
|
|
572 |
|
|
573 |
HBufC8* heapBuffer = HBufC8::NewL(filebuf.Length());
|
|
574 |
TPtr8 filebuf8(heapBuffer->Des());
|
|
575 |
filebuf8.Copy(filebuf);
|
|
576 |
|
|
577 |
file.Write(filebuf8);
|
|
578 |
|
|
579 |
delete heapBuffer;
|
|
580 |
CleanupStack::PopAndDestroy();
|
|
581 |
|
|
582 |
/*------------------------------------------------------------------------------*/
|
|
583 |
|
|
584 |
|
|
585 |
CleanupStack::PopAndDestroy();//File 1
|
|
586 |
CleanupStack::PopAndDestroy();//File Session 2
|
|
587 |
}
|
|
588 |
|
|
589 |
|
|
590 |
|
|
591 |
|
|
592 |
|
|
593 |
//Output parameter processing
|
|
594 |
|
|
595 |
// ========================== OTHER EXPORTED FUNCTIONS =========================
|
|
596 |
// None
|
|
597 |
|
|
598 |
// End of File
|