aboutsummaryrefslogtreecommitdiff
path: root/src/qt/walletmodel.h
diff options
context:
space:
mode:
authorWladimir J. van der Laan <laanwj@gmail.com>2011-08-08 17:38:17 +0200
committerWladimir J. van der Laan <laanwj@gmail.com>2011-08-08 17:38:17 +0200
commitb0849613bf02b61774b23804c8feed54aa88474a (patch)
treee5a9c69413609d241f69b743394c733192685aff /src/qt/walletmodel.h
parentfb390d3505c9d0ad8f88cc9a26a2f8190254eda5 (diff)
downloadbitcoin-b0849613bf02b61774b23804c8feed54aa88474a.tar.xz
QtUI code cleanup / comment improvements
Diffstat (limited to 'src/qt/walletmodel.h')
-rw-r--r--src/qt/walletmodel.h12
1 files changed, 5 insertions, 7 deletions
diff --git a/src/qt/walletmodel.h b/src/qt/walletmodel.h
index c989e7fbbe..bb1c6e85d3 100644
--- a/src/qt/walletmodel.h
+++ b/src/qt/walletmodel.h
@@ -15,7 +15,7 @@ struct SendCoinsRecipient
qint64 amount;
};
-// Interface to a Bitcoin wallet
+// Interface to Bitcoin wallet from Qt view code
class WalletModel : public QObject
{
Q_OBJECT
@@ -47,9 +47,7 @@ public:
// Check address for validity
bool validateAddress(const QString &address);
- // Return status record for SendCoins
- // fee is used in case status is "AmountWithFeeExceedsBalance"
- // hex is filled with the transaction hash if status is "OK"
+ // Return status record for SendCoins, contains error id + information
struct SendCoinsReturn
{
SendCoinsReturn(StatusCode status,
@@ -57,11 +55,11 @@ public:
QString hex=QString()):
status(status), fee(fee), hex(hex) {}
StatusCode status;
- qint64 fee;
- QString hex;
+ qint64 fee; // is used in case status is "AmountWithFeeExceedsBalance"
+ QString hex; // is filled with the transaction hash if status is "OK"
};
- // Send coins to list of recipients
+ // Send coins to a list of recipients
SendCoinsReturn sendCoins(const QList<SendCoinsRecipient> &recipients);
private:
CWallet *wallet;