sensorfw
wakeupsensor_i.h
Go to the documentation of this file.
1/****************************************************************************
2**
3** Copyright (c) 2025 Jollyboys Ltd.
4**
5** $QT_BEGIN_LICENSE:LGPL$
6**
7** GNU Lesser General Public License Usage
8** Alternatively, this file may be used under the terms of the GNU Lesser
9** General Public License version 2.1 as published by the Free Software
10** Foundation and appearing in the file LICENSE.LGPL included in the
11** packaging of this file. Please review the following information to
12** ensure the GNU Lesser General Public License version 2.1 requirements
13** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
14**
15** $QT_END_LICENSE$
16**
17****************************************************************************/
18
19#ifndef WAKEUPSENSOR_I_H
20#define WAKEUPSENSOR_I_H
21
22#include <QtDBus/QtDBus>
23
24#include "datatypes/unsigned.h"
25#include "abstractsensor_i.h"
26
34{
35 Q_OBJECT
36 Q_DISABLE_COPY(WakeupSensorChannelInterface)
37 Q_PROPERTY(Unsigned wakeup READ wakeup NOTIFY wakeupChanged)
38
39public:
42 static const char *staticInterfaceName;
43
52
58
64 WakeupSensorChannelInterface(const QString &path, int sessionId);
65
72 static WakeupSensorChannelInterface *interface(const QString &id);
73
74protected:
75 virtual bool dataReceivedImpl();
76
77Q_SIGNALS:
82 void wakeupChanged(const Unsigned &value);
83};
84
85namespace local {
87}
88#endif // WAKEUPSENSOR_I_H
Base class for sensor interface.
AbstractSensorChannelInterface(const QString &path, const char *interfaceName, int sessionId)
Constructor.
QObject facae for TimedUnsigned.
Definition unsigned.h:37
Client interface for accessing wakeup sensor.
static AbstractSensorChannelInterface * factoryMethod(const QString &id, int sessionId)
Create new instance of the class.
static WakeupSensorChannelInterface * interface(const QString &id)
Request an interface to the sensor.
virtual bool dataReceivedImpl()
Callback for subclasses in which they must read their expected data from socket.
static const char * staticInterfaceName
Name of the D-Bus interface for this class.
WakeupSensorChannelInterface(const QString &path, int sessionId)
Constructor.
void wakeupChanged(const Unsigned &value)
Sent when wakeup event is received.
::WakeupSensorChannelInterface WakeupSensor
QObject based datatype for TimedUnsigned.