blob: 948a63cb8b9b17043a37dbf27ca0bc3c78aaed90 (
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
30
31
32
33
34
35
36
37
38
39
40
41
|
// Copyright (C) 2016 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
#ifndef QSENSORGESTUREMANAGER_P_H
#define QSENSORGESTUREMANAGER_P_H
#include <QtCore/QObject>
#include <QtCore/QStringList>
#include <QtSensors/qsensorgesture.h>
#include <QtSensors/qsensorgesturerecognizer.h>
QT_BEGIN_NAMESPACE
class QSensorGestureManagerPrivate;
class Q_SENSORS_EXPORT QSensorGestureManager : public QObject
{
Q_OBJECT
Q_DECLARE_PRIVATE(QSensorGestureManager)
public:
explicit QSensorGestureManager(QObject *parent = nullptr);
~QSensorGestureManager();
bool registerSensorGestureRecognizer(QSensorGestureRecognizer *recognizer);
QStringList gestureIds() const;
QStringList recognizerSignals(const QString &recognizerId) const;
static QSensorGestureRecognizer *sensorGestureRecognizer(const QString &id);
Q_SIGNALS:
void newSensorGestureAvailable();
};
QT_END_NAMESPACE
#endif // QSENSORGESTUREMANAGER_P_H
|