summaryrefslogtreecommitdiffstats
path: root/src/nfc
diff options
context:
space:
mode:
Diffstat (limited to 'src/nfc')
-rw-r--r--src/nfc/qndefnfcsmartposterrecord.cpp8
-rw-r--r--src/nfc/qndefnfcsmartposterrecord.h1
2 files changed, 9 insertions, 0 deletions
diff --git a/src/nfc/qndefnfcsmartposterrecord.cpp b/src/nfc/qndefnfcsmartposterrecord.cpp
index 6d8e6d40..e17844c4 100644
--- a/src/nfc/qndefnfcsmartposterrecord.cpp
+++ b/src/nfc/qndefnfcsmartposterrecord.cpp
@@ -91,6 +91,14 @@ QNdefNfcSmartPosterRecord::QNdefNfcSmartPosterRecord(const QNdefRecord &other)
}
/*!
+ Constructs a new smart poster that is a copy of \a other.
+*/
+QNdefNfcSmartPosterRecord::QNdefNfcSmartPosterRecord(const QNdefNfcSmartPosterRecord &other)
+ : QNdefRecord(other, QNdefRecord::NfcRtd, "Sp"), d(other.d)
+{
+}
+
+/*!
Destroys the smart poster.
*/
QNdefNfcSmartPosterRecord::~QNdefNfcSmartPosterRecord()
diff --git a/src/nfc/qndefnfcsmartposterrecord.h b/src/nfc/qndefnfcsmartposterrecord.h
index 5efb3f42..82f26e36 100644
--- a/src/nfc/qndefnfcsmartposterrecord.h
+++ b/src/nfc/qndefnfcsmartposterrecord.h
@@ -87,6 +87,7 @@ public:
QNdefNfcSmartPosterRecord();
QNdefNfcSmartPosterRecord(const QNdefRecord &other);
+ QNdefNfcSmartPosterRecord(const QNdefNfcSmartPosterRecord &other);
~QNdefNfcSmartPosterRecord();
void setPayload(const QByteArray &payload);