equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2004 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 |
|
20 #ifndef __WRT_H |
|
21 #define __WRT_H |
|
22 |
|
23 // INCLUDES |
|
24 #include "config.h" |
|
25 #include <e32base.h> |
|
26 #include <kjs/object.h> |
|
27 |
|
28 // CONSTANTS |
|
29 |
|
30 // MACROS |
|
31 |
|
32 // DATA TYPES |
|
33 |
|
34 // FUNCTION PROTOTYPES |
|
35 |
|
36 // CLASS DECLARATION |
|
37 |
|
38 /** |
|
39 * JSWrt |
|
40 * |
|
41 * @lib widgetengine.dll |
|
42 * @since 5.0 |
|
43 */ |
|
44 namespace KJS { |
|
45 |
|
46 class ExecState; |
|
47 class JSWrtPlatform; |
|
48 |
|
49 struct WrtPrivate |
|
50 { |
|
51 WrtPrivate( ) : m_platform(0) { } |
|
52 |
|
53 virtual ~WrtPrivate() {} |
|
54 |
|
55 JSWrtPlatform* m_platform; |
|
56 }; |
|
57 |
|
58 class JSWrt: public JSObject |
|
59 { |
|
60 |
|
61 public: |
|
62 JSWrt( ExecState* exec ); |
|
63 virtual ~JSWrt(); |
|
64 |
|
65 //From JSObject |
|
66 public: |
|
67 JSType type() const; |
|
68 JSValue* getValueProperty(KJS::ExecState*, int token) const; |
|
69 bool getOwnPropertySlot(ExecState* exec, const Identifier& propertyName, PropertySlot& slot); |
|
70 const ClassInfo* classInfo() const { return &info; } |
|
71 static const ClassInfo info; |
|
72 virtual void mark(); |
|
73 virtual UString toString(ExecState *exec) const; |
|
74 |
|
75 enum { |
|
76 version, |
|
77 platform |
|
78 }; |
|
79 |
|
80 private: |
|
81 WrtPrivate* wrtPriv; |
|
82 HBufC* m_wrtVersion; |
|
83 }; |
|
84 |
|
85 }; |
|
86 |
|
87 #include "Wrt.lut.h" |
|
88 |
|
89 #endif |