aboutsummaryrefslogtreecommitdiff
path: root/src/qt/walletmodel.h
diff options
context:
space:
mode:
authorWladimir J. van der Laan <laanwj@gmail.com>2013-10-18 13:44:27 +0200
committerWladimir J. van der Laan <laanwj@gmail.com>2013-10-23 09:15:25 +0200
commit03535acd053fc0597a9e1fd76c5c7b1f54f5c1df (patch)
tree98b137a8f4efc3a1ddd46d5aa840515c22261491 /src/qt/walletmodel.h
parent82095923bb71a670aa67ad15987bb6d4d7726abe (diff)
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.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/qt/walletmodel.h b/src/qt/walletmodel.h
index 6abcdaf8cb..2e99eaddcb 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;