QmlProfiler: reworked

Change-Id: I66a236a024d76e7bef6edfb91ae30b5dd098b76b
Reviewed-by: Kai Koehne <kai.koehne@digia.com>
This commit is contained in:
Christiaan Janssen
2013-08-08 13:28:08 +02:00
parent 7764f35107
commit 0a3b20f5f9
62 changed files with 7925 additions and 3138 deletions

View File

@@ -38,7 +38,6 @@ namespace Internal {
class QmlProfilerStateManager : public QObject
{
Q_OBJECT
public:
enum QmlProfilerState {
Idle,
@@ -54,11 +53,11 @@ public:
explicit QmlProfilerStateManager(QObject *parent = 0);
~QmlProfilerStateManager();
QmlProfilerState currentState() const;
bool clientRecording() const;
bool serverRecording() const;
QmlProfilerState currentState();
bool clientRecording();
bool serverRecording();
QString currentStateAsString() const;
QString currentStateAsString();
signals:
void stateChanged();
@@ -71,12 +70,11 @@ public slots:
void setServerRecording(bool recording);
private:
QmlProfilerStateManager::QmlProfilerState m_currentState;
bool m_clientRecording;
bool m_serverRecording;
class QmlProfilerStateManagerPrivate;
QmlProfilerStateManagerPrivate *d;
};
} // namespace Internal
} // namespace QmlProfiler
}
}
#endif // QMLPROFILERSTATEMANAGER_H