sensorfw
hybriswristgestureadaptor.h
Go to the documentation of this file.
1
/****************************************************************************
2
**
3
** Copyright (C) 2013 Jolla Ltd
4
** Contact: lorn.potter@jollamobile.com
5
**
6
** Copyright (C) 2020 Darrel Griƫt
7
** Contact: idanlcontact@gmail.com
8
**
9
**
10
** $QT_BEGIN_LICENSE:LGPL$
11
**
12
** GNU Lesser General Public License Usage
13
** Alternatively, this file may be used under the terms of the GNU Lesser
14
** General Public License version 2.1 as published by the Free Software
15
** Foundation and appearing in the file LICENSE.LGPL included in the
16
** packaging of this file. Please review the following information to
17
** ensure the GNU Lesser General Public License version 2.1 requirements
18
** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
19
**
20
** $QT_END_LICENSE$
21
**
22
****************************************************************************/
23
24
#ifndef HYBRISWRISTGESTUREADAPTOR_H
25
#define HYBRISWRISTGESTUREADAPTOR_H
26
#include "hybrisadaptor.h"
27
28
#include <QString>
29
#include <QStringList>
30
#include "deviceadaptorringbuffer.h"
31
#include "
datatypes/orientationdata.h
"
32
38
class
HybrisWristGestureAdaptor
:
public
HybrisAdaptor
39
{
40
Q_OBJECT
41
42
public
:
43
static
DeviceAdaptor*
factoryMethod
(
const
QString&
id
) {
44
return
new
HybrisWristGestureAdaptor
(
id
);
45
}
46
HybrisWristGestureAdaptor
(
const
QString&
id
);
47
~HybrisWristGestureAdaptor
();
48
49
bool
startSensor
();
50
void
stopSensor
();
51
52
protected
:
53
void
processSample
(
const
sensors_event_t& data);
54
55
private
:
56
DeviceAdaptorRingBuffer<TimedUnsigned>* buffer;
57
int
sensorType;
58
QByteArray powerStatePath;
59
60
};
61
#endif
HybrisWristGestureAdaptor::processSample
void processSample(const sensors_event_t &data)
HybrisWristGestureAdaptor::factoryMethod
static DeviceAdaptor * factoryMethod(const QString &id)
Definition
hybriswristgestureadaptor.h:43
HybrisWristGestureAdaptor::HybrisWristGestureAdaptor
HybrisWristGestureAdaptor(const QString &id)
HybrisWristGestureAdaptor::startSensor
bool startSensor()
HybrisWristGestureAdaptor::stopSensor
void stopSensor()
HybrisWristGestureAdaptor::~HybrisWristGestureAdaptor
~HybrisWristGestureAdaptor()
orientationdata.h
Datatypes for different filters.
adaptors
hybriswristgestureadaptor
hybriswristgestureadaptor.h
Generated by
1.13.2