1 | // -*- c-basic-offset: 2 -*-
|
---|
2 | /*
|
---|
3 | * This file is part of the KDE libraries
|
---|
4 | * Copyright (C) 1999-2001 Harri Porten ([email protected])
|
---|
5 | * Copyright (C) 2001 Peter Kelly ([email protected])
|
---|
6 | * Copyright (C) 2003, 2004, 2005, 2006 Apple Computer, Inc.
|
---|
7 | *
|
---|
8 | * This library is free software; you can redistribute it and/or
|
---|
9 | * modify it under the terms of the GNU Library General Public
|
---|
10 | * License as published by the Free Software Foundation; either
|
---|
11 | * version 2 of the License, or (at your option) any later version.
|
---|
12 | *
|
---|
13 | * This library is distributed in the hope that it will be useful,
|
---|
14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
|
---|
15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
---|
16 | * Library General Public License for more details.
|
---|
17 | *
|
---|
18 | * You should have received a copy of the GNU Library General Public License
|
---|
19 | * along with this library; see the file COPYING.LIB. If not, write to
|
---|
20 | * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
|
---|
21 | * Boston, MA 02110-1301, USA.
|
---|
22 | *
|
---|
23 | */
|
---|
24 |
|
---|
25 | #ifndef SavedBuiltins_H
|
---|
26 | #define SavedBuiltins_H
|
---|
27 |
|
---|
28 | namespace KJS {
|
---|
29 |
|
---|
30 | class SavedBuiltinsInternal;
|
---|
31 |
|
---|
32 | class SavedBuiltins {
|
---|
33 | friend class Interpreter;
|
---|
34 | public:
|
---|
35 | SavedBuiltins();
|
---|
36 | ~SavedBuiltins();
|
---|
37 | private:
|
---|
38 | SavedBuiltinsInternal *_internal;
|
---|
39 | };
|
---|
40 |
|
---|
41 | class SavedBuiltinsInternal {
|
---|
42 | friend class Interpreter;
|
---|
43 | private:
|
---|
44 | ProtectedPtr<JSObject> m_Object;
|
---|
45 | ProtectedPtr<JSObject> m_Function;
|
---|
46 | ProtectedPtr<JSObject> m_Array;
|
---|
47 | ProtectedPtr<JSObject> m_Boolean;
|
---|
48 | ProtectedPtr<JSObject> m_String;
|
---|
49 | ProtectedPtr<JSObject> m_Number;
|
---|
50 | ProtectedPtr<JSObject> m_Date;
|
---|
51 | ProtectedPtr<JSObject> m_RegExp;
|
---|
52 | ProtectedPtr<JSObject> m_Error;
|
---|
53 |
|
---|
54 | ProtectedPtr<JSObject> m_ObjectPrototype;
|
---|
55 | ProtectedPtr<JSObject> m_FunctionPrototype;
|
---|
56 | ProtectedPtr<JSObject> m_ArrayPrototype;
|
---|
57 | ProtectedPtr<JSObject> m_BooleanPrototype;
|
---|
58 | ProtectedPtr<JSObject> m_StringPrototype;
|
---|
59 | ProtectedPtr<JSObject> m_NumberPrototype;
|
---|
60 | ProtectedPtr<JSObject> m_DatePrototype;
|
---|
61 | ProtectedPtr<JSObject> m_RegExpPrototype;
|
---|
62 | ProtectedPtr<JSObject> m_ErrorPrototype;
|
---|
63 |
|
---|
64 | ProtectedPtr<JSObject> m_EvalError;
|
---|
65 | ProtectedPtr<JSObject> m_RangeError;
|
---|
66 | ProtectedPtr<JSObject> m_ReferenceError;
|
---|
67 | ProtectedPtr<JSObject> m_SyntaxError;
|
---|
68 | ProtectedPtr<JSObject> m_TypeError;
|
---|
69 | ProtectedPtr<JSObject> m_UriError;
|
---|
70 |
|
---|
71 | ProtectedPtr<JSObject> m_EvalErrorPrototype;
|
---|
72 | ProtectedPtr<JSObject> m_RangeErrorPrototype;
|
---|
73 | ProtectedPtr<JSObject> m_ReferenceErrorPrototype;
|
---|
74 | ProtectedPtr<JSObject> m_SyntaxErrorPrototype;
|
---|
75 | ProtectedPtr<JSObject> m_TypeErrorPrototype;
|
---|
76 | ProtectedPtr<JSObject> m_UriErrorPrototype;
|
---|
77 | };
|
---|
78 |
|
---|
79 | } // namespace
|
---|
80 |
|
---|
81 | #endif // SavedBuiltins_H
|
---|