author | Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com> |
Tue, 24 Nov 2009 08:56:33 +0200 | |
changeset 33 | 50974a8b132e |
parent 19 | 989d2f495d90 |
permissions | -rw-r--r-- |
19 | 1 |
/* |
2 |
* Copyright (c) 2009 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: |
|
15 |
* |
|
16 |
*/ |
|
17 |
||
18 |
#include <e32svr.h> |
|
19 |
#include <e32std.h> |
|
20 |
#include <StifParser.h> |
|
33
50974a8b132e
Revision: 200945
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
19
diff
changeset
|
21 |
#include <StifTestInterface.h> |
19 | 22 |
#include <logcli.h> |
23 |
#include <logwrap.h> |
|
24 |
||
25 |
#include "loggingasyncservice.h" |
|
26 |
#include "loggingservice.h" |
|
27 |
#include "loggingfilter.h" |
|
28 |
||
29 |
#include "tlogging.h" |
|
30 |
#include "tlogcallback.h" |
|
31 |
#include "loggingevent.h" |
|
32 |
||
33 |
||
34 |
//------------------------------------------------------------------ |
|
35 |
//Concurrenttest1, core class for concurrent async calls |
|
36 |
// GetList and GetList async test |
|
37 |
//------------------------------------------------------------------ |
|
38 |
||
39 |
TInt concurrenttest3(void) |
|
40 |
{ |
|
41 |
TInt ret ; |
|
42 |
TInt flag ; |
|
43 |
||
44 |
||
45 |
CLoggingService *LogService = CLoggingService :: NewL() ; |
|
46 |
CLogsFilter *filter = CLogsFilter :: NewL() ; |
|
47 |
MLogCallback MyCb ; |
|
48 |
//CLogsEvent *event = CLogsEvent :: NewL() ; |
|
49 |
CLogsFilter *filter1 = CLogsFilter :: NewL() ; |
|
50 |
||
51 |
filter->SetRequestType(EReadEvents) ; |
|
52 |
||
53 |
LogService->GetListL(1 , filter , &MyCb) ; |
|
54 |
||
55 |
filter1->SetRequestType(EReadEvents) ; |
|
56 |
||
57 |
ret = LogService->GetListL(2, filter , &MyCb) ; |
|
58 |
||
59 |
||
60 |
if(ret == KErrServerBusy) |
|
61 |
{ |
|
62 |
flag = KErrNone ; |
|
63 |
} |
|
64 |
else |
|
65 |
{ |
|
66 |
flag = ret ; |
|
67 |
} |
|
68 |
||
69 |
||
70 |
delete filter ; |
|
71 |
delete filter1 ; |
|
72 |
delete LogService ; |
|
73 |
return flag ; |
|
74 |
||
75 |
||
76 |
||
77 |
} |
|
78 |