|
1 /* |
|
2 * Copyright (c) 2005-2006 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: Event server framework's event source implementation |
|
15 * |
|
16 */ |
|
17 |
|
18 // INCLUDE FILES |
|
19 #include "CM2GEventSource.h" |
|
20 |
|
21 M2G_NS_START |
|
22 |
|
23 // EXTERNAL DATA STRUCTURES |
|
24 |
|
25 // EXTERNAL FUNCTION PROTOTYPES |
|
26 |
|
27 // CONSTANTS |
|
28 |
|
29 // MACROS |
|
30 |
|
31 // LOCAL CONSTANTS AND MACROS |
|
32 |
|
33 // MODULE DATA STRUCTURES |
|
34 |
|
35 // LOCAL FUNCTION PROTOTYPES |
|
36 |
|
37 // FORWARD DECLARATIONS |
|
38 |
|
39 // ----------------------------------------------------------------------------- |
|
40 // CM2GEventSource::NewL |
|
41 // ----------------------------------------------------------------------------- |
|
42 TInt CM2GEventSource::NewL( |
|
43 JNIEnv& aJni, jobject aPeer, TJavaEventServer aServer) |
|
44 { |
|
45 M2G_DEBUG_0("M2G_DEBUG: CM2GEventSource::NewLC()"); |
|
46 CM2GEventSource* self = new(ELeave) CM2GEventSource; |
|
47 // Cleanup the event source object if a leave occurs during construction: |
|
48 TConstructor selfCleanup(self, aJni); |
|
49 self->ConstructL(aJni, aPeer, aServer); |
|
50 // Pop the cleanup of the object and create a handle: |
|
51 return selfCleanup.GetHandle(); |
|
52 } |
|
53 |
|
54 // ----------------------------------------------------------------------------- |
|
55 // CM2GEventSource::~CM2GEventSource |
|
56 // ----------------------------------------------------------------------------- |
|
57 CM2GEventSource::~CM2GEventSource() |
|
58 { |
|
59 } |
|
60 |
|
61 // ----------------------------------------------------------------------------- |
|
62 // CM2GEventSource::CM2GEventSource |
|
63 // ----------------------------------------------------------------------------- |
|
64 CM2GEventSource::CM2GEventSource() |
|
65 { |
|
66 } |
|
67 |
|
68 // ----------------------------------------------------------------------------- |
|
69 // CM2GEventSource::CM2GEventSource |
|
70 // ----------------------------------------------------------------------------- |
|
71 void CM2GEventSource::ConstructL( |
|
72 JNIEnv& aJni, jobject aPeer, TJavaEventServer aServer) |
|
73 { |
|
74 CJavaEventSourceBase::ConstructL(aJni, aPeer, aServer); |
|
75 } |
|
76 |
|
77 M2G_NS_END |
|
78 |