object_object.h
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023 #ifndef _OBJECT_OBJECT_H_
00024 #define _OBJECT_OBJECT_H_
00025
00026 #include "internal.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);
00053
00054 virtual bool implementsCall() const;
00055 virtual Value call(ExecState *exec, Object &thisObj, const List &args);
00056
00057 enum { ToString, ValueOf };
00058 private:
00059 int id;
00060 };
00061
00067 class ObjectObjectImp : public InternalFunctionImp {
00068 public:
00069
00070 ObjectObjectImp(ExecState *exec,
00071 ObjectPrototypeImp *objProto,
00072 FunctionPrototypeImp *funcProto);
00073
00074 virtual bool implementsConstruct() const;
00075 virtual Object construct(ExecState *exec, const List &args);
00076 virtual bool implementsCall() const;
00077 virtual Value call(ExecState *exec, Object &thisObj, const List &args);
00078 };
00079
00080 }
00081
00082 #endif
This file is part of the documentation for kdelibs Version 3.1.4.