PRCYCoin  2.0.0.7rc1
P2P Digital Currency
walletmodeltransaction.h
Go to the documentation of this file.
1 // Copyright (c) 2011-2013 The Bitcoin developers
2 // Distributed under the MIT/X11 software license, see the accompanying
3 // file COPYING or http://www.opensource.org/licenses/mit-license.php.
4 
5 #ifndef BITCOIN_QT_WALLETMODELTRANSACTION_H
6 #define BITCOIN_QT_WALLETMODELTRANSACTION_H
7 
8 #include "walletmodel.h"
9 
10 #include "amount.h"
11 #include "primitives/transaction.h"
12 
13 #include <QObject>
14 
15 class SendCoinsRecipient;
16 
17 class CReserveKey;
18 class CWallet;
19 class CWalletTx;
20 
23 {
24 public:
25  explicit WalletModelTransaction(const QList<SendCoinsRecipient>& recipients);
27 
28  QList<SendCoinsRecipient> getRecipients();
29 
31  unsigned int getTransactionSize();
32 
33  void setTransactionFee(const CAmount& newFee);
35 
37 
38  void newPossibleKeyChange(CWallet* wallet);
40 
41 private:
42  const QList<SendCoinsRecipient> recipients;
46 };
47 
48 #endif // BITCOIN_QT_WALLETMODELTRANSACTION_H
WalletModelTransaction::newPossibleKeyChange
void newPossibleKeyChange(CWallet *wallet)
Definition: walletmodeltransaction.cpp:57
transaction.h
walletmodel.h
CReserveKey
A key allocated from the key pool.
Definition: wallet.h:679
WalletModelTransaction::getTransactionSize
unsigned int getTransactionSize()
Definition: walletmodeltransaction.cpp:33
WalletModelTransaction::getTotalTransactionAmount
CAmount getTotalTransactionAmount()
Definition: walletmodeltransaction.cpp:48
WalletModelTransaction::getTransactionFee
CAmount getTransactionFee()
Definition: walletmodeltransaction.cpp:38
WalletModelTransaction::WalletModelTransaction
WalletModelTransaction(const QList< SendCoinsRecipient > &recipients)
Definition: walletmodeltransaction.cpp:9
SendCoinsRecipient
Definition: walletmodel.h:46
WalletModelTransaction::setTransactionFee
void setTransactionFee(const CAmount &newFee)
Definition: walletmodeltransaction.cpp:43
CAmount
int64_t CAmount
Amount in PRCY (Can be negative)
Definition: amount.h:17
WalletModelTransaction::fee
CAmount fee
Definition: walletmodeltransaction.h:45
WalletModelTransaction::keyChange
CReserveKey * keyChange
Definition: walletmodeltransaction.h:44
WalletModelTransaction::walletTransaction
CWalletTx * walletTransaction
Definition: walletmodeltransaction.h:43
WalletModelTransaction::getTransaction
CWalletTx * getTransaction()
Definition: walletmodeltransaction.cpp:28
CWallet
A CWallet is an extension of a keystore, which also maintains a set of transactions and balances,...
Definition: wallet.h:243
CWalletTx
A transaction with a bunch of additional info that only the owner cares about.
Definition: wallet.h:792
WalletModelTransaction::recipients
const QList< SendCoinsRecipient > recipients
Definition: walletmodeltransaction.h:42
WalletModelTransaction::~WalletModelTransaction
~WalletModelTransaction()
Definition: walletmodeltransaction.cpp:17
WalletModelTransaction::getRecipients
QList< SendCoinsRecipient > getRecipients()
Definition: walletmodeltransaction.cpp:23
amount.h
WalletModelTransaction
Data model for a walletmodel transaction.
Definition: walletmodeltransaction.h:22
WalletModelTransaction::getPossibleKeyChange
CReserveKey * getPossibleKeyChange()
Definition: walletmodeltransaction.cpp:62