Qt 4.8
|
#include <qscriptdeclarativeclass_p.h>
Classes | |
struct | Object |
class | PersistentIdentifier |
class | Value |
The QScriptDeclarativeClass::Value class acts as a container for JavaScript data types. More... | |
Public Types | |
typedef void * | Identifier |
Protected Variables | |
QScopedPointer< QScriptDeclarativeClassPrivate > | d_ptr |
Friends | |
class | QScriptDeclarativeClassPrivate |
Definition at line 47 of file qscriptdeclarativeclass_p.h.
typedef void* QScriptDeclarativeClass::Identifier |
Definition at line 78 of file qscriptdeclarativeclass_p.h.
QScriptDeclarativeClass::QScriptDeclarativeClass | ( | QScriptEngine * | engine | ) |
Definition at line 190 of file qscriptdeclarativeclass.cpp.
|
virtual |
Definition at line 426 of file qscriptdeclarativeclass.cpp.
|
virtual |
Reimplemented in QDeclarativeObjectMethodScriptClass.
Definition at line 528 of file qscriptdeclarativeclass.cpp.
Referenced by QScript::DeclarativeObjectDelegate::call().
Reimplemented in QDeclarativeObjectScriptClass, and FlatListScriptClass.
Definition at line 536 of file qscriptdeclarativeclass.cpp.
Referenced by QScript::DeclarativeObjectDelegate::compareToObject().
QScriptContext * QScriptDeclarativeClass::context | ( | ) | const |
Definition at line 564 of file qscriptdeclarativeclass.cpp.
Referenced by QDeclarativeObjectScriptClass::queryProperty(), QDeclarativeValueTypeScriptClass::setProperty(), QDeclarativeTypeNameScriptClass::setProperty(), QDeclarativeContextScriptClass::setProperty(), and QDeclarativeObjectScriptClass::setProperty().
QScriptDeclarativeClass::PersistentIdentifier QScriptDeclarativeClass::createPersistentIdentifier | ( | const QString & | str | ) |
Definition at line 446 of file qscriptdeclarativeclass.cpp.
Referenced by QDeclarativeTypeNameCache::add(), QDeclarativePropertyCache::append(), QDeclarativeListScriptClass::QDeclarativeListScriptClass(), QDeclarativeObjectMethodScriptClass::QDeclarativeObjectMethodScriptClass(), QDeclarativeObjectScriptClass::QDeclarativeObjectScriptClass(), and QDeclarativeCompiledBindingsPrivate::run().
QScriptDeclarativeClass::PersistentIdentifier QScriptDeclarativeClass::createPersistentIdentifier | ( | const Identifier & | id | ) |
Definition at line 460 of file qscriptdeclarativeclass.cpp.
QScriptEngine * QScriptDeclarativeClass::engine | ( | ) | const |
Definition at line 430 of file qscriptdeclarativeclass.cpp.
Referenced by QDeclarativeContextScriptClass::contextFromValue(), QDeclarativeContextScriptClass::newContext(), QDeclarativeListScriptClass::newList(), QDeclarativeObjectMethodScriptClass::newMethod(), QDeclarativeValueTypeScriptClass::newObject(), QDeclarativeTypeNameScriptClass::newObject(), QDeclarativeObjectScriptClass::newQObject(), QDeclarativeContextScriptClass::newSharedContext(), QDeclarativeContextScriptClass::newUrlContext(), QDeclarativeListScriptClass::property(), QDeclarativeValueTypeScriptClass::property(), QDeclarativeTypeNameScriptClass::property(), QDeclarativeObjectMethodScriptClass::property(), QDeclarativeContextScriptClass::property(), QDeclarativeObjectScriptClass::property(), FlatListScriptClass::property(), QDeclarativeObjectScriptClass::propertyNames(), QDeclarativeListScriptClass::QDeclarativeListScriptClass(), QDeclarativeObjectMethodScriptClass::QDeclarativeObjectMethodScriptClass(), QDeclarativeObjectScriptClass::QDeclarativeObjectScriptClass(), QScriptDeclarativeClass(), QDeclarativeTypeNameScriptClass::queryProperty(), QDeclarativeContextScriptClass::queryProperty(), QDeclarativeObjectScriptClass::queryProperty(), scopeChainValue(), QDeclarativeValueTypeScriptClass::setProperty(), QDeclarativeTypeNameScriptClass::setProperty(), QDeclarativeContextScriptClass::setProperty(), QDeclarativeObjectScriptClass::setProperty(), and QDeclarativeListScriptClass::toVariant().
|
static |
Definition at line 247 of file qscriptdeclarativeclass.cpp.
|
static |
Definition at line 295 of file qscriptdeclarativeclass.cpp.
|
virtual |
Reimplemented in QDeclarativeObjectScriptClass.
Definition at line 547 of file qscriptdeclarativeclass.cpp.
|
static |
Definition at line 198 of file qscriptdeclarativeclass.cpp.
Referenced by FlatListModel::get(), QDeclarativeContextScriptClass::newContext(), QDeclarativeListScriptClass::newList(), QDeclarativeObjectMethodScriptClass::newMethod(), QDeclarativeValueTypeScriptClass::newObject(), QDeclarativeTypeNameScriptClass::newObject(), QDeclarativeObjectScriptClass::newQObject(), QDeclarativeContextScriptClass::newSharedContext(), and QDeclarativeContextScriptClass::newUrlContext().
|
static |
Definition at line 215 of file qscriptdeclarativeclass.cpp.
|
static |
Creates a scope object with a fixed set of undeletable properties.
Definition at line 572 of file qscriptdeclarativeclass.cpp.
Referenced by QDeclarativeContextData::addImportedScript(), and QDeclarativeGlobalScriptClass::QDeclarativeGlobalScriptClass().
|
static |
Creates a static scope object that's initially empty, but to which new properties can be added.
Definition at line 597 of file qscriptdeclarativeclass.cpp.
|
static |
Definition at line 239 of file qscriptdeclarativeclass.cpp.
Referenced by QDeclarativeObjectScriptClass::destroy(), QDeclarativeListScriptClass::newList(), QDeclarativeValueTypeScriptClass::newObject(), QDeclarativeObjectScriptClass::objectType(), and scopeChainValue().
|
static |
Definition at line 271 of file qscriptdeclarativeclass.cpp.
Referenced by QScript::DeclarativeObjectDelegate::getOwnPropertySlot().
|
virtual |
Reimplemented in QDeclarativeObjectScriptClass, FlatListScriptClass, QDeclarativeContextScriptClass, QDeclarativeObjectMethodScriptClass, QDeclarativeTypeNameScriptClass, QDeclarativeListScriptClass, and QDeclarativeValueTypeScriptClass.
Definition at line 505 of file qscriptdeclarativeclass.cpp.
|
virtual |
Definition at line 521 of file qscriptdeclarativeclass.cpp.
|
virtual |
Reimplemented in QDeclarativeObjectScriptClass.
Definition at line 541 of file qscriptdeclarativeclass.cpp.
Referenced by QScript::DeclarativeObjectDelegate::getOwnPropertyNames().
|
static |
Definition at line 320 of file qscriptdeclarativeclass.cpp.
|
static |
Enters a new execution context and returns the associated QScriptContext object.
Once you are done with the context, you should call popContext() to restore the old context.
By default, the `this' object of the new context is the Global Object. The context's callee() will be invalid.
Unlike pushContext(), the default scope chain is reset to include only the global object and the QScriptContext's activation object.
Definition at line 408 of file qscriptdeclarativeclass.cpp.
Referenced by QDeclarativeContextData::addImportedScript(), QDeclarativeExpressionPrivate::evalInObjectScope(), QDeclarativeInclude::finished(), QDeclarativeInclude::include(), QDeclarativeExpressionPrivate::init(), QDeclarativeWorkerScriptEnginePrivate::processLoad(), QDeclarativeExpressionPrivate::scriptValue(), and QDeclarativeInclude::worker_include().
|
virtual |
Reimplemented in QDeclarativeObjectScriptClass, FlatListScriptClass, QDeclarativeContextScriptClass, QDeclarativeObjectMethodScriptClass, QDeclarativeTypeNameScriptClass, QDeclarativeListScriptClass, and QDeclarativeValueTypeScriptClass.
Definition at line 495 of file qscriptdeclarativeclass.cpp.
Referenced by QScript::DeclarativeObjectDelegate::getOwnPropertySlot(), and QScript::DeclarativeObjectDelegate::put().
|
static |
Definition at line 348 of file qscriptdeclarativeclass.cpp.
Referenced by QDeclarativeEnginePrivate::getContext(), QDeclarativeEnginePrivate::getUrl(), QDeclarativeInclude::include(), QDeclarativeInclude::QDeclarativeInclude(), QDeclarativeObjectScriptClass::queryProperty(), QDeclarativeObjectScriptClass::setProperty(), and QDeclarativeInclude::worker_include().
|
static |
Definition at line 231 of file qscriptdeclarativeclass.cpp.
Referenced by QDeclarativeObjectMethodScriptClass::connect(), QDeclarativeContextScriptClass::contextFromValue(), QDeclarativeObjectScriptClass::destroy(), QDeclarativeObjectMethodScriptClass::disconnect(), QDeclarativeEnginePrivate::getContext(), QDeclarativeEnginePrivate::getUrl(), QDeclarativeObjectScriptClass::objectType(), QDeclarativeObjectScriptClass::queryProperty(), QDeclarativeEnginePrivate::scriptValueToVariant(), QDeclarativeContextScriptClass::setOverrideObject(), QDeclarativeObjectScriptClass::setProperty(), QDeclarativeValueTypeScriptClass::toVariant(), and QDeclarativeContextScriptClass::urlFromValue().
|
virtual |
Reimplemented in QDeclarativeObjectScriptClass, FlatListScriptClass, QDeclarativeContextScriptClass, QDeclarativeTypeNameScriptClass, and QDeclarativeValueTypeScriptClass.
Definition at line 512 of file qscriptdeclarativeclass.cpp.
Referenced by QScript::DeclarativeObjectDelegate::put().
void QScriptDeclarativeClass::setSupportsCall | ( | bool | c | ) |
Definition at line 440 of file qscriptdeclarativeclass.cpp.
Referenced by QDeclarativeObjectMethodScriptClass::QDeclarativeObjectMethodScriptClass().
bool QScriptDeclarativeClass::startsWithUpper | ( | const Identifier & | identifier | ) |
Definition at line 479 of file qscriptdeclarativeclass.cpp.
Referenced by QDeclarativeTypeNameScriptClass::queryProperty().
bool QScriptDeclarativeClass::supportsCall | ( | ) | const |
Definition at line 435 of file qscriptdeclarativeclass.cpp.
quint32 QScriptDeclarativeClass::toArrayIndex | ( | const Identifier & | identifier, |
bool * | ok | ||
) |
Definition at line 487 of file qscriptdeclarativeclass.cpp.
Referenced by QDeclarativeListScriptClass::queryProperty().
Reimplemented in QDeclarativeObjectScriptClass.
Definition at line 552 of file qscriptdeclarativeclass.cpp.
QString QScriptDeclarativeClass::toString | ( | const Identifier & | identifier | ) |
Definition at line 473 of file qscriptdeclarativeclass.cpp.
Referenced by FlatListScriptClass::property(), QDeclarativePropertyCache::property(), QDeclarativeValueTypeScriptClass::queryProperty(), QDeclarativeTypeNameScriptClass::queryProperty(), QDeclarativeObjectScriptClass::setProperty(), and FlatListScriptClass::setProperty().
Reimplemented in QDeclarativeValueTypeScriptClass, and QDeclarativeListScriptClass.
Definition at line 558 of file qscriptdeclarativeclass.cpp.
|
friend |
Definition at line 150 of file qscriptdeclarativeclass_p.h.
|
protected |
Definition at line 151 of file qscriptdeclarativeclass_p.h.
Referenced by context(), createPersistentIdentifier(), engine(), QScriptDeclarativeClass(), setSupportsCall(), and supportsCall().