Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qqmlxmlhttprequest.cpp File Reference

(8b6a9403bf2e04d34b9b07d2780186029fab99d0)

#include "qqmlxmlhttprequest_p.h"
#include "qqmlengine.h"
#include "qqmlengine_p.h"
#include <private/qqmlrefcount_p.h>
#include "qqmlglobal_p.h"
#include <private/qv4domerrors_p.h>
#include <private/qv4engine_p.h>
#include <private/qv4functionobject_p.h>
#include <private/qv4scopedvalue_p.h>
#include <private/qv4jscall_p.h>
#include <QtCore/qobject.h>
#include <QtQml/qjsvalue.h>
#include <QtQml/qjsengine.h>
#include <QtQml/qqmlfile.h>
#include <QtNetwork/qnetworkreply.h>
#include <QtCore/qpointer.h>
#include <QtCore/qstringconverter.h>
#include <QtCore/qxmlstream.h>
#include <QtCore/qstack.h>
#include <QtCore/qdebug.h>
#include <QtCore/qbuffer.h>
#include <private/qv4objectproto_p.h>
#include <private/qv4arraybuffer_p.h>
#include <private/qv4jsonobject_p.h>
#include <qqmlxmlhttprequest.moc>
+ Include dependency graph for qqmlxmlhttprequest.cpp:

Go to the source code of this file.

Classes

struct  QQmlXMLHttpRequestData
 
class  QV4::NodeImpl
 
class  QV4::DocumentImpl
 
struct  QV4::Heap::NamedNodeMap
 
struct  QV4::Heap::NodeList
 
struct  QV4::Heap::NodePrototype
 
struct  QV4::Heap::Node
 
class  QV4::NamedNodeMap
 
class  QV4::NodeList
 
class  QV4::NodePrototype
 
struct  QV4::Node
 
class  QV4::Element
 
class  QV4::Attr
 
class  QV4::CharacterData
 
class  QV4::Text
 
class  QV4::CDATA
 
class  QV4::Document
 
class  QQmlXMLHttpRequest
 
struct  QV4::Heap::QQmlXMLHttpRequestWrapper
 
struct  QV4::QQmlXMLHttpRequestWrapper
 
struct  QV4::QQmlXMLHttpRequestCtor
 

Namespaces

namespace  QV4
 
namespace  QV4::Heap
 

Macros

#define V4THROW_REFERENCE(string)
 
#define XMLHTTPREQUEST_MAXIMUM_REDIRECT_RECURSION   15
 
#define QQmlXMLHttpRequestCtorMembers(class, Member)    Member(class, Pointer, Object *, proto)
 

Functions

QT_BEGIN_NAMESPACE DEFINE_BOOL_CONFIG_OPTION (xhrDump, QML_XHR_DUMP)
 
 DEFINE_BOOL_CONFIG_OPTION (xhrFileWrite, QML_XHR_ALLOW_FILE_WRITE)
 
 DEFINE_BOOL_CONFIG_OPTION (xhrFileRead, QML_XHR_ALLOW_FILE_READ)
 
static QQmlXMLHttpRequestDataxhrdata (ExecutionEngine *v4)
 
 QV4::DEFINE_OBJECT_VTABLE (NamedNodeMap)
 
 QV4::DEFINE_OBJECT_VTABLE (NodeList)
 
 QV4::DEFINE_OBJECT_VTABLE (NodePrototype)
 
 QV4::DEFINE_OBJECT_VTABLE (Node)
 
static const char * errorToString (QNetworkReply::NetworkError error)
 
 QV4::Heap::DECLARE_HEAP_OBJECT (QQmlXMLHttpRequestCtor, FunctionObject)
 
 DEFINE_OBJECT_VTABLE (QQmlXMLHttpRequestWrapper)
 
 DEFINE_OBJECT_VTABLE (QQmlXMLHttpRequestCtor)
 
void qt_rem_qmlxmlhttprequest (ExecutionEngine *, void *d)
 
voidqt_add_qmlxmlhttprequest (ExecutionEngine *v4)
 

Macro Definition Documentation

◆ QQmlXMLHttpRequestCtorMembers

#define QQmlXMLHttpRequestCtorMembers ( class,
Member )    Member(class, Pointer, Object *, proto)

Definition at line 1647 of file qqmlxmlhttprequest.cpp.

◆ V4THROW_REFERENCE

◆ XMLHTTPREQUEST_MAXIMUM_REDIRECT_RECURSION

#define XMLHTTPREQUEST_MAXIMUM_REDIRECT_RECURSION   15

Definition at line 1386 of file qqmlxmlhttprequest.cpp.

Function Documentation

◆ DEFINE_BOOL_CONFIG_OPTION() [1/3]

QT_BEGIN_NAMESPACE DEFINE_BOOL_CONFIG_OPTION ( xhrDump ,
QML_XHR_DUMP  )

◆ DEFINE_BOOL_CONFIG_OPTION() [2/3]

DEFINE_BOOL_CONFIG_OPTION ( xhrFileRead ,
QML_XHR_ALLOW_FILE_READ  )

◆ DEFINE_BOOL_CONFIG_OPTION() [3/3]

DEFINE_BOOL_CONFIG_OPTION ( xhrFileWrite ,
QML_XHR_ALLOW_FILE_WRITE  )

◆ DEFINE_OBJECT_VTABLE() [1/2]

DEFINE_OBJECT_VTABLE ( QQmlXMLHttpRequestCtor )

◆ DEFINE_OBJECT_VTABLE() [2/2]

DEFINE_OBJECT_VTABLE ( QQmlXMLHttpRequestWrapper )

◆ errorToString()

static const char * errorToString ( QNetworkReply::NetworkError error)
static

Definition at line 1336 of file qqmlxmlhttprequest.cpp.

References error, and QMetaEnum::valueToKey().

+ Here is the call graph for this function:

◆ qt_add_qmlxmlhttprequest()

void * qt_add_qmlxmlhttprequest ( ExecutionEngine * v4)

Definition at line 2149 of file qqmlxmlhttprequest.cpp.

References QV4::MemoryManager::allocate(), QV4::Object::defineReadonlyProperty(), QV4::EngineBase::globalObject, QV4::EngineBase::memoryManager, QV4::ExecutionEngine::newString(), and QStringLiteral.

Referenced by QV4::ExecutionEngine::initializeGlobal().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ qt_rem_qmlxmlhttprequest()

void qt_rem_qmlxmlhttprequest ( ExecutionEngine * engine,
void * d )

Definition at line 2143 of file qqmlxmlhttprequest.cpp.

References d.

Referenced by QV4::ExecutionEngine::~ExecutionEngine().

+ Here is the caller graph for this function:

◆ xhrdata()

static QQmlXMLHttpRequestData * xhrdata ( ExecutionEngine * v4)
inlinestatic

Definition at line 64 of file qqmlxmlhttprequest.cpp.

Referenced by QV4::NodePrototype::getProto(), QV4::Element::prototype(), QV4::Attr::prototype(), QV4::Text::prototype(), QV4::Document::prototype(), QV4::CharacterData::prototype(), and QV4::CDATA::prototype().

+ Here is the caller graph for this function: