summaryrefslogtreecommitdiffstats
path: root/src/qtivisupport.h
diff options
context:
space:
mode:
authorVolker Krause <volker.krause@kdab.com>2016-06-02 17:09:25 +0200
committerVolker Krause <volker.krause@kdab.com>2016-06-21 11:13:24 +0000
commit6d167a096617d246ed11da34ed9c7b9ea5ab7099 (patch)
treeaf54ea4a60131132fd828e8e46719a94e52a8bfa /src/qtivisupport.h
parent47bdab30c673b8831fb200122612e8b8a817f090 (diff)
Add skeleton for the QtIvi plug-in for GammaRay.
Change-Id: Ida7c4af2e129f5da6f9caf47c390a78fcc39da5a Reviewed-by: Anton Kreuzkamp <anton.kreuzkamp@kdab.com> Reviewed-by: Andreas Holzammer <andreas.holzammer@kdab.com>
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