summaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/qml_cpp/qtemplategestureplugin.h
blob: dd0c252a74c5e19faa83f675334a6b60c5629023 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
// Copyright (C) 2016 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0

#ifndef QTEMPLATEGESTUREPLUGIN_H
#define QTEMPLATEGESTUREPLUGIN_H

#include <QObject>
#include <QStringList>

#include <qsensorgestureplugininterface.h>

class QTemplateGesturePlugin : public QObject, public QSensorGesturePluginInterface
{
    Q_OBJECT
    //Q_PLUGIN_METADATA(IID "org.qt-project.QSensorGesturePluginInterface" FILE "plugin.json")
    Q_INTERFACES(QSensorGesturePluginInterface)
public:
    explicit QTemplateGesturePlugin();
    ~QTemplateGesturePlugin();

    QList<QSensorGestureRecognizer *> createRecognizers() override;

    QStringList gestureSignals() const;
    QStringList supportedIds() const override;
    QString name() const override { return "TemplateGestures"; }
};

#endif // QTEMPLATEGESTUREPLUGIN_H