Qt 4.8
qdeclarativeenginedebug_p.h
Go to the documentation of this file.
1 /****************************************************************************
2 **
3 ** Copyright (C) 2014 Digia Plc and/or its subsidiary(-ies).
4 ** Contact: http://www.qt-project.org/legal
5 **
6 ** This file is part of the QtDeclarative module of the Qt Toolkit.
7 **
8 ** $QT_BEGIN_LICENSE:LGPL$
9 ** Commercial License Usage
10 ** Licensees holding valid commercial Qt licenses may use this file in
11 ** accordance with the commercial license agreement provided with the
12 ** Software or, alternatively, in accordance with the terms contained in
13 ** a written agreement between you and Digia. For licensing terms and
14 ** conditions see http://qt.digia.com/licensing. For further information
15 ** use the contact form at http://qt.digia.com/contact-us.
16 **
17 ** GNU Lesser General Public License Usage
18 ** Alternatively, this file may be used under the terms of the GNU Lesser
19 ** General Public License version 2.1 as published by the Free Software
20 ** Foundation and appearing in the file LICENSE.LGPL included in the
21 ** packaging of this file. Please review the following information to
22 ** ensure the GNU Lesser General Public License version 2.1 requirements
23 ** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
24 **
25 ** In addition, as a special exception, Digia gives you certain additional
26 ** rights. These rights are described in the Digia Qt LGPL Exception
27 ** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
28 **
29 ** GNU General Public License Usage
30 ** Alternatively, this file may be used under the terms of the GNU
31 ** General Public License version 3.0 as published by the Free Software
32 ** Foundation and appearing in the file LICENSE.GPL included in the
33 ** packaging of this file. Please review the following information to
34 ** ensure the GNU General Public License version 3.0 requirements will be
35 ** met: http://www.gnu.org/copyleft/gpl.html.
36 **
37 **
38 ** $QT_END_LICENSE$
39 **
40 ****************************************************************************/
41 #ifndef QDECLARATIVEENGINEDEBUG_H
42 #define QDECLARATIVEENGINEDEBUG_H
43 
44 #include <QtCore/qobject.h>
45 #include <QtCore/qurl.h>
46 #include <QtCore/qvariant.h>
47 
48 #include <private/qdeclarativeglobal_p.h>
49 
51 
53 
54 QT_MODULE(Declarative)
55 
71 {
73 public:
74  enum Status { NotConnected, Unavailable, Enabled };
75 
77 
78  Status status() const;
79 
81  QObject *parent = 0);
83  QObject *parent = 0);
85  QObject *parent = 0);
87  QObject *parent = 0);
89  QObject *parent = 0);
90 
91  void removeWatch(QDeclarativeDebugWatch *watch);
92 
93  QDeclarativeDebugEnginesQuery *queryAvailableEngines(QObject *parent = 0);
95  QObject *parent = 0);
97  QObject *parent = 0);
99  QObject *parent = 0);
100  QDeclarativeDebugExpressionQuery *queryExpressionResult(int objectDebugId,
101  const QString &expr,
102  QObject *parent = 0);
103  bool setBindingForObject(int objectDebugId, const QString &propertyName,
104  const QVariant &bindingExpression, bool isLiteralValue,
105  QString source = QString(), int line = -1);
106  bool resetBindingForObject(int objectDebugId, const QString &propertyName);
107  bool setMethodBody(int objectDebugId, const QString &methodName, const QString &methodBody);
108 
109 Q_SIGNALS:
110  void newObjects();
111  void statusChanged(Status status);
112 
113 private:
115 };
116 
118 {
119 Q_OBJECT
120 public:
121  enum State { Waiting, Active, Inactive, Dead };
122 
125 
126  int queryId() const;
127  int objectDebugId() const;
128  State state() const;
129 
130 Q_SIGNALS:
131  void stateChanged(QDeclarativeDebugWatch::State);
132  //void objectChanged(int, const QDeclarativeDebugObjectReference &);
133  //void valueChanged(int, const QVariant &);
134 
135  // Server sends value as string if it is a user-type variant
136  void valueChanged(const QByteArray &name, const QVariant &value);
137 
138 private:
141  void setState(State);
146 };
147 
149 {
150  Q_OBJECT
151 public:
153 
154  QString name() const;
155 
156 private:
159 };
160 
162 {
163  Q_OBJECT
164 public:
166 
167  QString expression() const;
168 
169 private:
173 };
174 
175 
177 {
178 Q_OBJECT
179 public:
180  enum State { Waiting, Error, Completed };
181 
182  State state() const;
183  bool isWaiting() const;
184 
185 // bool waitUntilCompleted();
186 
187 Q_SIGNALS:
188  void stateChanged(QDeclarativeDebugQuery::State);
189 
190 protected:
192 
193 private:
196  void setState(State);
198 };
199 
201 {
202 public:
206 
207  QUrl url() const;
208  void setUrl(const QUrl &);
209  int lineNumber() const;
210  void setLineNumber(int);
211  int columnNumber() const;
212  void setColumnNumber(int);
213 
214 private:
219 };
220 
222 {
223 public:
228 
229  int debugId() const;
230  QString name() const;
231 
232 private:
236 };
237 
239 {
240 public:
245 
246  int debugId() const;
247  int parentId() const;
248  QString className() const;
249  QString idString() const;
250  QString name() const;
251 
252  QDeclarativeDebugFileReference source() const;
253  int contextDebugId() const;
254  bool needsMoreData() const;
255 
258 
259 private:
271 };
272 
274 {
275 public:
279 
280  int debugId() const;
281  QString name() const;
282 
285 
286 private:
292 };
293 
295 {
296 public:
300 
301  int objectDebugId() const;
302  QString name() const;
303  QVariant value() const;
304  QString valueTypeName() const;
305  QString binding() const;
306  bool hasNotifySignal() const;
307 
308 private:
316 };
317 
318 
320 {
321 Q_OBJECT
322 public:
325 private:
332 };
333 
335 {
336 Q_OBJECT
337 public:
339  QDeclarativeDebugContextReference rootContext() const;
340 private:
347 };
348 
350 {
351 Q_OBJECT
352 public:
353  virtual ~QDeclarativeDebugObjectQuery();
354  QDeclarativeDebugObjectReference object() const;
355 private:
362 
363 };
364 
366 {
367 Q_OBJECT
368 public:
370  QVariant expression() const;
371  QVariant result() const;
372 private:
380 };
381 
383 
388 
390 
391 #endif // QDECLARATIVEENGINEDEBUG_H
The QVariant class acts like a union for the most common Qt data types.
Definition: qvariant.h:92
Error
Definition: qaudio.h:58
QList< QDeclarativeDebugEngineReference > m_engines
#define QT_END_NAMESPACE
This macro expands to.
Definition: qglobal.h:90
#define QT_MODULE(x)
Definition: qglobal.h:2783
#define QT_BEGIN_HEADER
Definition: qglobal.h:136
The QByteArray class provides an array of bytes.
Definition: qbytearray.h:135
static LibLoadStatus status
Definition: qlocale_icu.cpp:69
QDeclarativeDebugObjectReference m_object
The QUrl class provides a convenient interface for working with URLs.
Definition: qurl.h:61
The QString class provides a Unicode character string.
Definition: qstring.h:83
The QObject class is the base class of all Qt objects.
Definition: qobject.h:111
QList< QDeclarativeDebugContextReference > m_contexts
#define Q_SIGNALS
Definition: qobjectdefs.h:72
const char * className
Definition: qwizard.cpp:137
QDeclarativeDebugContextReference m_context
QList< QDeclarativeDebugObjectReference > m_objects
#define QT_BEGIN_NAMESPACE
This macro expands to.
Definition: qglobal.h:89
QDeclarativeEngineDebug * m_client
static QList< QAxEngineDescriptor > engines
Definition: qaxscript.cpp:69
const char * name
QDeclarativeEngineDebug * m_client
The State element defines configurations of objects and properties.
#define Q_DECLARATIVE_PRIVATE_EXPORT
#define Q_OBJECT
Definition: qobjectdefs.h:157
#define Q_DECLARE_METATYPE(TYPE)
This macro makes the type Type known to QMetaType as long as it provides a public default constructor...
Definition: qmetatype.h:265
QDeclarativeDebugFileReference m_source
QList< QDeclarativeDebugObjectReference > m_children
static QByteArray methodName(const char *signature, int nameLength)
Makes a deep copy of the first nameLength characters of the given method signature and returns the co...
QList< QDeclarativeDebugPropertyReference > m_properties
static const QCssKnownValue properties[NumProperties - 1]
Definition: qcssparser.cpp:67
#define Q_DECLARE_PRIVATE(Class)
Definition: qglobal.h:2467
#define QT_END_HEADER
Definition: qglobal.h:137