deCONZ C++ API v2.6.1
Loading...
Searching...
No Matches
touchlink.h
1#ifndef DECONZ_TOUCHLINK_H
2#define DECONZ_TOUCHLINK_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 <deconz/types.h>
15#include <deconz/aps.h>
16
17namespace deCONZ {
18
21{
24 TouchlinkBusy = 0x02
25};
26
27class TouchlinkRequestPrivate;
28
34class DECONZ_DLLSPEC TouchlinkRequest
35{
36public:
42 TouchlinkRequest& operator=(const TouchlinkRequest &other);
46 Address &dstAddress();
48 const Address &dstAddress() const;
50 ApsAddressMode dstAddressMode() const;
54 void setDstAddressMode(ApsAddressMode mode);
56 uint8_t channel() const;
60 void setChannel(uint8_t channel);
62 uint16_t panId() const;
66 void setPanId(uint16_t panId);
68 uint16_t profileId() const;
72 void setProfileId(uint16_t profileId);
74 uint16_t clusterId() const;
78 void setClusterId(uint16_t clusterId);
91 bool writeToStream(QDataStream &stream) const;
93 const QByteArray &asdu() const;
95 QByteArray &asdu();
97 void setAsdu(const QByteArray &asdu);
98 /* \cond INTERNAL_SYMBOLS */
100 uint32_t transactionId() const;
104 void setTransactionId(uint32_t transactionId);
105 /* \endcond */
106private:
108 Q_DECLARE_PRIVATE(TouchlinkRequest)
109};
110
111} // namespace deCONZ
112
113Q_DECLARE_METATYPE(deCONZ::TouchlinkRequest)
114
115#endif // DECONZ_TOUCHLINK_H
Convenience class to work with network, extended and group addresses.
Definition aps.h:111
Definition touchlink.cpp:19
Base class for all touchlink requests.
Definition touchlink.h:35
The deCONZ namespace.
Definition aps.cpp:19
ApsAddressMode
Address modes used to specify source and destination addresses.
Definition aps.h:83
TouchlinkStatus
Status codes used by the touchlink module.
Definition touchlink.h:21
@ TouchlinkFailed
Failed.
Definition touchlink.h:23
@ TouchlinkSuccess
Success.
Definition touchlink.h:22
@ TouchlinkBusy
Busy.
Definition touchlink.h:24
Declaration of the most common deCONZ library types.