blob: 8f5f9703f60c2a4a236afabf296a2e791870704c (
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 LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
#ifndef DUMMYCOMMON_H
#define DUMMYCOMMON_H
#include <qsensorbackend.h>
#include <qsensor.h>
class dummycommon : public QSensorBackend
{
public:
dummycommon(QSensor *sensor);
void start() override;
void stop() override;
virtual void poll() = 0;
void timerEvent(QTimerEvent * /*event*/) override;
protected:
quint64 getTimestamp();
private:
int m_timerid;
};
#endif
|