aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/qmltooling/qmldbg_debugger/qdebugmessageservice.h
diff options
context:
space:
mode:
authorUlf Hermann <ulf.hermann@qt.io>2016-08-26 14:17:38 +0200
committerUlf Hermann <ulf.hermann@qt.io>2016-11-18 14:36:35 +0000
commit9f5945a6309a3026f4ab724d2f16676f505965d8 (patch)
treebb1ff0684e0459bffbc569b56c076e07424c3ae8 /src/plugins/qmltooling/qmldbg_debugger/qdebugmessageservice.h
parenta7fd83cd0cecb789006baecabfc6a49c49b7f48c (diff)
QmlTooling: Move QDebugMessageService into own plugin
The debug message service is used by both the debugger and the profiler. It shouldn't be necessary to load the debugger plugin in order to do QML profiling. Change-Id: Ic9a4216763098cc795fa9feb98b37ddceeed47d9 Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Diffstat (limited to 'src/plugins/qmltooling/qmldbg_debugger/qdebugmessageservice.h')
-rw-r--r--src/plugins/qmltooling/qmldbg_debugger/qdebugmessageservice.h87
1 files changed, 0 insertions, 87 deletions
diff --git a/src/plugins/qmltooling/qmldbg_debugger/qdebugmessageservice.h b/src/plugins/qmltooling/qmldbg_debugger/qdebugmessageservice.h
deleted file mode 100644
index c25e756c2d..0000000000
--- a/src/plugins/qmltooling/qmldbg_debugger/qdebugmessageservice.h
+++ /dev/null
@@ -1,87 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2016 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the QtQml module of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:LGPL$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** GNU Lesser General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU Lesser
-** General Public License version 3 as published by the Free Software
-** Foundation and appearing in the file LICENSE.LGPL3 included in the
-** packaging of this file. Please review the following information to
-** ensure the GNU Lesser General Public License version 3 requirements
-** will be met: https://www.gnu.org/licenses/lgpl-3.0.html.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 2.0 or (at your option) the GNU General
-** Public license version 3 or any later version approved by the KDE Free
-** Qt Foundation. The licenses are as published by the Free Software
-** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3
-** included in the packaging of this file. Please review the following
-** information to ensure the GNU General Public License requirements will
-** be met: https://www.gnu.org/licenses/gpl-2.0.html and
-** https://www.gnu.org/licenses/gpl-3.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-#ifndef QDEBUGMESSAGESERVICE_H
-#define QDEBUGMESSAGESERVICE_H
-
-//
-// W A R N I N G
-// -------------
-//
-// This file is not part of the Qt API. It exists purely as an
-// implementation detail. This header file may change from version to
-// version without notice, or even be removed.
-//
-// We mean it.
-//
-
-#include <private/qqmldebugserviceinterfaces_p.h>
-
-#include <QtCore/qlogging.h>
-#include <QtCore/qmutex.h>
-#include <QtCore/qelapsedtimer.h>
-
-QT_BEGIN_NAMESPACE
-
-class QDebugMessageServicePrivate;
-
-class QDebugMessageServiceImpl : public QDebugMessageService
-{
- Q_OBJECT
-public:
- QDebugMessageServiceImpl(QObject *parent = 0);
-
- void sendDebugMessage(QtMsgType type, const QMessageLogContext &ctxt, const QString &buf);
- void synchronizeTime(const QElapsedTimer &otherTimer);
-
-protected:
- void stateChanged(State);
-
-private:
- friend class QQmlDebuggerServiceFactory;
-
- QtMessageHandler oldMsgHandler;
- QQmlDebugService::State prevState;
- QMutex initMutex;
- QElapsedTimer timer;
-};
-
-QT_END_NAMESPACE
-
-#endif // QDEBUGMESSAGESERVICE_H