equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 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: Implemetation of ServiceEventHandler |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef __SERVICE_EVT_HANDLER_H__ |
|
20 #define __SERVICE_EVT_HANDLER_H__ |
|
21 |
|
22 namespace KJS |
|
23 { |
|
24 class JSObject; |
|
25 class JSValue; |
|
26 class ExecState; |
|
27 class ProtectedObject; |
|
28 class ProtectedValue; |
|
29 class List; |
|
30 |
|
31 class ServiceEventHandler |
|
32 { |
|
33 public: // constructor and destructor |
|
34 |
|
35 /** |
|
36 * Constructor |
|
37 * @return none |
|
38 * @since 5.0 |
|
39 **/ |
|
40 ServiceEventHandler( |
|
41 ExecState* execState, |
|
42 const JSObject* aObject, |
|
43 const JSValue* aValue, |
|
44 const TInt aTransId); |
|
45 |
|
46 /** |
|
47 * Destructor |
|
48 * @return none |
|
49 * @since 5.0 |
|
50 **/ |
|
51 virtual ~ServiceEventHandler(); |
|
52 |
|
53 public: |
|
54 |
|
55 /** |
|
56 * Invoke callback function |
|
57 * @return none |
|
58 * @since 5.0 |
|
59 **/ |
|
60 void InvokeCall( const List& aParam ); |
|
61 |
|
62 /** |
|
63 * Get event handler |
|
64 * @return Value |
|
65 * @since 5.0 |
|
66 **/ |
|
67 JSValue* CallbackFunc() const; |
|
68 |
|
69 /** |
|
70 * Get transaction id |
|
71 * @return Value |
|
72 * @since 5.0 |
|
73 **/ |
|
74 TInt TransId() const { return iTransId; } |
|
75 |
|
76 |
|
77 |
|
78 private: |
|
79 JSObject* iInterfaceFunc; |
|
80 JSValue* iCallbackFunc; |
|
81 TInt iTransId; |
|
82 ExecState* iGlobalExecState; |
|
83 }; |
|
84 |
|
85 } |
|
86 |
|
87 #endif |