diff options
author | Christiaan Janssen <christiaan.janssen@nokia.com> | 2012-02-24 10:47:17 +0100 |
---|---|---|
committer | Christiaan Janssen <christiaan.janssen@nokia.com> | 2012-03-14 11:38:25 +0100 |
commit | b7304e2f2e533b767bcd1c02d8403e3d5fa63ddd (patch) | |
tree | 30bb48a69d7c6bd1c35bcdd359a757486f298368 /src/libs/qmljsdebugclient/qv8profilerclient.h | |
parent | d207165f6aa89ee95bd41c41a49d68cfa0b46444 (diff) | |
download | qt-creator-b7304e2f2e533b767bcd1c02d8403e3d5fa63ddd.tar.gz |
QmlProfiler: Refactor
The code of the qmlprofiler client has become a bit too complex,
this patch reorganizes the modules in a more sensible way,
having the modules communicate with each other through a
state machine instead of the excess of signals and slots
from before.
Change-Id: I76f7313779888a1bd07a1cdb1acbf2e47aacf42a
Reviewed-by: Kai Koehne <kai.koehne@nokia.com>
Diffstat (limited to 'src/libs/qmljsdebugclient/qv8profilerclient.h')
-rw-r--r-- | src/libs/qmljsdebugclient/qv8profilerclient.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/libs/qmljsdebugclient/qv8profilerclient.h b/src/libs/qmljsdebugclient/qv8profilerclient.h index 25e1328c73..48d191a458 100644 --- a/src/libs/qmljsdebugclient/qv8profilerclient.h +++ b/src/libs/qmljsdebugclient/qv8profilerclient.h @@ -52,6 +52,9 @@ public: enum Message { V8Entry, V8Complete, + V8SnapshotChunk, + V8SnapshotComplete, + V8ProfilingStarted, V8MaximumMessage }; @@ -61,9 +64,9 @@ public: bool isEnabled() const; bool isRecording() const; + void setRecording(bool); public slots: - void setRecording(bool); void clearData(); void sendRecordingStatus(); @@ -77,6 +80,9 @@ signals: void enabledChanged(); void cleared(); +private: + void setRecordingFromServer(bool); + protected: virtual void statusChanged(Status); virtual void messageReceived(const QByteArray &); |