1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283 |
- #ifndef QSENSORGESTURERECOGNIZER_H
- #define QSENSORGESTURERECOGNIZER_H
- #include <QtCore/QDebug>
- #include <QtCore/QTimer>
- #include <QtCore/QStringList>
- #include <QtSensors/qsensorgesture.h>
- QT_BEGIN_NAMESPACE
- class QSensorGestureRecognizerPrivate;
- class Q_SENSORS_EXPORT QSensorGestureRecognizer : public QObject
- {
- Q_OBJECT
- public:
- explicit QSensorGestureRecognizer(QObject *parent = Q_NULLPTR);
- virtual ~QSensorGestureRecognizer();
- virtual QString id() const = 0;
- virtual bool isActive() = 0;
- void startBackend();
- void stopBackend();
- void createBackend();
- QStringList gestureSignals() const;
- Q_SIGNALS:
- void detected(const QString &);
- protected:
- virtual void create() = 0;
- virtual bool start() = 0;
- virtual bool stop() = 0;
- private:
- QSensorGestureRecognizerPrivate * d_ptr;
- };
- QT_END_NAMESPACE
- #endif
|