QmlProfiler: clean up QmlProfiler{State,Client}Manager

Change-Id: I538fbae5be9750b9b00f82d467136a8500e8f8e6
Reviewed-by: Christiaan Janssen <christiaan.janssen@digia.com>
This commit is contained in:
hjk
2013-07-30 18:35:51 +02:00
parent 3de45d8c55
commit 9cf65cfd80
4 changed files with 69 additions and 80 deletions

View File

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