diff options
| author | Wladimir J. van der Laan <[email protected]> | 2013-10-18 13:44:27 +0200 |
|---|---|---|
| committer | Wladimir J. van der Laan <[email protected]> | 2013-10-23 09:15:25 +0200 |
| commit | 03535acd053fc0597a9e1fd76c5c7b1f54f5c1df (patch) | |
| tree | 98b137a8f4efc3a1ddd46d5aa840515c22261491 /src/qt/walletmodel.h | |
| parent | qt: allow dragging, copying and saving QR code (diff) | |
| download | discoin-03535acd053fc0597a9e1fd76c5c7b1f54f5c1df.tar.xz discoin-03535acd053fc0597a9e1fd76c5c7b1f54f5c1df.zip | |
qt: add message field to SendCoinsRecipient
Also update URI parsing to fill in this field.
Note that the message is not currently used in any way with the client.
It should be stored with the transaction.
Diffstat (limited to 'src/qt/walletmodel.h')
| -rw-r--r-- | src/qt/walletmodel.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/qt/walletmodel.h b/src/qt/walletmodel.h index 6abcdaf8c..2e99eaddc 100644 --- a/src/qt/walletmodel.h +++ b/src/qt/walletmodel.h @@ -21,11 +21,14 @@ QT_END_NAMESPACE class SendCoinsRecipient { public: - SendCoinsRecipient() : amount(0) { } + explicit SendCoinsRecipient() : amount(0) { } + explicit SendCoinsRecipient(const QString &addr, const QString &label, quint64 amount, const QString &message): + address(addr), label(label), amount(amount), message(message) {} QString address; QString label; qint64 amount; + QString message; // If from a payment request, paymentRequest.IsInitialized() will be true PaymentRequestPlus paymentRequest; |