// -*- c-basic-offset: 2 -*- /* * This file is part of the KDE libraries * Copyright (C) 1999-2001 Harri Porten (porten@kde.org) * Copyright (C) 2001 Peter Kelly (pmk@post.com) * Copyright (C) 2003, 2004, 2005, 2006 Apple Computer, Inc. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public * License as published by the Free Software Foundation; either * version 2 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Library General Public License for more details. * * You should have received a copy of the GNU Library General Public License * along with this library; see the file COPYING.LIB. If not, write to * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, * Boston, MA 02110-1301, USA. * */ #ifndef SavedBuiltins_H #define SavedBuiltins_H #include "protect.h" namespace KJS { class SavedBuiltinsInternal; class SavedBuiltins { friend class Interpreter; public: SavedBuiltins(); ~SavedBuiltins(); private: SavedBuiltinsInternal *_internal; }; class SavedBuiltinsInternal { friend class Interpreter; private: ProtectedPtr m_Object; ProtectedPtr m_Function; ProtectedPtr m_Array; ProtectedPtr m_Boolean; ProtectedPtr m_String; ProtectedPtr m_Number; ProtectedPtr m_Date; ProtectedPtr m_RegExp; ProtectedPtr m_Error; ProtectedPtr m_ObjectPrototype; ProtectedPtr m_FunctionPrototype; ProtectedPtr m_ArrayPrototype; ProtectedPtr m_BooleanPrototype; ProtectedPtr m_StringPrototype; ProtectedPtr m_NumberPrototype; ProtectedPtr m_DatePrototype; ProtectedPtr m_RegExpPrototype; ProtectedPtr m_ErrorPrototype; ProtectedPtr m_EvalError; ProtectedPtr m_RangeError; ProtectedPtr m_ReferenceError; ProtectedPtr m_SyntaxError; ProtectedPtr m_TypeError; ProtectedPtr m_UriError; ProtectedPtr m_EvalErrorPrototype; ProtectedPtr m_RangeErrorPrototype; ProtectedPtr m_ReferenceErrorPrototype; ProtectedPtr m_SyntaxErrorPrototype; ProtectedPtr m_TypeErrorPrototype; ProtectedPtr m_UriErrorPrototype; }; } // namespace #endif // SavedBuiltins_H