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
QQmlDebugServerImpl Class Reference
+ Inheritance diagram for QQmlDebugServerImpl:
+ Collaboration diagram for QQmlDebugServerImpl:

Public Member Functions

 QQmlDebugServerImpl ()
 
bool blockingMode () const override
 
QQmlDebugServiceservice (const QString &name) const override
 
void addEngine (QJSEngine *engine) override
 
void removeEngine (QJSEngine *engine) override
 
bool hasEngine (QJSEngine *engine) const override
 
bool addService (const QString &name, QQmlDebugService *service) override
 
bool removeService (const QString &name) override
 
bool open (const QVariantHash &configuration) override
 
void setDevice (QIODevice *socket) override
 
void parseArguments ()
 
- Public Member Functions inherited from QQmlDebugServer
 ~QQmlDebugServer () override
 
- Public Member Functions inherited from QQmlDebugConnector
bool hasEngine (QJSEngine *) const
 
void addEngine (QJSEngine *)
 
void removeEngine (QJSEngine *)
 
bool open (const QVariantHash &configuration=QVariantHash())
 

Static Public Member Functions

static void cleanup ()
 
- Static Public Member Functions inherited from QQmlDebugConnector
static QQmlDebugConnectorinstance ()
 
template<class Service >
static Service * service ()
 

Friends

class QQmlDebugServerThread
 
class QQmlDebugServerFactory
 

Detailed Description

Definition at line 93 of file qqmldebugserverfactory.cpp.

Constructor & Destructor Documentation

◆ QQmlDebugServerImpl()

QQmlDebugServerImpl::QQmlDebugServerImpl ( )

Definition at line 240 of file qqmldebugserverfactory.cpp.

References cleanupOnShutdown(), QObject::connect(), Qt::DirectConnection, QThread::finished(), moveToThread(), parseArguments(), qAddPostRoutine(), QStringLiteral, QObject::setObjectName(), and QQmlDebugServerThread::setServer().

+ Here is the call graph for this function:

Member Function Documentation

◆ addEngine()

void QQmlDebugServerImpl::addEngine ( QJSEngine * engine)
override

Definition at line 553 of file qqmldebugserverfactory.cpp.

References QHash< Key, T >::contains(), QThread::currentThread(), engine, Q_ASSERT, QQmlDebugConnector::service(), and QHash< Key, T >::size().

+ Here is the call graph for this function:

◆ addService()

bool QQmlDebugServerImpl::addService ( const QString & name,
QQmlDebugService * service )
override

◆ blockingMode()

bool QQmlDebugServerImpl::blockingMode ( ) const
override

Definition at line 227 of file qqmldebugserverfactory.cpp.

Referenced by QQmlDebugServerThread::run(), and setDevice().

+ Here is the caller graph for this function:

◆ cleanup()

void QQmlDebugServerImpl::cleanup ( )
static

Definition at line 161 of file qqmldebugserverfactory.cpp.

References connect(), QObject::destroyed(), i, QQmlDebugConnector::instance(), QQmlDebugService::NotConnected, QEventLoop::processEvents(), Qt::QueuedConnection, and server.

Referenced by cleanupOnShutdown().

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

◆ hasEngine()

bool QQmlDebugServerImpl::hasEngine ( QJSEngine * engine) const
override

Definition at line 589 of file qqmldebugserverfactory.cpp.

References QHash< Key, T >::constEnd(), QHash< Key, T >::constFind(), engine, and i.

+ Here is the call graph for this function:

◆ open()

bool QQmlDebugServerImpl::open ( const QVariantHash & configuration = QVariantHash())
override

Definition at line 267 of file qqmldebugserverfactory.cpp.

References QString::isEmpty(), QThread::isRunning(), QQmlDebugServerThread::pluginName(), QQmlDebugServerThread::setFileName(), QQmlDebugServerThread::setPortRange(), QThread::start(), and QWaitCondition::wait().

+ Here is the call graph for this function:

◆ parseArguments()

void QQmlDebugServerImpl::parseArguments ( )

Definition at line 296 of file qqmldebugserverfactory.cpp.

References args, fileName, QList< T >::isEmpty(), QStringView::mid(), ok, qPrintable, qWarning, services, QQmlDebugServerThread::setFileName(), QQmlDebugServerThread::setPortRange(), Qt::SkipEmptyParts, str, and tr.

Referenced by QQmlDebugServerImpl().

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

◆ removeEngine()

void QQmlDebugServerImpl::removeEngine ( QJSEngine * engine)
override

Definition at line 570 of file qqmldebugserverfactory.cpp.

References QHash< Key, T >::contains(), QThread::currentThread(), engine, Q_ASSERT, QHash< Key, T >::remove(), QQmlDebugConnector::service(), and QHash< Key, T >::size().

+ Here is the call graph for this function:

◆ removeService()

bool QQmlDebugServerImpl::removeService ( const QString & name)
override

◆ service()

QQmlDebugService * QQmlDebugServerImpl::service ( const QString & name) const
override

Definition at line 548 of file qqmldebugserverfactory.cpp.

References QHash< Key, T >::value().

+ Here is the call graph for this function:

◆ setDevice()

void QQmlDebugServerImpl::setDevice ( QIODevice * socket)
overridevirtual

Implements QQmlDebugServer.

Definition at line 704 of file qqmldebugserverfactory.cpp.

References blockingMode(), QObject::connect(), QPacketProtocol::error(), QPacketProtocol::readyRead(), socket, and QPacketProtocol::waitForReadyRead().

+ Here is the call graph for this function:

Friends And Related Symbol Documentation

◆ QQmlDebugServerFactory

friend class QQmlDebugServerFactory
friend

Definition at line 119 of file qqmldebugserverfactory.cpp.

◆ QQmlDebugServerThread

friend class QQmlDebugServerThread
friend

Definition at line 118 of file qqmldebugserverfactory.cpp.


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