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

@@ -46,11 +46,10 @@ using namespace Core;
namespace QmlProfiler {
namespace Internal {
class QmlProfilerClientManager::QmlProfilerClientManagerPrivate {
class QmlProfilerClientManager::QmlProfilerClientManagerPrivate
{
public:
QmlProfilerClientManagerPrivate(QmlProfilerClientManager *qq) { Q_UNUSED(qq); }
QmlProfilerStateManager* profilerState;
QmlProfilerStateManager *profilerState;
QmlDebugConnection *connection;
QPointer<QmlProfilerTraceClient> qmlclientplugin;
@@ -59,9 +58,7 @@ public:
QTimer connectionTimer;
int connectionAttempts;
enum ConnectMode {
TcpConnection, OstConnection
};
enum ConnectMode { TcpConnection, OstConnection };
ConnectMode connectMode;
QString tcpHost;
quint64 tcpPort;
@@ -73,7 +70,7 @@ public:
};
QmlProfilerClientManager::QmlProfilerClientManager(QObject *parent) :
QObject(parent), d(new QmlProfilerClientManagerPrivate(this))
QObject(parent), d(new QmlProfilerClientManagerPrivate)
{
setObjectName(QLatin1String("QML Profiler Connections"));
@@ -97,6 +94,7 @@ QmlProfilerClientManager::~QmlProfilerClientManager()
delete d;
}
////////////////////////////////////////////////////////////////
// Interface
void QmlProfilerClientManager::setTcpConnection(QString host, quint64 port)