kjs Library: object_object.h Source File (kjs Library)

| # kjs Library API Documentation
Overview | Class Hierarchy | Classes | Classes (annotated) | Members | Namespaces | Source Files

# object_object.h

    00001 // -*- c-basic-offset: 2 -*-
    00002 /*
    00003  *  This file is part of the KDE libraries
    00004  *  Copyright (C) 1999-2000 Harri Porten (porten@kde.org)
    00005  *
    00006  *  This library is free software; you can redistribute it and/or
    00007  *  modify it under the terms of the GNU Lesser General Public
    00008  *  License as published by the Free Software Foundation; either
    00009  *  version 2 of the License, or (at your option) any later version.
    00010  *
    00011  *  This library is distributed in the hope that it will be useful,
    00012  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
    00013  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    00014  *  Lesser General Public License for more details.
    00015  *
    00016  *  You should have received a copy of the GNU Lesser General Public
    00017  *  License along with this library; if not, write to the Free Software
    00018  *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
    00019  *
    00020  */
    00021
    00022 #ifndef _OBJECT_OBJECT_H_
    00023 #define _OBJECT_OBJECT_H_
    00024
    00025 #include "internal.h"
    00026 #include "function.h"
    00027
    00028 namespace KJS {
    00029
    00030   class FunctionPrototypeImp;
    00031
    00038   class ObjectPrototypeImp : public ObjectImp {
    00039   public:
    00040     ObjectPrototypeImp(ExecState *exec, FunctionPrototypeImp *funcProto);
    00041   };
    00042
    00049   class ObjectProtoFuncImp : public InternalFunctionImp {
    00050   public:
    00051     ObjectProtoFuncImp(ExecState *exec, FunctionPrototypeImp *funcProto,
    00052                        int i, int len, const Identifier &_ident);
    00053
    00054     virtual bool implementsCall() const;
    00055     virtual Value call(ExecState *exec, Object &thisObj, const List &args);
    00056
    00057     enum { ToString, ToLocaleString, ValueOf, HasOwnProperty,
    00058        IsPrototypeOf, PropertyIsEnumerable };
    00059
    00060   private:
    00061     int id;
    00062   };
    00063
    00069   class ObjectObjectImp : public InternalFunctionImp {
    00070   public:
    00071
    00072     ObjectObjectImp(ExecState *exec,
    00073                     ObjectPrototypeImp *objProto,
    00074                     FunctionPrototypeImp *funcProto);
    00075
    00076     virtual bool implementsConstruct() const;
    00077     virtual Object construct(ExecState *exec, const List &args);
    00078     virtual bool implementsCall() const;
    00079     virtual Value call(ExecState *exec, Object &thisObj, const List &args);
    00080   };
    00081
    00082 } // namespace
    00083
    00084 #endif

This file is part of the documentation for kjs Library Version 3.4.1.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Sat Jun 11 20:23:07 2005 by doxygen 1.4.1 written by Dimitri van Heesch, © 1997-2003