summaryrefslogtreecommitdiffstats
path: root/examples/sensors/qmlsensorgestures/plugin/qcountergestureplugin.h
blob: 6f2169706259b8f7b2af49e2074ef9f237620c6a (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
29
// Copyright (C) 2017 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause

#ifndef QCOUNTERGESTUREPLUGIN_H
#define QCOUNTERGESTUREPLUGIN_H

#include <QObject>
#include <QStringList>

#include <qsensorgestureplugininterface.h>

class QCounterGesturePlugin : public QObject, public QSensorGesturePluginInterface
{
    Q_OBJECT
    Q_PLUGIN_METADATA(IID "org.qt-project.QSensorGesturePluginInterface")
    Q_INTERFACES(QSensorGesturePluginInterface)

public:
    explicit QCounterGesturePlugin();
    ~QCounterGesturePlugin();

    QList<QSensorGestureRecognizer *> createRecognizers() override;

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

#endif // QCOUNTERGESTUREPLUGIN_H