Remove "All rights reserved" line from license headers.
[profile/ivi/qtdeclarative.git] / src / declarative / debugger / qv8profilerservice_p.h
index f2d517b..ef126a0 100644 (file)
@@ -1,8 +1,7 @@
 /****************************************************************************
 **
-** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies).
-** All rights reserved.
-** Contact: Nokia Corporation (qt-info@nokia.com)
+** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies).
+** Contact: http://www.qt-project.org/
 **
 ** This file is part of the QtDeclarative module of the Qt Toolkit.
 **
@@ -35,6 +34,7 @@
 **
 **
 **
+**
 ** $QT_END_LICENSE$
 **
 ****************************************************************************/
@@ -59,9 +59,8 @@ QT_BEGIN_HEADER
 
 QT_BEGIN_NAMESPACE
 
-QT_MODULE(Declarative)
 
-struct QV8ProfilerData
+struct Q_AUTOTEST_EXPORT QV8ProfilerData
 {
     int messageType;
     QString filename;
@@ -77,14 +76,15 @@ struct QV8ProfilerData
 class QDeclarativeEngine;
 class QV8ProfilerServicePrivate;
 
-class QV8ProfilerService : public QDeclarativeDebugService
+class Q_AUTOTEST_EXPORT QV8ProfilerService : public QDeclarativeDebugService
 {
     Q_OBJECT
 public:
     enum MessageType {
         V8Entry,
         V8Complete,
-        V8Snapshot,
+        V8SnapshotChunk,
+        V8SnapshotComplete,
 
         V8MaximumMessage
     };
@@ -93,12 +93,13 @@ public:
     ~QV8ProfilerService();
 
     static QV8ProfilerService *instance();
+    static void initialize();
 
-    void addEngine(QDeclarativeEngine *);
-    void removeEngine(QDeclarativeEngine *);
-
+public slots:
     void startProfiling(const QString &title);
     void stopProfiling(const QString &title);
+    void takeSnapshot();
+    void deleteSnapshots();
 
     void sendProfilingData();