bool_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 _BOOL_OBJECT_H_
00024 #define _BOOL_OBJECT_H_
00025
00026 #include "internal.h"
00027 #include "function_object.h"
00028
00029 namespace KJS {
00030
00031 class BooleanInstanceImp : public ObjectImp {
00032 public:
00033 BooleanInstanceImp(const Object &proto);
00034
00035 virtual const ClassInfo *classInfo() const { return &info; }
00036 static const ClassInfo info;
00037 };
00038
00045 class BooleanPrototypeImp : public BooleanInstanceImp {
00046 public:
00047 BooleanPrototypeImp(ExecState *exec,
00048 ObjectPrototypeImp *objectProto,
00049 FunctionPrototypeImp *funcProto);
00050 };
00051
00058 class BooleanProtoFuncImp : public InternalFunctionImp {
00059 public:
00060 BooleanProtoFuncImp(ExecState *exec,
00061 FunctionPrototypeImp *funcProto, int i, int len);
00062
00063 virtual bool implementsCall() const;
00064 virtual Value call(ExecState *exec, Object &thisObj, const List &args);
00065
00066 enum { ToString, ValueOf };
00067 private:
00068 int id;
00069 };
00070
00076 class BooleanObjectImp : public InternalFunctionImp {
00077 friend class BooleanProtoFuncImp;
00078 public:
00079 BooleanObjectImp(ExecState *exec, FunctionPrototypeImp *funcProto,
00080 BooleanPrototypeImp *booleanProto);
00081
00082 virtual bool implementsConstruct() const;
00083 virtual Object construct(ExecState *exec, const List &args);
00084
00085 virtual bool implementsCall() const;
00086 virtual Value call(ExecState *exec, Object &thisObj, const List &args);
00087 };
00088
00089 }
00090
00091 #endif
This file is part of the documentation for kdelibs Version 3.1.4.