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 |
||
19 |
#include <e32svr.h> |
|
20 |
#include <e32std.h> |
|
21 |
#include <StifParser.h> |
|
33
50974a8b132e
Revision: 200945
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
19
diff
changeset
|
22 |
#include <StifTestInterface.h> |
19 | 23 |
#include <logcli.h> |
24 |
#include <logwrap.h> |
|
25 |
||
26 |
#include "loggingasyncservice.h" |
|
27 |
#include "loggingservice.h" |
|
28 |
#include "loggingevent.h" |
|
29 |
||
30 |
#include "tlogging.h" |
|
31 |
#include "tlogcallback.h" |
|
32 |
||
33 |
||
34 |
_LIT(KOwnEventSubject, "RandomLogEvent"); |
|
35 |
_LIT(KOwnEventRemoteParty, "OwnContact"); |
|
36 |
||
37 |
TInt AddEventasync2(void) |
|
38 |
{ |
|
39 |
CLoggingService *LogService = CLoggingService :: NewL() ; |
|
40 |
CLogsEvent* event = CLogsEvent::NewL(); |
|
41 |
MLogCallback MyCb ; |
|
42 |
||
43 |
LogService->AddEventL(1 , event , &MyCb) ; |
|
44 |
||
45 |
MyCb.Start() ; |
|
46 |
delete event ; |
|
47 |
delete LogService ; |
|
48 |
||
49 |
||
50 |
||
51 |
return KErrNone ; |
|
52 |
} |
|
53 |