| 1 | // Copyright (C) 2023 The Qt Company Ltd.cxx . . $ `<file>/examples/protobuf/sensors/emulator/sensoremulator.h`/ |
| 2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause |
| 3 | |
| 4 | #ifndef SENSOREMULATOR_H |
| 5 | #define SENSOREMULATOR_Hcxx . . $ `examples/protobuf/sensors/emulator/sensoremulator.h:5:9`! |
| 6 | |
| 7 | #include <QObject> |
| 8 | #include <QUdpSocket> |
| 9 | #include <QProtobufSerializer>cxx . . $ `<file>/build/include/QtProtobuf/QProtobufSerializer`/ |
| 10 | |
| 11 | namespace qtcxx . . $ qt/::examplescxx . . $ qt/examples/::sensorscxx . . $ qt/examples/sensors/ { |
| 12 | class Coordinatescxx . . $ qt/examples/sensors/Coordinates#; |
| 13 | class Temperaturecxx . . $ qt/examples/sensors/Temperature#; |
| 14 | class WarningNotificationcxx . . $ qt/examples/sensors/WarningNotification#; |
| 15 | } // namespace qt::examples::sensors |
| 16 | class SensorEmulatorcxx . . $ SensorEmulator# : public QObjectcxx . . $ QObject# |
| 17 | { |
| 18 | Q_OBJECTcxx . . $ SensorEmulator#qt_staticMetaObjectContent. |
| 19 | public: |
| 20 | explicit SensorEmulatorcxx . . $ SensorEmulator#SensorEmulator(749de1b6ae65bddd).(QObjectcxx . . $ QObject# *parent = nullptr); |
| 21 | |
| 22 | void sendCoordinatescxx . . $ SensorEmulator#sendCoordinates(757a85eae5540b5f).(const qtcxx . . $ qt/::examplescxx . . $ qt/examples/::sensorscxx . . $ qt/examples/sensors/::Coordinatescxx . . $ qt/examples/sensors/Coordinates# &coords); |
| 23 | void sendTemperaturecxx . . $ SensorEmulator#sendTemperature(8e3d34c079bd0c8f).(const qtcxx . . $ qt/::examplescxx . . $ qt/examples/::sensorscxx . . $ qt/examples/sensors/::Temperaturecxx . . $ qt/examples/sensors/Temperature# &temp); |
| 24 | void sendWarningcxx . . $ SensorEmulator#sendWarning(276f3f8de3e101ea).(const qtcxx . . $ qt/::examplescxx . . $ qt/examples/::sensorscxx . . $ qt/examples/sensors/::WarningNotificationcxx . . $ qt/examples/sensors/WarningNotification# &warn); |
| 25 | |
| 26 | private: |
| 27 | void sendcxx . . $ SensorEmulator#send(45672f3c6961a244).(const QByteArraycxx . . $ QByteArray# &data); |
| 28 | |
| 29 | QUdpSocketcxx . . $ QUdpSocket# m_socketcxx . . $ SensorEmulator#m_socket.; |
| 30 | QProtobufSerializercxx . . $ QProtobufSerializer# m_serializercxx . . $ SensorEmulator#m_serializer.; |
| 31 | }; |
| 32 | |
| 33 | #endif // SENSOREMULATOR_H |