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
QQmlEngineControlServiceImpl Class Reference

#include <qqmlenginecontrolservice.h>

+ Inheritance diagram for QQmlEngineControlServiceImpl:
+ Collaboration diagram for QQmlEngineControlServiceImpl:

Public Types

enum  MessageType { EngineAboutToBeAdded , EngineAdded , EngineAboutToBeRemoved , EngineRemoved }
 
enum  CommandType { StartWaitingEngine , StopWaitingEngine }
 

Public Member Functions

 QQmlEngineControlServiceImpl (QObject *parent=nullptr)
 

Protected Member Functions

void messageReceived (const QByteArray &) override
 
void engineAboutToBeAdded (QJSEngine *) override
 
void engineAboutToBeRemoved (QJSEngine *) override
 
void engineAdded (QJSEngine *) override
 
void engineRemoved (QJSEngine *) override
 
void sendMessage (MessageType type, QJSEngine *engine)
 
void stateChanged (State) override
 

Protected Attributes

QMutex dataMutex
 
QList< QJSEngine * > startingEngines
 
QList< QJSEngine * > stoppingEngines
 
bool blockingMode
 

Friends

class QQmlProfilerServiceFactory
 

Detailed Description

Definition at line 23 of file qqmlenginecontrolservice.h.

Member Enumeration Documentation

◆ CommandType

Enumerator
StartWaitingEngine 
StopWaitingEngine 

Definition at line 33 of file qqmlenginecontrolservice.h.

◆ MessageType

Enumerator
EngineAboutToBeAdded 
EngineAdded 
EngineAboutToBeRemoved 
EngineRemoved 

Definition at line 26 of file qqmlenginecontrolservice.h.

Constructor & Destructor Documentation

◆ QQmlEngineControlServiceImpl()

QQmlEngineControlServiceImpl::QQmlEngineControlServiceImpl ( QObject * parent = nullptr)

Definition at line 13 of file qqmlenginecontrolservice.cpp.

References blockingMode, and QQmlDebugConnector::instance().

+ Here is the call graph for this function:

Member Function Documentation

◆ engineAboutToBeAdded()

void QQmlEngineControlServiceImpl::engineAboutToBeAdded ( QJSEngine * engine)
overrideprotected

Definition at line 36 of file qqmlenginecontrolservice.cpp.

References QList< T >::append(), blockingMode, QListSpecialMethodsBase< T >::contains(), dataMutex, emit, engine, EngineAboutToBeAdded, lock, Q_ASSERT, sendMessage(), startingEngines, state, and stoppingEngines.

+ Here is the call graph for this function:

◆ engineAboutToBeRemoved()

void QQmlEngineControlServiceImpl::engineAboutToBeRemoved ( QJSEngine * engine)
overrideprotected

Definition at line 49 of file qqmlenginecontrolservice.cpp.

References QList< T >::append(), blockingMode, QListSpecialMethodsBase< T >::contains(), dataMutex, emit, engine, EngineAboutToBeRemoved, lock, Q_ASSERT, sendMessage(), startingEngines, state, and stoppingEngines.

+ Here is the call graph for this function:

◆ engineAdded()

void QQmlEngineControlServiceImpl::engineAdded ( QJSEngine * engine)
overrideprotected

Definition at line 62 of file qqmlenginecontrolservice.cpp.

References QListSpecialMethodsBase< T >::contains(), dataMutex, engine, EngineAdded, lock, Q_ASSERT, sendMessage(), startingEngines, state, and stoppingEngines.

+ Here is the call graph for this function:

◆ engineRemoved()

void QQmlEngineControlServiceImpl::engineRemoved ( QJSEngine * engine)
overrideprotected

Definition at line 72 of file qqmlenginecontrolservice.cpp.

References QListSpecialMethodsBase< T >::contains(), dataMutex, engine, EngineRemoved, lock, Q_ASSERT, sendMessage(), startingEngines, state, and stoppingEngines.

+ Here is the call graph for this function:

◆ messageReceived()

void QQmlEngineControlServiceImpl::messageReceived ( const QByteArray & message)
overrideprotected

Definition at line 19 of file qqmlenginecontrolservice.cpp.

References QListSpecialMethodsBase< T >::contains(), d, dataMutex, emit, engine, lock, objectForId(), QList< T >::removeOne(), startingEngines, StartWaitingEngine, stoppingEngines, and StopWaitingEngine.

+ Here is the call graph for this function:

◆ sendMessage()

void QQmlEngineControlServiceImpl::sendMessage ( QQmlEngineControlServiceImpl::MessageType type,
QJSEngine * engine )
protected

Definition at line 82 of file qqmlenginecontrolservice.cpp.

References d, emit, and engine.

Referenced by engineAboutToBeAdded(), engineAboutToBeRemoved(), engineAdded(), and engineRemoved().

+ Here is the caller graph for this function:

◆ stateChanged()

void QQmlEngineControlServiceImpl::stateChanged ( State )
overrideprotected

Definition at line 90 of file qqmlenginecontrolservice.cpp.

References QList< T >::clear(), dataMutex, emit, engine, lock, startingEngines, and stoppingEngines.

+ Here is the call graph for this function:

Friends And Related Symbol Documentation

◆ QQmlProfilerServiceFactory

friend class QQmlProfilerServiceFactory
friend

Definition at line 41 of file qqmlenginecontrolservice.h.

Member Data Documentation

◆ blockingMode

bool QQmlEngineControlServiceImpl::blockingMode
protected

◆ dataMutex

QMutex QQmlEngineControlServiceImpl::dataMutex
protected

◆ startingEngines

QList<QJSEngine *> QQmlEngineControlServiceImpl::startingEngines
protected

◆ stoppingEngines

QList<QJSEngine *> QQmlEngineControlServiceImpl::stoppingEngines
protected

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