deCONZ C++ API v2.6.1
Loading...
Searching...
No Matches
touchlink_controller.h
1#ifndef DECONZ_TOUCHLINK_CONTROLLER_H
2#define DECONZ_TOUCHLINK_CONTROLLER_H
3
4/*
5 * Copyright (c) 2012-2023 dresden elektronik ingenieurtechnik gmbh.
6 * All rights reserved.
7 *
8 * The software in this package is published under the terms of the BSD
9 * style license a copy of which has been included with this distribution in
10 * the LICENSE.txt file.
11 *
12 */
13
14#include <QObject>
15#include <deconz/types.h>
16#include <deconz/touchlink.h>
17
18namespace deCONZ {
19
20class TouchlinkControllerPrivate;
21
27class DECONZ_DLLSPEC TouchlinkController : public QObject
28{
29 Q_OBJECT
30
31public:
33 TouchlinkController(QObject *parent);
35 virtual ~TouchlinkController();
37 static TouchlinkController *instance();
48 virtual int startInterpanMode(uint8_t channel) = 0;
55 virtual int sendInterpanRequest(const TouchlinkRequest &req) = 0;
60 uint32_t generateTransactionId() const;
61
62Q_SIGNALS:
68 void startInterpanModeConfirm(TouchlinkStatus status);
74 void sendInterpanConfirm(TouchlinkStatus status);
92 void interpanIndication(const QByteArray &ind);
93
94private:
96 Q_DECLARE_PRIVATE(TouchlinkController)
97};
98
99} // namespace deCONZ
100
101#endif // DECONZ_TOUCHLINK_CONTROLLER_H
Definition touchlink_controller.cpp:20
Provides services to access interpan and touchlink functionality.
Definition touchlink_controller.h:28
virtual int sendInterpanRequest(const TouchlinkRequest &req)=0
Sends a interpan request.
virtual int startInterpanMode(uint8_t channel)=0
Start interpan networking.
Base class for all touchlink requests.
Definition touchlink.h:35
The deCONZ namespace.
Definition aps.cpp:19
TouchlinkStatus
Status codes used by the touchlink module.
Definition touchlink.h:21
Declaration of the most common deCONZ library types.