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: |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef __DEVICEBRIDGE |
|
20 #define __DEVICEBRIDGE |
|
21 |
|
22 // INCLUDES |
|
23 #include <e32base.h> |
|
24 |
|
25 // CONSTANTS |
|
26 |
|
27 // MACROS |
|
28 |
|
29 // DATA TYPES |
|
30 |
|
31 // FUNCTION PROTOTYPES |
|
32 |
|
33 // FORWARD DECLARATION |
|
34 namespace KJS |
|
35 { |
|
36 class JSObject; |
|
37 class ExecState; |
|
38 class Device; |
|
39 } |
|
40 |
|
41 |
|
42 // CLASS DECLARATION |
|
43 |
|
44 // Calls from browser engine (implemented by DeviceBridge) |
|
45 |
|
46 class MDeviceBridge |
|
47 { |
|
48 public: |
|
49 inline virtual void* Device( void* exec ) = 0; |
|
50 inline virtual ~MDeviceBridge() {}; |
|
51 inline virtual void SetUid( const TUint& aValue) = 0; |
|
52 }; |
|
53 |
|
54 /** |
|
55 * TDeviceBridge |
|
56 * |
|
57 * @lib jsdevice.dll |
|
58 * @since 3.1 |
|
59 */ |
|
60 |
|
61 NONSHARABLE_CLASS( TDeviceBridge ): public MDeviceBridge |
|
62 { |
|
63 |
|
64 public: |
|
65 |
|
66 /** |
|
67 * Constructor |
|
68 * @since 5.0 |
|
69 * @param |
|
70 */ |
|
71 TDeviceBridge(); |
|
72 |
|
73 /** |
|
74 * Destructor. |
|
75 * @since 5.0 |
|
76 * @param |
|
77 */ |
|
78 virtual ~TDeviceBridge(); |
|
79 |
|
80 public: //From MDeviceBridge |
|
81 |
|
82 /** |
|
83 * Device |
|
84 * @since 5.0 |
|
85 * @param |
|
86 * @return |
|
87 */ |
|
88 void* Device( void* exec ); |
|
89 |
|
90 /** |
|
91 * SetBlanketPermission |
|
92 * @since 5.0 |
|
93 * @param |
|
94 * @return none |
|
95 */ |
|
96 void SetUid( const TUint& aValue); |
|
97 |
|
98 private: |
|
99 |
|
100 KJS::Device* m_device;// Not owned |
|
101 |
|
102 }; |
|
103 |
|
104 #endif |