error_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 _ERROR_OBJECT_H_
00024 #define _ERROR_OBJECT_H_
00025
00026 #include "internal.h"
00027 #include "function_object.h"
00028
00029 namespace KJS {
00030
00031 class ErrorPrototypeImp : public ObjectImp {
00032 public:
00033 ErrorPrototypeImp(ExecState *exec,
00034 ObjectPrototypeImp *objectProto,
00035 FunctionPrototypeImp *funcProto);
00036 };
00037
00038 class ErrorProtoFuncImp : public InternalFunctionImp {
00039 public:
00040 ErrorProtoFuncImp(ExecState *exec, FunctionPrototypeImp *funcProto);
00041 virtual bool implementsCall() const;
00042 virtual Value call(ExecState *exec, Object &thisObj, const List &args);
00043 };
00044
00045 class ErrorObjectImp : public InternalFunctionImp {
00046 public:
00047 ErrorObjectImp(ExecState *exec, FunctionPrototypeImp *funcProto,
00048 ErrorPrototypeImp *errorProto);
00049
00050 virtual bool implementsConstruct() const;
00051 virtual Object construct(ExecState *exec, const List &args);
00052
00053 virtual bool implementsCall() const;
00054 virtual Value call(ExecState *exec, Object &thisObj, const List &args);
00055 };
00056
00057
00058
00059
00060
00061 class NativeErrorPrototypeImp : public ObjectImp {
00062 public:
00063 NativeErrorPrototypeImp(ExecState *exec, ErrorPrototypeImp *errorProto,
00064 ErrorType et, UString name, UString message);
00065 private:
00066 ErrorType errType;
00067 };
00068
00069 class NativeErrorImp : public InternalFunctionImp {
00070 public:
00071 NativeErrorImp(ExecState *exec, FunctionPrototypeImp *funcProto,
00072 const Object &prot);
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 virtual void mark();
00080
00081 virtual const ClassInfo *classInfo() const { return &info; }
00082 static const ClassInfo info;
00083 private:
00084 ObjectImp *proto;
00085 };
00086
00087 };
00088
00089 #endif
This file is part of the documentation for kdelibs Version 3.1.0.