blob: befcbc674da7c2ae254ebd73d49abbc1e79e6ea8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
// Copyright (C) 2017 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 MYBACKEND_H
#define MYBACKEND_H
#include <qaccelerometer.h>
#include <qsensorbackend.h>
class MyBackend : public QSensorBackend
{
public:
MyBackend(QSensor *sensor) : QSensorBackend(sensor) {}
void stop() override {}
void start() override {}
void poll() {}
static const char *id;
};
#endif
|