2010-03-17 11:37:08 +01:00
|
|
|
/**************************************************************************
|
|
|
|
|
**
|
|
|
|
|
** This file is part of Qt Creator
|
|
|
|
|
**
|
2011-01-11 16:28:15 +01:00
|
|
|
** Copyright (c) 2011 Nokia Corporation and/or its subsidiary(-ies).
|
2010-03-17 11:37:08 +01:00
|
|
|
**
|
2011-04-13 08:42:33 +02:00
|
|
|
** Contact: Nokia Corporation (info@qt.nokia.com)
|
2010-03-17 11:37:08 +01:00
|
|
|
**
|
|
|
|
|
**
|
|
|
|
|
** GNU Lesser General Public License Usage
|
|
|
|
|
**
|
2011-04-13 08:42:33 +02:00
|
|
|
** This file may be used under the terms of the GNU Lesser General Public
|
|
|
|
|
** License version 2.1 as published by the Free Software Foundation and
|
|
|
|
|
** appearing in the file LICENSE.LGPL included in the packaging of this file.
|
|
|
|
|
** Please review the following information to ensure the GNU Lesser General
|
|
|
|
|
** Public License version 2.1 requirements will be met:
|
|
|
|
|
** http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
|
2010-03-17 11:37:08 +01:00
|
|
|
**
|
2010-12-17 16:01:08 +01:00
|
|
|
** In addition, as a special exception, Nokia gives you certain additional
|
2011-04-13 08:42:33 +02:00
|
|
|
** rights. These rights are described in the Nokia Qt LGPL Exception
|
2010-12-17 16:01:08 +01:00
|
|
|
** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
|
|
|
|
|
**
|
2011-04-13 08:42:33 +02:00
|
|
|
** Other Usage
|
|
|
|
|
**
|
|
|
|
|
** Alternatively, this file may be used in accordance with the terms and
|
|
|
|
|
** conditions contained in a signed written agreement between you and Nokia.
|
|
|
|
|
**
|
2010-12-17 16:01:08 +01:00
|
|
|
** If you have questions regarding the use of this file, please contact
|
2011-05-06 15:05:37 +02:00
|
|
|
** Nokia at info@qt.nokia.com.
|
2010-03-17 11:37:08 +01:00
|
|
|
**
|
|
|
|
|
**************************************************************************/
|
2010-08-12 09:46:22 +02:00
|
|
|
|
2011-07-26 16:22:49 +02:00
|
|
|
#ifndef QMLDEBUGGERCLIENT_H
|
|
|
|
|
#define QMLDEBUGGERCLIENT_H
|
2010-03-17 11:37:08 +01:00
|
|
|
|
2010-06-29 11:17:09 +02:00
|
|
|
#include "qmljsprivateapi.h"
|
2010-03-17 11:37:08 +01:00
|
|
|
|
2010-08-13 14:18:10 +02:00
|
|
|
namespace Debugger {
|
2010-03-17 11:37:08 +01:00
|
|
|
namespace Internal {
|
|
|
|
|
|
2011-07-26 16:22:49 +02:00
|
|
|
class WatchData;
|
|
|
|
|
class BreakHandler;
|
|
|
|
|
class BreakpointModelId;
|
|
|
|
|
class QmlEngine;
|
|
|
|
|
class QmlDebuggerClientPrivate;
|
|
|
|
|
|
2010-08-13 14:18:10 +02:00
|
|
|
class QmlDebuggerClient : public QDeclarativeDebugClient
|
2010-03-17 11:37:08 +01:00
|
|
|
{
|
2010-03-22 11:39:14 +01:00
|
|
|
Q_OBJECT
|
|
|
|
|
|
2010-03-17 11:37:08 +01:00
|
|
|
public:
|
2011-07-26 16:22:49 +02:00
|
|
|
QmlDebuggerClient(QmlJsDebugClient::QDeclarativeDebugConnection* client, QLatin1String clientName);
|
2010-08-13 14:18:10 +02:00
|
|
|
virtual ~QmlDebuggerClient();
|
2010-03-17 11:37:08 +01:00
|
|
|
|
2011-07-26 16:22:49 +02:00
|
|
|
virtual void executeStep() = 0;
|
|
|
|
|
virtual void executeStepOut() = 0;
|
|
|
|
|
virtual void executeNext() = 0;
|
|
|
|
|
virtual void executeStepI() = 0;
|
|
|
|
|
|
|
|
|
|
virtual void continueInferior() = 0;
|
|
|
|
|
virtual void interruptInferior() = 0;
|
|
|
|
|
|
|
|
|
|
virtual void activateFrame(int index) = 0;
|
|
|
|
|
|
|
|
|
|
virtual void insertBreakpoints(BreakHandler *handler, BreakpointModelId *id) = 0;
|
|
|
|
|
virtual void removeBreakpoints(BreakpointModelId *id) = 0;
|
|
|
|
|
virtual void setBreakpoints() = 0;
|
|
|
|
|
|
|
|
|
|
virtual void assignValueInDebugger(const QByteArray expr, const quint64 &id,
|
|
|
|
|
const QString &property, const QString value) = 0;
|
|
|
|
|
|
|
|
|
|
virtual void updateWatchData(const WatchData *data) = 0;
|
|
|
|
|
virtual void executeDebuggerCommand(const QString &command) = 0;
|
|
|
|
|
|
|
|
|
|
virtual void synchronizeWatchers(const QStringList &watchers) = 0;
|
|
|
|
|
|
|
|
|
|
virtual void expandObject(const QByteArray &iname, quint64 objectId) = 0;
|
|
|
|
|
virtual void sendPing() = 0;
|
|
|
|
|
|
|
|
|
|
virtual void setEngine(QmlEngine *engine) = 0;
|
|
|
|
|
|
|
|
|
|
void flushSendBuffer();
|
|
|
|
|
|
2010-08-12 09:46:22 +02:00
|
|
|
signals:
|
2010-09-30 14:05:20 +02:00
|
|
|
void newStatus(QDeclarativeDebugClient::Status status);
|
2010-03-22 11:39:14 +01:00
|
|
|
|
2010-06-28 17:46:42 +02:00
|
|
|
protected:
|
2010-09-30 14:05:20 +02:00
|
|
|
virtual void statusChanged(Status status);
|
2011-07-26 16:22:49 +02:00
|
|
|
void sendMessage(const QByteArray &msg);
|
|
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
QmlDebuggerClientPrivate *d;
|
|
|
|
|
friend class QmlDebuggerClientPrivate;
|
2010-03-17 11:37:08 +01:00
|
|
|
};
|
|
|
|
|
|
2010-03-22 11:39:14 +01:00
|
|
|
} // Internal
|
2011-07-26 16:22:49 +02:00
|
|
|
} // Debugger
|
2010-03-17 11:37:08 +01:00
|
|
|
|
2011-07-26 16:22:49 +02:00
|
|
|
#endif // QMLDEBUGGERCLIENT_H
|