summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/nfc/qndefnfcsmartposterrecord.cpp12
-rw-r--r--src/nfc/qndefnfcsmartposterrecord.h1
2 files changed, 13 insertions, 0 deletions
diff --git a/src/nfc/qndefnfcsmartposterrecord.cpp b/src/nfc/qndefnfcsmartposterrecord.cpp
index 9bec5b7a..b71b8ac2 100644
--- a/src/nfc/qndefnfcsmartposterrecord.cpp
+++ b/src/nfc/qndefnfcsmartposterrecord.cpp
@@ -92,6 +92,18 @@ QNdefNfcSmartPosterRecord::QNdefNfcSmartPosterRecord(const QNdefNfcSmartPosterRe
}
/*!
+ Assigns the \a other smart poster record to this record and returns a reference to
+ this record.
+*/
+QNdefNfcSmartPosterRecord &QNdefNfcSmartPosterRecord::operator=(const QNdefNfcSmartPosterRecord &other)
+{
+ if (this != &other)
+ d = other.d;
+
+ return *this;
+}
+
+/*!
Destroys the smart poster.
*/
QNdefNfcSmartPosterRecord::~QNdefNfcSmartPosterRecord()
diff --git a/src/nfc/qndefnfcsmartposterrecord.h b/src/nfc/qndefnfcsmartposterrecord.h
index f390f730..08c5aaaf 100644
--- a/src/nfc/qndefnfcsmartposterrecord.h
+++ b/src/nfc/qndefnfcsmartposterrecord.h
@@ -84,6 +84,7 @@ public:
QNdefNfcSmartPosterRecord();
QNdefNfcSmartPosterRecord(const QNdefRecord &other);
QNdefNfcSmartPosterRecord(const QNdefNfcSmartPosterRecord &other);
+ QNdefNfcSmartPosterRecord &operator=(const QNdefNfcSmartPosterRecord &other);
~QNdefNfcSmartPosterRecord();
void setPayload(const QByteArray &payload);