diff options
| author | Jonas Schnelli <[email protected]> | 2013-08-30 20:04:48 +0200 |
|---|---|---|
| committer | Wladimir J. van der Laan <[email protected]> | 2013-08-31 12:41:47 +0200 |
| commit | 9e8904f6aeb6e98b4781fcf408b0a2bee550051d (patch) | |
| tree | 233f2785fa70fcc5f3d7d0661281d7c1d98fe2d0 /src/qt/walletmodel.h | |
| parent | Merge pull request #2955 from laanwj/2013_08_htmlescape (diff) | |
| download | discoin-9e8904f6aeb6e98b4781fcf408b0a2bee550051d.tar.xz discoin-9e8904f6aeb6e98b4781fcf408b0a2bee550051d.zip | |
qt: Display txfee in first sendCoinsDialog message box
Signed-off-by: Jonas Schnelli <[email protected]>
Diffstat (limited to 'src/qt/walletmodel.h')
| -rw-r--r-- | src/qt/walletmodel.h | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/src/qt/walletmodel.h b/src/qt/walletmodel.h index 8cba10f5d..f8eee4524 100644 --- a/src/qt/walletmodel.h +++ b/src/qt/walletmodel.h @@ -4,12 +4,15 @@ #include <QObject> #include "allocators.h" /* for SecureString */ +#include "wallet.h" +#include "walletmodeltransaction.h" #include "paymentrequestplus.h" class OptionsModel; class AddressTableModel; class TransactionTableModel; class CWallet; +class WalletModelTransaction; QT_BEGIN_NAMESPACE class QTimer; @@ -74,15 +77,16 @@ public: // Return status record for SendCoins, contains error id + information struct SendCoinsReturn { - SendCoinsReturn(StatusCode status, - qint64 fee=0): - status(status), fee(fee) {} + SendCoinsReturn(StatusCode status): + status(status) {} StatusCode status; - qint64 fee; // is used in case status is "AmountWithFeeExceedsBalance" }; + // prepare transaction for getting txfee before sending coins + SendCoinsReturn prepareTransaction(WalletModelTransaction &transaction); + // Send coins to a list of recipients - SendCoinsReturn sendCoins(const QList<SendCoinsRecipient> &recipients); + SendCoinsReturn sendCoins(WalletModelTransaction &transaction); // Wallet encryption bool setWalletEncrypted(bool encrypted, const SecureString &passphrase); |