1 #ifndef UserObjectImp_h
2 #define UserObjectImp_h
12 class UserObjectImp : public ObjectImp
15 UserObjectImp(JSUserObject* userObject);
16 virtual ~UserObjectImp();
18 virtual const ClassInfo *classInfo() const;
19 static const ClassInfo info;
21 virtual bool implementsCall() const;
23 virtual void getPropertyNames(ExecState *exec, IdentifierSequencedSet& propertyNames);
25 virtual ValueImp *callAsFunction(ExecState *exec, ObjectImp *thisObj, const List &args);
26 virtual bool getOwnPropertySlot(ExecState *, const Identifier&, PropertySlot&);
27 virtual void put(ExecState *exec, const Identifier &propertyName, ValueImp *value, int attr = None);
29 ValueImp *toPrimitive(ExecState *exec, Type preferredType = UnspecifiedType) const;
30 virtual bool toBoolean(ExecState *exec) const;
31 virtual double toNumber(ExecState *exec) const;
32 virtual UString toString(ExecState *exec) const;
36 JSUserObject *GetJSUserObject() const;
40 static ValueImp *userObjectGetter(ExecState *, const Identifier&, const PropertySlot&);
42 JSUserObject* fJSUserObject;