summaryrefslogtreecommitdiffstats
path: root/src/qtivisupport.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/qtivisupport.h')
-rw-r--r--src/qtivisupport.h64
1 files changed, 64 insertions, 0 deletions
diff --git a/src/qtivisupport.h b/src/qtivisupport.h
new file mode 100644
index 0000000..cefab0a
--- /dev/null
+++ b/src/qtivisupport.h
@@ -0,0 +1,64 @@
+/****************************************************************************
+**
+** Copyright (C) 2016 Klaralvdalens Datakonsult AB, a KDAB Group company.
+** Contact: https://www.qt.io/licensing/
+**
+** This file is part of the QtIvi plug-in for GammaRay.
+**
+** $QT_BEGIN_LICENSE:GPL-QTAS$
+** Commercial License Usage
+** Licensees holding valid commercial Qt Automotive Suite 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 General Public License Usage
+** Alternatively, this file may be used under the terms of the GNU
+** General Public License version 3 as published by the Free Software
+** Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT
+** 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-3.0.html.
+**
+** $QT_END_LICENSE$
+**
+****************************************************************************/
+
+#ifndef GAMMARAY_QTIVI_QTIVI_H
+#define GAMMARAY_QTIVI_QTIVI_H
+
+#include <core/toolfactory.h>
+
+#include <QIviProperty>
+
+namespace GammaRay {
+
+class QtIviSupport : public QObject
+{
+ Q_OBJECT
+public:
+ explicit QtIviSupport(ProbeInterface *probe, QObject *parent = 0);
+
+private:
+ void registerMetaTypes();
+};
+
+class QtIviSupportFactory : public QObject, public StandardToolFactory<QIviProperty, QtIviSupport>
+{
+ Q_OBJECT
+ Q_INTERFACES(GammaRay::ToolFactory)
+ Q_PLUGIN_METADATA(IID "com.kdab.GammaRay.ToolFactory" FILE "gammaray_qtivi.json")
+
+public:
+ explicit QtIviSupportFactory(QObject *parent = 0) : QObject(parent)
+ {
+ }
+
+ QString name() const override;
+};
+
+}
+
+#endif