Qt 4.8
Public Functions | Public Variables | List of all members
QScriptDebuggerFrontendPrivate Class Reference

#include <qscriptdebuggerfrontend_p_p.h>

Inheritance diagram for QScriptDebuggerFrontendPrivate:
QScriptEngineDebuggerFrontendPrivate

Public Functions

virtual bool event (QEvent *)
 
void postEvent (QEvent *e)
 
void processCommands ()
 
 QScriptDebuggerFrontendPrivate ()
 
virtual ~QScriptDebuggerFrontendPrivate ()
 

Public Variables

QScriptDebuggerEventHandlerInterfaceeventHandler
 
QObjecteventReceiver
 
int nextCommandId
 
QList< int > pendingCommandIds
 
QList< QScriptDebuggerCommandpendingCommands
 
QScriptDebuggerFrontendq_ptr
 
QHash< int, QScriptDebuggerResponseHandlerInterface * > responseHandlers
 

Detailed Description

Definition at line 70 of file qscriptdebuggerfrontend_p_p.h.

Constructors and Destructors

◆ QScriptDebuggerFrontendPrivate()

QScriptDebuggerFrontendPrivate::QScriptDebuggerFrontendPrivate ( )

◆ ~QScriptDebuggerFrontendPrivate()

QScriptDebuggerFrontendPrivate::~QScriptDebuggerFrontendPrivate ( )
virtual

Definition at line 103 of file qscriptdebuggerfrontend.cpp.

104 {
105  delete eventReceiver;
106 }

Functions

◆ event()

bool QScriptDebuggerFrontendPrivate::event ( QEvent e)
virtual

Reimplemented in QScriptEngineDebuggerFrontendPrivate.

Definition at line 113 of file qscriptdebuggerfrontend.cpp.

Referenced by QScriptDebuggerFrontendEventReceiver::event(), and QScriptEngineDebuggerFrontendPrivate::event().

114 {
116  if (e->type() == QEvent::User+1) {
118  bool handled = q->notifyEvent(de->event());
119  if (handled) {
120  q->scheduleCommand(QScriptDebuggerCommand::resumeCommand(),
121  /*responseHandler=*/0);
122  }
123  return true;
124  } else if (e->type() == QEvent::User+2) {
125  processCommands();
126  return true;
127  }
128  return false;
129 }
The QScriptDebuggerFrontend class is the base class of debugger front-ends.
static QScriptDebuggerCommand resumeCommand()
#define Q_Q(Class)
Definition: qglobal.h:2483
const QScriptDebuggerEvent & event() const
Type type() const
Returns the event type.
Definition: qcoreevent.h:303

◆ postEvent()

void QScriptDebuggerFrontendPrivate::postEvent ( QEvent e)

Definition at line 108 of file qscriptdebuggerfrontend.cpp.

109 {
111 }
static void postEvent(QObject *receiver, QEvent *event)
Adds the event event, with the object receiver as the receiver of the event, to an event queue and re...

◆ processCommands()

void QScriptDebuggerFrontendPrivate::processCommands ( )

Definition at line 131 of file qscriptdebuggerfrontend.cpp.

132 {
134  while (!pendingCommands.isEmpty()) {
136  int id = pendingCommandIds.takeFirst();
137  q->processCommand(id, command);
138  }
139 }
The QScriptDebuggerFrontend class is the base class of debugger front-ends.
bool isEmpty() const
Returns true if the list contains no items; otherwise returns false.
Definition: qlist.h:152
#define Q_Q(Class)
Definition: qglobal.h:2483
QList< QScriptDebuggerCommand > pendingCommands
T takeFirst()
Removes the first item in the list and returns it.
Definition: qlist.h:489
The QScriptDebuggerCommand class represents a command issued to a QScriptDebuggerFrontend.

Properties

◆ eventHandler

QScriptDebuggerEventHandlerInterface* QScriptDebuggerFrontendPrivate::eventHandler

Definition at line 81 of file qscriptdebuggerfrontend_p_p.h.

◆ eventReceiver

QObject* QScriptDebuggerFrontendPrivate::eventReceiver

Definition at line 86 of file qscriptdebuggerfrontend_p_p.h.

◆ nextCommandId

int QScriptDebuggerFrontendPrivate::nextCommandId

Definition at line 85 of file qscriptdebuggerfrontend_p_p.h.

◆ pendingCommandIds

QList<int> QScriptDebuggerFrontendPrivate::pendingCommandIds

Definition at line 83 of file qscriptdebuggerfrontend_p_p.h.

◆ pendingCommands

QList<QScriptDebuggerCommand> QScriptDebuggerFrontendPrivate::pendingCommands

Definition at line 82 of file qscriptdebuggerfrontend_p_p.h.

◆ q_ptr

QScriptDebuggerFrontend* QScriptDebuggerFrontendPrivate::q_ptr

◆ responseHandlers

QHash<int, QScriptDebuggerResponseHandlerInterface*> QScriptDebuggerFrontendPrivate::responseHandlers

Definition at line 84 of file qscriptdebuggerfrontend_p_p.h.


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