Qt 4.8
Static Public Functions | List of all members
Attr Class Reference
Inheritance diagram for Attr:
Node

Static Public Functions

static QScriptValue isId (QScriptContext *context, QScriptEngine *engine)
 
static QScriptValue name (QScriptContext *context, QScriptEngine *engine)
 
static QScriptValue ownerElement (QScriptContext *context, QScriptEngine *engine)
 
static QScriptValue prototype (QScriptEngine *)
 
static QScriptValue schemaTypeInfo (QScriptContext *context, QScriptEngine *engine)
 
static QScriptValue specified (QScriptContext *context, QScriptEngine *engine)
 
static QScriptValue value (QScriptContext *context, QScriptEngine *engine)
 
- Static Public Functions inherited from Node
static QScriptValue attributes (QScriptContext *context, QScriptEngine *engine)
 
static QScriptValue childNodes (QScriptContext *context, QScriptEngine *engine)
 
static QScriptValue create (QScriptEngine *, NodeImpl *)
 
static QScriptValue firstChild (QScriptContext *context, QScriptEngine *engine)
 
static QScriptValue lastChild (QScriptContext *context, QScriptEngine *engine)
 
static QScriptValue nextSibling (QScriptContext *context, QScriptEngine *engine)
 
static QScriptValue nodeName (QScriptContext *context, QScriptEngine *engine)
 
static QScriptValue nodeType (QScriptContext *context, QScriptEngine *engine)
 
static QScriptValue nodeValue (QScriptContext *context, QScriptEngine *engine)
 
static QScriptValue parentNode (QScriptContext *context, QScriptEngine *engine)
 
static QScriptValue previousSibling (QScriptContext *context, QScriptEngine *engine)
 
static QScriptValue prototype (QScriptEngine *)
 

Additional Inherited Members

- Public Functions inherited from Node
bool isNull () const
 
 Node ()
 
 Node (const Node &o)
 
 ~Node ()
 
- Public Variables inherited from Node
NodeImpld
 

Detailed Description

Definition at line 269 of file qdeclarativexmlhttprequest.cpp.

Functions

◆ isId()

static QScriptValue Attr::isId ( QScriptContext context,
QScriptEngine engine 
)
static

◆ name()

QScriptValue Attr::name ( QScriptContext context,
QScriptEngine engine 
)
static

Definition at line 540 of file qdeclarativexmlhttprequest.cpp.

541 {
542  Node node = qscriptvalue_cast<Node>(context->thisObject());
543  if (node.isNull()) return engine->undefinedValue();
544 
545  return QScriptValue(node.d->name);
546 }
T qscriptvalue_cast(const QScriptValue &)
bool isNull() const
QScriptValue undefinedValue()
Returns a QScriptValue of the primitive type Undefined.
QScriptValue thisObject() const
Returns the `this&#39; object associated with this QScriptContext.
The QScriptValue class acts as a container for the Qt Script data types.
Definition: qscriptvalue.h:57

◆ ownerElement()

QScriptValue Attr::ownerElement ( QScriptContext context,
QScriptEngine engine 
)
static

Definition at line 556 of file qdeclarativexmlhttprequest.cpp.

557 {
558  Node node = qscriptvalue_cast<Node>(context->thisObject());
559  if (node.isNull()) return engine->undefinedValue();
560 
561  return Node::create(engine, node.d->parent);
562 }
T qscriptvalue_cast(const QScriptValue &)
bool isNull() const
static QScriptValue create(QScriptEngine *, NodeImpl *)
QScriptValue undefinedValue()
Returns a QScriptValue of the primitive type Undefined.
QScriptValue thisObject() const
Returns the `this&#39; object associated with this QScriptContext.

◆ prototype()

QScriptValue Attr::prototype ( QScriptEngine engine)
static

Definition at line 528 of file qdeclarativexmlhttprequest.cpp.

Referenced by Node::create().

529 {
530  QScriptValue proto = engine->newObject();
531  proto.setPrototype(Node::prototype(engine));
532 
536 
537  return proto;
538 }
QScriptValue newFunction(FunctionSignature signature, int length=0)
Creates a QScriptValue that wraps a native (C++) function.
static QScriptValue name(QScriptContext *context, QScriptEngine *engine)
QLatin1String(DBUS_INTERFACE_DBUS))) Q_GLOBAL_STATIC_WITH_ARGS(QString
static QScriptValue prototype(QScriptEngine *)
static QScriptValue ownerElement(QScriptContext *context, QScriptEngine *engine)
QScriptValue newObject()
Creates a QtScript object of class Object.
void setProperty(const QString &name, const QScriptValue &value, const PropertyFlags &flags=KeepExistingFlags)
Sets the value of this QScriptValue&#39;s property with the given name to the given value.
void setPrototype(const QScriptValue &prototype)
If this QScriptValue is an object, sets the internal prototype (__proto__ property) of this object to...
static QScriptValue value(QScriptContext *context, QScriptEngine *engine)
The QScriptValue class acts as a container for the Qt Script data types.
Definition: qscriptvalue.h:57

◆ schemaTypeInfo()

static QScriptValue Attr::schemaTypeInfo ( QScriptContext context,
QScriptEngine engine 
)
static

◆ specified()

static QScriptValue Attr::specified ( QScriptContext context,
QScriptEngine engine 
)
static

◆ value()

QScriptValue Attr::value ( QScriptContext context,
QScriptEngine engine 
)
static

Definition at line 548 of file qdeclarativexmlhttprequest.cpp.

549 {
550  Node node = qscriptvalue_cast<Node>(context->thisObject());
551  if (node.isNull()) return engine->undefinedValue();
552 
553  return QScriptValue(node.d->data);
554 }
T qscriptvalue_cast(const QScriptValue &)
bool isNull() const
QScriptValue undefinedValue()
Returns a QScriptValue of the primitive type Undefined.
QScriptValue thisObject() const
Returns the `this&#39; object associated with this QScriptContext.
The QScriptValue class acts as a container for the Qt Script data types.
Definition: qscriptvalue.h:57

The documentation for this class was generated from the following file: