Changeset 62547 in webkit for trunk/JavaScriptCore/qt/api/qscriptvalue.h
- Timestamp:
- Jul 6, 2010, 6:55:34 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/qt/api/qscriptvalue.h
r62007 r62547 21 21 #define qscriptvalue_h 22 22 23 #include "qscriptstring.h" 23 24 #include <QtCore/qlist.h> 24 25 #include <QtCore/qshareddata.h> … … 35 36 public: 36 37 enum ResolveFlag { 37 ResolveLocal = 0x00, 38 ResolvePrototype = 0x01 38 ResolveLocal = 0x00, 39 ResolvePrototype = 0x01, 40 ResolveScope = 0x02, 41 ResolveFull = ResolvePrototype | ResolveScope 39 42 }; 43 Q_DECLARE_FLAGS(ResolveFlags, ResolveFlag) 40 44 41 Q_DECLARE_FLAGS(ResolveFlags, ResolveFlag) 45 enum PropertyFlag { 46 ReadOnly = 0x00000001, 47 Undeletable = 0x00000002, 48 SkipInEnumeration = 0x00000004, 49 PropertyGetter = 0x00000008, 50 PropertySetter = 0x00000010, 51 QObjectMember = 0x00000020, 52 KeepExistingFlags = 0x00000800, 53 UserRange = 0xff000000 // Users may use these as they see fit. 54 }; 55 Q_DECLARE_FLAGS(PropertyFlags, PropertyFlag) 42 56 43 57 enum SpecialValue { … … 76 90 77 91 QScriptValue property(const QString& name, const ResolveFlags& mode = ResolvePrototype) const; 92 QScriptValue property(const QScriptString& name, const ResolveFlags& mode = ResolvePrototype) const; 78 93 QScriptValue property(quint32 arrayIndex, const ResolveFlags& mode = ResolvePrototype) const; 94 95 void setProperty(const QString& name, const QScriptValue& value, const PropertyFlags& flags = KeepExistingFlags); 96 void setProperty(quint32 arrayIndex, const QScriptValue& value, const PropertyFlags& flags = KeepExistingFlags); 97 void setProperty(const QScriptString& name, const QScriptValue& value, const PropertyFlags& flags = KeepExistingFlags); 79 98 80 99 QScriptEngine* engine() const; … … 103 122 QScriptValue call(const QScriptValue& thisObject = QScriptValue(), 104 123 const QScriptValueList& args = QScriptValueList()); 105 106 124 private: 107 125 QScriptValue(void*);
Note:
See TracChangeset
for help on using the changeset viewer.