50 #include <QtCore/qcoreevent.h> 51 #include <QtCore/qcoreapplication.h> 105 delete eventReceiver;
118 bool handled = q->notifyEvent(de->
event());
134 while (!pendingCommands.isEmpty()) {
136 int id = pendingCommandIds.takeFirst();
137 q->processCommand(
id, command);
160 return d->eventHandler;
182 int id = ++
d->nextCommandId;
183 d->pendingCommands.append(command);
184 d->pendingCommandIds.append(
id);
186 d->responseHandlers.insert(
id, responseHandler);
187 if (
d->pendingCommands.size() == 1) {
203 if (
d->responseHandlers.contains(
id)) {
220 return d->eventHandler->debuggerEvent(event);
227 return d->nextCommandId;
#define QT_END_NAMESPACE
This macro expands to.
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...
The QScriptDebuggerFrontend class is the base class of debugger front-ends.
The QScriptDebuggerResponse class represents a front-end's response to a QScriptDebuggerCommand.
void notifyCommandFinished(int id, const QScriptDebuggerResponse &response)
Subclasses should call this function when the command identified by the given id has finished and pro...
QScriptDebuggerFrontend * q_ptr
bool notifyEvent(const QScriptDebuggerEvent &event)
Subclasses should call this function when the given event is received from the back-end.
QScriptDebuggerFrontendEventReceiver(QScriptDebuggerFrontendPrivate *frontend, QObject *parent=0)
~QScriptDebuggerFrontendEventReceiver()
The QObject class is the base class of all Qt objects.
bool event(QEvent *)
This virtual function receives events to an object and should return true if the event e was recogniz...
static QScriptDebuggerCommand resumeCommand()
void postEvent(QEvent *e)
#define QT_BEGIN_NAMESPACE
This macro expands to.
virtual void handleResponse(const QScriptDebuggerResponse &response, int commandId)=0
QScriptDebuggerEventHandlerInterface * eventHandler() const
QScopedPointer< QScriptDebuggerFrontendPrivate > d_ptr
QScriptDebuggerFrontendPrivate()
int scheduledCommandCount() const
QScriptDebuggerFrontendPrivate * m_frontend
The QScriptDebuggerCommand class represents a command issued to a QScriptDebuggerFrontend.
const QScriptDebuggerEvent & event() const
virtual ~QScriptDebuggerFrontend()
int scheduleCommand(const QScriptDebuggerCommand &command, QScriptDebuggerResponseHandlerInterface *responseHandler)
Schedules the given command for execution by this front-end, and returns a unique identifier associat...
Type
This enum type defines the valid event types in Qt.
QObject * parent() const
Returns a pointer to the parent object.
QScriptDebuggerFrontend()
QScopedPointer< QObjectData > d_ptr
QImageIOHandler * handler
The QEvent class is the base class of all event classes.
Type type() const
Returns the event type.
void setEventHandler(QScriptDebuggerEventHandlerInterface *eventHandler)
virtual bool event(QEvent *)
virtual ~QScriptDebuggerFrontendPrivate()