Qt 4.8
|
Namespaces | |
AST | |
Classes | |
class | APIShim |
class | ClassObjectDelegate |
class | DeclarativeObjectDelegate |
class | FunctionWithArgWrapper |
class | FunctionWrapper |
struct | GlobalClientData |
class | GlobalObject |
class | Lexer |
class | OriginalGlobalObjectProxy |
class | QMetaObjectPrototype |
class | QMetaObjectWrapperObject |
struct | QObjectConnection |
class | QObjectConnectionManager |
class | QObjectData |
class | QObjectDelegate |
class | QObjectNotifyCaller |
class | QObjectPrototype |
class | QObjectPrototypeObject |
struct | QObjectWrapperInfo |
class | QScriptActivationObject |
Represent a scope for native function call. More... | |
struct | QScriptMetaArguments |
class | QScriptMetaMethod |
class | QScriptMetaType |
class | QtFunction |
class | QtPropertyFunction |
class | QVariantDelegate |
class | QVariantPrototype |
class | SaveFrameHelper |
struct | StaticQtMetaObject |
class | SyntaxChecker |
class | TimeoutCheckerProxy |
class | UStringSourceProviderWithFeedback |
Enumerations | |
enum | AttributeExtension { QObjectMemberAttribute = 1 << 12 } |
enum | Type { Undefined, Null, Boolean, String, Number, Object } |
Functions | |
static QScriptValue | __setupPackage__ (QScriptContext *ctx, QScriptEngine *eng) |
static JSC::JSValue | callQtMethod (JSC::ExecState *exec, QMetaMethod::MethodType callType, QObject *thisQObject, const JSC::ArgList &scriptArgs, const QMetaObject *meta, int initialIndex, bool maybeOverloaded) |
QByteArray | convertToLatin1 (const JSC::UString &str) |
void | convertToLatin1_helper (const UChar *i, int length, char *s) |
qsreal | DateTimeToMs (JSC::ExecState *exec, const QDateTime &dt) |
Converts a QDateTime to a JS date value (milliseconds). More... | |
static bool | Equals (QScriptValue lhs, QScriptValue rhs) |
static unsigned | flagsForMetaProperty (const QMetaProperty &prop) |
static JSC::JSValue JSC_HOST_CALL | functionConnect (JSC::ExecState *, JSC::JSObject *, JSC::JSValue, const JSC::ArgList &) |
static JSC::JSValue JSC_HOST_CALL | functionDisconnect (JSC::ExecState *, JSC::JSObject *, JSC::JSValue, const JSC::ArgList &) |
static JSC::JSValue JSC_HOST_CALL | functionGC (JSC::ExecState *, JSC::JSObject *, JSC::JSValue, const JSC::ArgList &) |
static JSC::JSValue JSC_HOST_CALL | functionPrint (JSC::ExecState *, JSC::JSObject *, JSC::JSValue, const JSC::ArgList &) |
static JSC::JSValue JSC_HOST_CALL | functionQsTr (JSC::ExecState *, JSC::JSObject *, JSC::JSValue, const JSC::ArgList &) |
static JSC::JSValue JSC_HOST_CALL | functionQsTranslate (JSC::ExecState *, JSC::JSObject *, JSC::JSValue, const JSC::ArgList &) |
static JSC::JSValue JSC_HOST_CALL | functionQsTranslateNoOp (JSC::ExecState *, JSC::JSObject *, JSC::JSValue, const JSC::ArgList &) |
static JSC::JSValue JSC_HOST_CALL | functionQsTrId (JSC::ExecState *, JSC::JSObject *, JSC::JSValue, const JSC::ArgList &) |
static JSC::JSValue JSC_HOST_CALL | functionQsTrIdNoOp (JSC::ExecState *, JSC::JSObject *, JSC::JSValue, const JSC::ArgList &) |
static JSC::JSValue JSC_HOST_CALL | functionQsTrNoOp (JSC::ExecState *, JSC::JSObject *, JSC::JSValue, const JSC::ArgList &) |
static JSC::JSValue JSC_HOST_CALL | functionVersion (JSC::ExecState *, JSC::JSObject *, JSC::JSValue, const JSC::ArgList &) |
static bool | hasMethodAccess (const QMetaMethod &method, int index, const QScriptEngine::QObjectWrapOptions &opt) |
static int | indexOfMetaEnum (const QMetaObject *meta, const QByteArray &str) |
qsreal | integerFromString (const char *buf, int size, int radix) |
qsreal | integerFromString (const QString &str, int radix) |
static bool | isEnumerableMetaProperty (const QMetaProperty &prop, const QMetaObject *mo, int index) |
bool | isFunction (JSC::JSValue value) |
static bool | IsNumerical (const QScriptValue &value) |
static bool | LessThan (QScriptValue lhs, QScriptValue rhs) |
static QMetaMethod | metaMethod (const QMetaObject *meta, QMetaMethod::MethodType type, int index) |
static QByteArray | methodName (const char *signature, int nameLength) |
Makes a deep copy of the first nameLength characters of the given method signature and returns the copy. More... | |
static bool | methodNameEquals (const QMetaMethod &method, const char *signature, int nameLength) |
Returns true if the name of the given method is the same as that specified by the (signature, nameLength) pair, otherwise returns false. More... | |
static int | methodNameLength (const QMetaMethod &method) |
Calculates the length of the name of the given method by looking for the first '(' character. More... | |
static int | MsFromTime (qsreal t) |
QDateTime | MsToDateTime (JSC::ExecState *exec, qsreal t) |
Converts a JS date value (milliseconds) to a QDateTime (local time). More... | |
static JSC::JSValue JSC_HOST_CALL | qmetaobjectProtoFuncClassName (JSC::ExecState *exec, JSC::JSObject *, JSC::JSValue thisValue, const JSC::ArgList &) |
static JSC::JSValue JSC_HOST_CALL | qobjectProtoFuncFindChild (JSC::ExecState *exec, JSC::JSObject *, JSC::JSValue thisValue, const JSC::ArgList &args) |
static JSC::JSValue JSC_HOST_CALL | qobjectProtoFuncFindChildren (JSC::ExecState *exec, JSC::JSObject *, JSC::JSValue thisValue, const JSC::ArgList &args) |
static JSC::JSValue JSC_HOST_CALL | qobjectProtoFuncToString (JSC::ExecState *exec, JSC::JSObject *, JSC::JSValue thisValue, const JSC::ArgList &) |
static QScriptable * | scriptableFromQObject (QObject *qobj) |
QScriptEnginePrivate * | scriptEngineFromExec (const JSC::ExecState *exec) |
static JSC::JSValue JSC_HOST_CALL | stringProtoFuncArg (JSC::ExecState *, JSC::JSObject *, JSC::JSValue, const JSC::ArgList &) |
bool | ToBool (qsreal) |
bool | ToBool (const QString &) |
static int | toDigit (char c) |
qint32 | ToInt32 (const QString &) |
qint32 | ToInt32 (qsreal n) |
qsreal | ToInteger (const QString &) |
qsreal | ToInteger (qsreal n) |
qsreal | ToNumber (const QString &) |
static QScriptValue | ToPrimitive (const QScriptValue &object, JSC::PreferredPrimitiveType hint=JSC::NoPreference) |
QString | ToString (qsreal) |
quint16 | ToUInt16 (const QString &) |
quint16 | ToUInt16 (qsreal n) |
quint32 | ToUInt32 (const QString &) |
quint32 | ToUInt32 (qsreal n) |
static Type | type (const QScriptValue &v) |
static QVariant | variantFromValue (JSC::ExecState *exec, int targetType, JSC::JSValue value) |
static JSC::JSValue JSC_HOST_CALL | variantProtoFuncToString (JSC::ExecState *exec, JSC::JSObject *callee, JSC::JSValue thisValue, const JSC::ArgList &args) |
static JSC::JSValue JSC_HOST_CALL | variantProtoFuncValueOf (JSC::ExecState *exec, JSC::JSObject *, JSC::JSValue thisValue, const JSC::ArgList &) |
Variables | |
static const qsreal | D32 = 4294967296.0 |
static const bool | GeneratePropertyFunctions = true |
static const qsreal | MsPerSecond = 1000.0 |
static const uint | qt_meta_data_QObjectConnectionManager [] |
static const char | qt_meta_stringdata_QObjectConnectionManager [] |
enum QScript::Type |
Enumerator | |
---|---|
Undefined | |
Null | |
Boolean | |
String | |
Number | |
Object |
Definition at line 686 of file qscriptvalue.cpp.
|
static |
Definition at line 955 of file qscriptengine.cpp.
Referenced by QScriptEngine::importExtension().
|
static |
Definition at line 523 of file qscriptqobject.cpp.
Referenced by QScript::QtFunction::execute(), and QScript::QMetaObjectWrapperObject::execute().
|
inline |
Definition at line 570 of file qscriptengine_p.h.
Referenced by callQtMethod(), QAbstractConcatenable::convertToAscii(), QScript::QObjectDelegate::deleteProperty(), QScript::QMetaObjectWrapperObject::deleteProperty(), QScript::QObjectDelegate::getOwnPropertyDescriptor(), QScript::QObjectDelegate::getOwnPropertySlot(), QScript::QMetaObjectWrapperObject::getOwnPropertySlot(), QScript::QObjectDelegate::put(), and QScript::QMetaObjectWrapperObject::put().
|
inline |
Converts a QDateTime to a JS date value (milliseconds).
Definition at line 483 of file qscriptengine.cpp.
Referenced by QScriptEnginePrivate::newDate().
|
static |
Definition at line 764 of file qscriptvalue.cpp.
Referenced by QScriptValue::equals().
|
static |
Definition at line 238 of file qscriptqobject.cpp.
Referenced by QScript::QObjectDelegate::getOwnPropertyDescriptor().
|
static |
Definition at line 681 of file qscriptengine.cpp.
Referenced by isFunction(), and QScriptEnginePrivate::QScriptEnginePrivate().
|
static |
Definition at line 617 of file qscriptengine.cpp.
Referenced by isFunction(), and QScriptEnginePrivate::QScriptEnginePrivate().
|
static |
Definition at line 785 of file qscriptengine.cpp.
Referenced by functionConnect(), and QScriptEnginePrivate::QScriptEnginePrivate().
|
static |
Definition at line 768 of file qscriptengine.cpp.
Referenced by functionConnect(), and QScriptEnginePrivate::QScriptEnginePrivate().
|
static |
Definition at line 861 of file qscriptengine.cpp.
Referenced by functionVersion(), and QScriptEngine::installTranslatorFunctions().
|
static |
Definition at line 806 of file qscriptengine.cpp.
Referenced by functionVersion(), and QScriptEngine::installTranslatorFunctions().
|
static |
Definition at line 854 of file qscriptengine.cpp.
Referenced by functionVersion(), and QScriptEngine::installTranslatorFunctions().
|
static |
Definition at line 916 of file qscriptengine.cpp.
Referenced by functionVersion(), and QScriptEngine::installTranslatorFunctions().
|
static |
Definition at line 931 of file qscriptengine.cpp.
Referenced by functionVersion(), and QScriptEngine::installTranslatorFunctions().
|
static |
Definition at line 909 of file qscriptengine.cpp.
Referenced by functionVersion(), and QScriptEngine::installTranslatorFunctions().
|
static |
Definition at line 792 of file qscriptengine.cpp.
Referenced by functionConnect(), and QScriptEnginePrivate::QScriptEnginePrivate().
|
static |
Definition at line 152 of file qscriptqobject.cpp.
Referenced by QScript::QObjectDelegate::getOwnPropertyDescriptor(), QScript::QObjectDelegate::getOwnPropertyNames(), QScript::QObjectDelegate::getOwnPropertySlot(), and QScript::QObjectDelegate::put().
|
static |
Definition at line 248 of file qscriptqobject.cpp.
Referenced by callQtMethod().
qsreal QScript::integerFromString | ( | const char * | buf, |
int | size, | ||
int | radix | ||
) |
Definition at line 547 of file qscriptengine.cpp.
Referenced by QScript::Lexer::lex().
Definition at line 600 of file qscriptengine.cpp.
|
static |
Definition at line 159 of file qscriptqobject.cpp.
Referenced by QScript::QObjectDelegate::getOwnPropertyNames().
bool QScript::isFunction | ( | JSC::JSValue | value | ) |
Definition at line 606 of file qscriptengine.cpp.
Referenced by QScriptDeclarativeClass::function(), functionConnect(), functionDisconnect(), QScriptDeclarativeClass::functionValue(), QScriptValue::isFunction(), QScriptEngine::qScriptConnect(), and QScriptEngine::qScriptDisconnect().
|
static |
Definition at line 725 of file qscriptvalue.cpp.
Referenced by Equals().
|
static |
Definition at line 730 of file qscriptvalue.cpp.
Referenced by QScriptValue::lessThan().
|
static |
Definition at line 513 of file qscriptqobject.cpp.
Referenced by callQtMethod(), and QDeclarativeEngineDebugService::setMethodBody().
|
inlinestatic |
Makes a deep copy of the first nameLength characters of the given method signature and returns the copy.
Definition at line 191 of file qscriptqobject.cpp.
Referenced by QDeclarativePropertyCache::append(), QDeclarativeEngineDebugService::buildObjectDump(), callQtMethod(), QDeclarativePropertyCache::create(), QDeclarativePropertyPrivate::findSignalByName(), QDBusXmlParser::interfaces(), QDeclarativeEngineDebugService::messageReceived(), QDBusInterfacePrivate::metacall(), QDeclarativeObjectMethodScriptClass::relatedMethod(), and QSingleShotTimer::timerEvent().
|
inlinestatic |
Returns true if the name of the given method is the same as that specified by the (signature, nameLength) pair, otherwise returns false.
Definition at line 205 of file qscriptqobject.cpp.
Referenced by callQtMethod(), QScript::QObjectDelegate::getOwnPropertyDescriptor(), QScript::QObjectDelegate::getOwnPropertySlot(), and QScript::QtFunction::overloadedIndexes().
|
inlinestatic |
Calculates the length of the name of the given method by looking for the first '(' character.
Definition at line 175 of file qscriptqobject.cpp.
Referenced by callQtMethod(), and QScript::QtFunction::overloadedIndexes().
|
inlinestatic |
Converts a JS date value (milliseconds) to a QDateTime (local time).
Definition at line 464 of file qscriptengine.cpp.
Referenced by QScriptEnginePrivate::toDateTime().
|
static |
Definition at line 2012 of file qscriptqobject.cpp.
Referenced by QScript::QMetaObjectPrototype::QMetaObjectPrototype().
|
static |
Definition at line 1665 of file qscriptqobject.cpp.
Referenced by QScript::QObjectPrototype::QObjectPrototype().
|
static |
Definition at line 1685 of file qscriptqobject.cpp.
Referenced by QScript::QObjectPrototype::QObjectPrototype().
|
static |
Definition at line 1738 of file qscriptqobject.cpp.
Referenced by QScript::QObjectPrototype::QObjectPrototype().
|
inlinestatic |
Definition at line 267 of file qscriptqobject.cpp.
Referenced by callQtMethod(), and QScript::QtPropertyFunction::execute().
|
inline |
Definition at line 512 of file qscriptengine_p.h.
Referenced by QScriptContext::activationObject(), QScriptContext::argumentsObject(), QScript::ClassObjectDelegate::call(), QScript::DeclarativeObjectDelegate::call(), QScript::QtFunction::call(), QScript::QMetaObjectWrapperObject::call(), QScriptContext::callee(), callQtMethod(), QScript::ClassObjectDelegate::construct(), QScript::QMetaObjectWrapperObject::construct(), QScriptEnginePrivate::contextForFrame(), QScriptEnginePrivate::convertValue(), QScriptEnginePrivate::create(), QScript::ClassObjectDelegate::deleteProperty(), QScriptContext::engine(), QScript::QtFunction::execute(), QScript::QtPropertyFunction::execute(), QScript::QMetaObjectWrapperObject::execute(), functionConnect(), functionDisconnect(), functionGC(), functionQsTr(), QScript::GlobalObject::getOwnPropertyDescriptor(), QScript::ClassObjectDelegate::getOwnPropertyDescriptor(), QScript::QObjectDelegate::getOwnPropertyDescriptor(), QScript::ClassObjectDelegate::getOwnPropertyNames(), QScript::GlobalObject::getOwnPropertySlot(), QScript::ClassObjectDelegate::getOwnPropertySlot(), QScript::QObjectDelegate::getOwnPropertySlot(), QScript::ClassObjectDelegate::hasInstance(), QScriptContext::isCalledAsConstructor(), QScriptContext::parentContext(), QScriptContext::popScope(), QScript::FunctionWrapper::proxyCall(), QScript::FunctionWithArgWrapper::proxyCall(), QScript::FunctionWrapper::proxyConstruct(), QScript::FunctionWithArgWrapper::proxyConstruct(), QScriptContext::pushScope(), QScript::ClassObjectDelegate::put(), QScript::DeclarativeObjectDelegate::put(), QScript::QObjectDelegate::put(), qmetaobjectProtoFuncClassName(), qobjectProtoFuncFindChild(), qobjectProtoFuncFindChildren(), qobjectProtoFuncToString(), QScriptContextInfoPrivate::QScriptContextInfoPrivate(), QScriptContext::scopeChain(), QScriptDeclarativeClass::scopeChainValue(), QScriptContext::setActivationObject(), QScriptContext::setReturnValue(), QScriptContext::setThisObject(), QScriptContext::thisObject(), QScriptContext::throwError(), QScriptContext::throwValue(), QScriptEnginePrivate::variantListFromArray(), QScriptEnginePrivate::variantMapFromObject(), variantProtoFuncToString(), and variantProtoFuncValueOf().
|
static |
Definition at line 941 of file qscriptengine.cpp.
Referenced by functionQsTrIdNoOp(), and QScriptEngine::installTranslatorFunctions().
|
inline |
Definition at line 552 of file qscriptengine_p.h.
Referenced by QScriptEnginePrivate::convertNumber(), QScriptEnginePrivate::convertString(), QScriptValue::toBool(), and QScriptValue::toBoolean().
|
inline |
Definition at line 557 of file qscriptengine_p.h.
|
static |
Definition at line 536 of file qscriptengine.cpp.
Referenced by integerFromString().
Definition at line 532 of file qscriptengine_p.h.
Definition at line 368 of file qscriptengine.cpp.
Referenced by QScriptEnginePrivate::convertNumber(), QScriptEnginePrivate::convertString(), and QScriptValue::toInt32().
Definition at line 547 of file qscriptengine_p.h.
Definition at line 422 of file qscriptengine.cpp.
Referenced by QScriptEnginePrivate::convertNumber(), QScriptEnginePrivate::convertString(), and QScriptValue::toInteger().
Definition at line 525 of file qscriptengine_p.h.
Referenced by QScriptEnginePrivate::convertString(), ToInt32(), ToInteger(), QScriptValue::toNumber(), ToUInt16(), and ToUInt32().
|
static |
Definition at line 711 of file qscriptvalue.cpp.
Referenced by Equals(), and LessThan().
Definition at line 520 of file qscriptengine_p.h.
Referenced by QScriptEnginePrivate::convertNumber(), ToInteger(), and QScriptValue::toString().
Definition at line 542 of file qscriptengine_p.h.
Definition at line 404 of file qscriptengine.cpp.
Referenced by QScriptEnginePrivate::convertNumber(), QScriptEnginePrivate::convertString(), QScriptEnginePrivate::convertValue(), QScriptValue::toUInt16(), and QScriptEnginePrivate::toUInt16().
Definition at line 537 of file qscriptengine_p.h.
Definition at line 388 of file qscriptengine.cpp.
Referenced by QScriptEnginePrivate::convertNumber(), QScriptEnginePrivate::convertString(), and QScriptValue::toUInt32().
|
static |
Definition at line 695 of file qscriptvalue.cpp.
|
static |
Definition at line 213 of file qscriptqobject.cpp.
Referenced by QScript::QtPropertyFunction::execute().
|
static |
Definition at line 109 of file qscriptvariant.cpp.
Referenced by QScript::QVariantPrototype::QVariantPrototype().
|
static |
Definition at line 71 of file qscriptvariant.cpp.
Referenced by QScript::QVariantPrototype::QVariantPrototype(), and variantProtoFuncToString().
|
static |
Definition at line 366 of file qscriptengine.cpp.
Referenced by ToInt32(), and ToUInt32().
|
static |
Definition at line 236 of file qscriptqobject.cpp.
|
static |
Definition at line 449 of file qscriptengine.cpp.
|
static |
Definition at line 2031 of file qscriptqobject.cpp.
|
static |
Definition at line 2047 of file qscriptqobject.cpp.