summaryrefslogtreecommitdiffstats
path: root/src/knx/netip/qknxnetipsessionresponse.h
diff options
context:
space:
mode:
authorAndrew O'Doherty <andrew.odoherty@qt.io>2018-09-11 14:49:59 +0200
committerKarsten Heimrich <karsten.heimrich@qt.io>2018-09-13 08:19:56 +0000
commit071ac7c6b3b20f738c3c8d016f30cc50bd6cae71 (patch)
treecca168ac22546e4d13b086a00015c3a88e38cbaf /src/knx/netip/qknxnetipsessionresponse.h
parent9b3df740acb61e68ce1cb061153b2684858cd3c4 (diff)
Add d-pointers to new builder classes
Change-Id: I303795f8b1cf627986588541db129ce2bfb787ca Reviewed-by: Karsten Heimrich <karsten.heimrich@qt.io>
Diffstat (limited to 'src/knx/netip/qknxnetipsessionresponse.h')
-rw-r--r--src/knx/netip/qknxnetipsessionresponse.h11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/knx/netip/qknxnetipsessionresponse.h b/src/knx/netip/qknxnetipsessionresponse.h
index 0ed3693..c2eecf6 100644
--- a/src/knx/netip/qknxnetipsessionresponse.h
+++ b/src/knx/netip/qknxnetipsessionresponse.h
@@ -36,6 +36,7 @@
QT_BEGIN_NAMESPACE
+class QKnxNetIpSessionResponseBuilderPrivate;
class Q_KNX_EXPORT QKnxNetIpSessionResponseProxy final
{
public:
@@ -54,16 +55,20 @@ public:
class Q_KNX_EXPORT Builder final
{
public:
+ Builder();
+ ~Builder();
+
Builder &setSecureSessionId(quint16 sessionId);
Builder &setPublicKey(const QKnxByteArray &publicKey);
Builder &setMessageAuthenticationCode(const QKnxByteArray &data);
QKnxNetIpFrame create() const;
+ Builder(const Builder &other);
+ Builder &operator=(const Builder &other);
+
private:
- qint32 m_id { -1 };
- QKnxByteArray m_publicKey;
- QKnxByteArray m_authCode;
+ QSharedDataPointer<QKnxNetIpSessionResponseBuilderPrivate> d_ptr;
};
static QKnxNetIpSessionResponseProxy::Builder builder();