Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
V4CommandHandler Class Referenceabstract
Inheritance diagram for V4CommandHandler:
Collaboration diagram for V4CommandHandler:

Public Member Functions

 V4CommandHandler (const QString &command)
virtual ~V4CommandHandler ()
QString command () const
void handle (const QJsonObject &request, QV4DebugServiceImpl *s)
virtual void handleRequest ()=0
 V4CommandHandler (const QString &command)
virtual ~V4CommandHandler ()
QString command () const
void handle (const QJsonObject &request, QV4DebugServiceImpl *s)
virtual void handleRequest ()=0

Protected Member Functions

void addCommand ()
void addRequestSequence ()
void addSuccess (bool success)
void addBody (const QJsonValue &body)
void addRunning ()
void createErrorResponse (const QString &msg)
int requestSequenceNr () const
void addCommand ()
void addRequestSequence ()
void addSuccess (bool success)
void addBody (const QJsonValue &body)
void addRunning ()
void createErrorResponse (const QString &msg)
int requestSequenceNr () const

Protected Attributes

QString cmd
QJsonObject req
QJsonValue seq
QV4DebugServiceImpldebugService
QJsonObject response

Detailed Description

Definition at line 40 of file qv4debugservice.cpp.

Constructor & Destructor Documentation

◆ V4CommandHandler() [1/2]

V4CommandHandler::V4CommandHandler ( const QString & command)
inline

Definition at line 43 of file qv4debugservice.cpp.

References V4CommandHandler().

Referenced by V4CommandHandler().

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

◆ ~V4CommandHandler() [1/2]

virtual V4CommandHandler::~V4CommandHandler ( )
inlinevirtual

Definition at line 47 of file qv4debugservice.cpp.

◆ V4CommandHandler() [2/2]

V4CommandHandler::V4CommandHandler ( const QString & command)
inline

Definition at line 43 of file qv4debugservice.cpp.

◆ ~V4CommandHandler() [2/2]

virtual V4CommandHandler::~V4CommandHandler ( )
inlinevirtual

Definition at line 47 of file qv4debugservice.cpp.

Member Function Documentation

◆ addBody() [1/2]

void V4CommandHandler::addBody ( const QJsonValue & body)
inlineprotected

Definition at line 78 of file qv4debugservice.cpp.

◆ addBody() [2/2]

void V4CommandHandler::addBody ( const QJsonValue & body)
inlineprotected

Definition at line 78 of file qv4debugservice.cpp.

◆ addCommand() [1/2]

void V4CommandHandler::addCommand ( )
inlineprotected

Definition at line 75 of file qv4debugservice.cpp.

◆ addCommand() [2/2]

void V4CommandHandler::addCommand ( )
inlineprotected

Definition at line 75 of file qv4debugservice.cpp.

◆ addRequestSequence() [1/2]

void V4CommandHandler::addRequestSequence ( )
inlineprotected

Definition at line 76 of file qv4debugservice.cpp.

Referenced by createErrorResponse().

Here is the caller graph for this function:

◆ addRequestSequence() [2/2]

void V4CommandHandler::addRequestSequence ( )
inlineprotected

Definition at line 76 of file qv4debugservice.cpp.

◆ addRunning() [1/2]

void V4CommandHandler::addRunning ( )
inlineprotected

Definition at line 83 of file qv4debugservice.cpp.

Referenced by createErrorResponse().

Here is the caller graph for this function:

◆ addRunning() [2/2]

void V4CommandHandler::addRunning ( )
inlineprotected

Definition at line 83 of file qv4debugservice.cpp.

◆ addSuccess() [1/2]

void V4CommandHandler::addSuccess ( bool success)
inlineprotected

Definition at line 77 of file qv4debugservice.cpp.

Referenced by createErrorResponse().

Here is the caller graph for this function:

◆ addSuccess() [2/2]

void V4CommandHandler::addSuccess ( bool success)
inlineprotected

Definition at line 77 of file qv4debugservice.cpp.

◆ command() [1/2]

QString V4CommandHandler::command ( ) const
inline

Definition at line 50 of file qv4debugservice.cpp.

◆ command() [2/2]

QString V4CommandHandler::command ( ) const
inline

Definition at line 50 of file qv4debugservice.cpp.

◆ createErrorResponse() [1/2]

void V4CommandHandler::createErrorResponse ( const QString & msg)
inlineprotected

Definition at line 88 of file qv4debugservice.cpp.

References addRequestSequence(), addRunning(), and addSuccess().

Here is the call graph for this function:

◆ createErrorResponse() [2/2]

void V4CommandHandler::createErrorResponse ( const QString & msg)
inlineprotected

Definition at line 88 of file qv4debugservice.cpp.

◆ handle() [1/2]

void V4CommandHandler::handle ( const QJsonObject & request,
QV4DebugServiceImpl * s )
inline

Definition at line 52 of file qv4debugservice.cpp.

References debugService, and handleRequest().

Here is the call graph for this function:

◆ handle() [2/2]

void V4CommandHandler::handle ( const QJsonObject & request,
QV4DebugServiceImpl * s )
inline

Definition at line 52 of file qv4debugservice.cpp.

◆ handleRequest() [1/2]

virtual void V4CommandHandler::handleRequest ( )
pure virtual

Implemented in UnknownV4CommandHandler, and UnknownV4CommandHandler.

Referenced by handle().

Here is the caller graph for this function:

◆ handleRequest() [2/2]

virtual void V4CommandHandler::handleRequest ( )
pure virtual

◆ requestSequenceNr() [1/2]

int V4CommandHandler::requestSequenceNr ( ) const
inlineprotected

Definition at line 98 of file qv4debugservice.cpp.

◆ requestSequenceNr() [2/2]

int V4CommandHandler::requestSequenceNr ( ) const
inlineprotected

Definition at line 98 of file qv4debugservice.cpp.

Member Data Documentation

◆ cmd

QString V4CommandHandler::cmd
protected

Definition at line 102 of file qv4debugservice.cpp.

◆ debugService

QV4DebugServiceImpl * V4CommandHandler::debugService
protected

Definition at line 105 of file qv4debugservice.cpp.

Referenced by handle().

◆ req

QJsonObject V4CommandHandler::req
protected

Definition at line 103 of file qv4debugservice.cpp.

◆ response

QJsonObject V4CommandHandler::response
protected

Definition at line 106 of file qv4debugservice.cpp.

◆ seq

QJsonValue V4CommandHandler::seq
protected

Definition at line 104 of file qv4debugservice.cpp.


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