24 #ifndef QSCRIPTQOBJECT_P_H 25 #define QSCRIPTQOBJECT_P_H 41 #include <QtCore/qpointer.h> 43 #include "InternalFunction.h" 62 QScriptEngine::QObjectWrapOptions
options;
67 QScriptEngine::QObjectWrapOptions opt)
68 : value(o), ownership(own), options(opt) {}
73 const QScriptEngine::QObjectWrapOptions &
options);
79 const JSC::Identifier& propertyName,
82 const JSC::Identifier& propertyName,
83 JSC::PropertyDescriptor&);
86 const JSC::Identifier& propertyName,
87 JSC::JSValue, JSC::PutPropertySlot&);
89 const JSC::Identifier& propertyName);
91 JSC::PropertyNameArray&,
92 JSC::EnumerationMode mode = JSC::ExcludeDontEnumProperties);
104 inline QScriptEngine::QObjectWrapOptions
options()
const 106 inline void setOptions(QScriptEngine::QObjectWrapOptions options)
126 JSC::Structure* prototypeFunctionStructure);
135 const QScriptEngine::QObjectWrapOptions &opt)
149 bool addSignalHandler(
QObject *sender,
151 JSC::JSValue receiver,
153 JSC::JSValue senderWrapper,
155 bool removeSignalHandler(
QObject *sender,
157 JSC::JSValue receiver,
161 const QScriptEngine::QObjectWrapOptions &
options)
const;
164 const QScriptEngine::QObjectWrapOptions &options);
166 void mark(JSC::MarkStack&);
184 Data(JSC::JSValue o,
int ii,
bool mo)
185 : object(o), initialIndex(ii), maybeOverloaded(mo) {}
188 QtFunction(JSC::JSValue
object,
int initialIndex,
bool maybeOverloaded,
189 JSC::JSGlobalData*, WTF::PassRefPtr<JSC::Structure>,
const JSC::Identifier&);
196 static const JSC::ClassInfo
info;
198 static JSC::JSValue JSC_HOST_CALL call(JSC::ExecState*, JSC::JSObject*,
199 JSC::JSValue,
const JSC::ArgList&);
201 JSC::JSValue execute(JSC::ExecState *exec, JSC::JSValue thisValue,
202 const JSC::ArgList &args);
207 int initialIndex()
const;
208 bool maybeOverloaded()
const;
226 : meta(m), index(i) {}
230 JSC::JSGlobalData*, WTF::PassRefPtr<JSC::Structure>,
231 const JSC::Identifier&);
237 static const JSC::ClassInfo
info;
239 static JSC::JSValue JSC_HOST_CALL call(JSC::ExecState*, JSC::JSObject*,
240 JSC::JSValue,
const JSC::ArgList&);
242 JSC::JSValue execute(JSC::ExecState *exec, JSC::JSValue thisValue,
243 const JSC::ArgList &args);
246 int propertyIndex()
const;
263 : value(mo), ctor(c) {}
267 JSC::ExecState *,
const QMetaObject *metaobject, JSC::JSValue ctor,
268 WTF::PassRefPtr<JSC::Structure> sid);
272 const JSC::Identifier& propertyName,
275 const JSC::Identifier& propertyName,
276 JSC::PropertyDescriptor&);
277 virtual void put(JSC::ExecState* exec,
const JSC::Identifier& propertyName,
278 JSC::JSValue, JSC::PutPropertySlot&);
280 const JSC::Identifier& propertyName);
282 JSC::EnumerationMode mode = JSC::ExcludeDontEnumProperties);
289 static const JSC::ClassInfo
info;
291 static JSC::JSValue JSC_HOST_CALL call(JSC::ExecState*, JSC::JSObject*,
292 JSC::JSValue,
const JSC::ArgList&);
293 static JSC::JSObject*
construct(JSC::ExecState *, JSC::JSObject *,
const JSC::ArgList &);
295 JSC::JSValue execute(JSC::ExecState *exec,
const JSC::ArgList &args);
306 static const unsigned StructureFlags = JSC::OverridesGetOwnPropertySlot | JSC::OverridesMarkChildren | JSC::OverridesGetPropertyNames | JSC::ImplementsHasInstance | JSObject::StructureFlags;
315 JSC::Structure* prototypeFunctionStructure);
Data(const QMetaObject *m, int i)
QScriptEngine::QObjectWrapOptions options() const
QList< QScript::QObjectWrapperInfo > wrappers
virtual JSC::ConstructType getConstructData(QScriptObject *, JSC::ConstructData &)
QScriptEnginePrivate * engine
static mach_timebase_info_data_t info
#define QT_END_NAMESPACE
This macro expands to.
QObjectDelegate(QObject *object, QScriptEngine::ValueOwnership ownership, const QScriptEngine::QObjectWrapOptions &options)
virtual const JSC::ClassInfo * classInfo() const
static const JSC::ClassInfo info
virtual void markChildren(QScriptObject *, JSC::MarkStack &markStack)
virtual bool deleteProperty(QScriptObject *, JSC::ExecState *, const JSC::Identifier &propertyName)
static Expression::Ptr create(Expression *const expr, const YYLTYPE &sourceLocator, const ParserContext *const parseInfo)
QScriptEngine::ValueOwnership ownership() const
QPointer< QObject > value
The QObject class is the base class of all Qt objects.
virtual bool getOwnPropertySlot(QScriptObject *, JSC::ExecState *, const JSC::Identifier &propertyName, JSC::PropertySlot &)
void setOwnership(QScriptEngine::ValueOwnership ownership)
virtual void getOwnPropertyNames(QScriptObject *, JSC::ExecState *, JSC::PropertyNameArray &, JSC::EnumerationMode mode=JSC::ExcludeDontEnumProperties)
#define QT_BEGIN_NAMESPACE
This macro expands to.
void setValue(QObject *value)
QScriptEngine::ValueOwnership ownership
QScript::QObjectConnectionManager * connectionManager
ValueOwnership
This enum specifies the ownership when wrapping a C++ value, e.
virtual void put(QScriptObject *, JSC::ExecState *exec, const JSC::Identifier &propertyName, JSC::JSValue, JSC::PutPropertySlot &)
virtual bool getOwnPropertyDescriptor(QScriptObject *, JSC::ExecState *, const JSC::Identifier &propertyName, JSC::PropertyDescriptor &)
QHash< QByteArray, JSC::JSValue > cachedMembers
QScriptEngine::ValueOwnership ownership
static QByteArray prototype(const QList< QByteArray > ¶meterTypes, const QList< QByteArray > ¶meterNames, bool *ok)
virtual Type type() const
virtual const JSC::ClassInfo * classInfo() const
static void construct(QVariant::Private *x, const void *copy)
QObjectWrapperInfo(QScriptObject *obj, QScriptEngine::ValueOwnership own, const QScriptEngine::QObjectWrapOptions &opt)
Data(JSC::JSValue o, int ii, bool mo)
Data(QObject *o, QScriptEngine::ValueOwnership own, QScriptEngine::QObjectWrapOptions opt)
QScriptEngine::QObjectWrapOptions options
virtual bool compareToObject(QScriptObject *, JSC::ExecState *, JSC::JSObject *)
QScriptEngine::QObjectWrapOptions options
void setOptions(QScriptEngine::QObjectWrapOptions options)
~QObjectPrototypeObject()
static const JSC::ClassInfo info
virtual JSC::CallType getCallData(QScriptObject *, JSC::CallData &)
QObjectPrototypeObject(QObject *parent=0)