forked from qt-creator/qt-creator
		
	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>
This commit is contained in:
		@@ -80,10 +80,9 @@ public:
 | 
			
		||||
 | 
			
		||||
    bool isEnabled() const;
 | 
			
		||||
    bool isRecording() const;
 | 
			
		||||
    void setRecording(bool);
 | 
			
		||||
 | 
			
		||||
public slots:
 | 
			
		||||
    void setRecording(bool);
 | 
			
		||||
    void setRecordingFromServer(bool);
 | 
			
		||||
    void clearData();
 | 
			
		||||
    void sendRecordingStatus();
 | 
			
		||||
 | 
			
		||||
@@ -106,6 +105,9 @@ protected:
 | 
			
		||||
    virtual void statusChanged(Status);
 | 
			
		||||
    virtual void messageReceived(const QByteArray &);
 | 
			
		||||
 | 
			
		||||
private:
 | 
			
		||||
    void setRecordingFromServer(bool);
 | 
			
		||||
 | 
			
		||||
private:
 | 
			
		||||
    class QmlProfilerTraceClientPrivate *d;
 | 
			
		||||
};
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user