66 std::string sAddress = pthis->
address.toStdString();
67 std::string sLabel = pthis->label.toStdString();
68 std::string sMessage = pthis->message.toStdString();
69 std::string sPaymentRequest;
70 if (!fRead && pthis->paymentRequest.IsInitialized())
71 pthis->paymentRequest.SerializeToString(&sPaymentRequest);
72 std::string sAuthenticatedMerchant = pthis->authenticatedMerchant.toStdString();
75 nVersion = pthis->nVersion;
85 pthis->address = QString::fromStdString(sAddress);
86 pthis->label = QString::fromStdString(sLabel);
87 pthis->message = QString::fromStdString(sMessage);
88 if (!sPaymentRequest.empty())
89 pthis->paymentRequest.parse(QByteArray::fromRawData(sPaymentRequest.data(), sPaymentRequest.size()));
90 pthis->authenticatedMerchant = QString::fromStdString(sAuthenticatedMerchant);
113 TransactionCommitFailed
128 qint64 getBalance(
const CCoinControl *coinControl = NULL)
const;
129 qint64 getUnconfirmedBalance()
const;
130 qint64 getImmatureBalance()
const;
131 int getNumTransactions()
const;
132 EncryptionStatus getEncryptionStatus()
const;
135 bool validateAddress(
const QString &address);
152 bool setWalletEncrypted(
bool encrypted,
const SecureString &passphrase);
157 bool backupWallet(
const QString &filename);
181 bool getPubKey(
const CKeyID &address,
CPubKey& vchPubKeyOut)
const;
182 void getOutputs(
const std::vector<COutPoint>& vOutpoints, std::vector<COutput>& vOutputs);
183 bool isSpent(
const COutPoint& outpoint)
const;
184 void listCoins(std::map<QString, std::vector<COutput> >& mapCoins)
const;
186 bool isLockedCoin(
uint256 hash,
unsigned int n)
const;
189 void listLockedCoins(std::vector<COutPoint>& vOutpts);
191 void loadReceiveRequests(std::vector<std::string>& vReceiveRequests);
192 bool saveReceiveRequest(
const std::string &sAddress,
const int64_t nId,
const std::string &sRequest);
215 void subscribeToCoreSignals();
216 void unsubscribeFromCoreSignals();
217 void checkBalanceChanged();
221 void balanceChanged(qint64 balance, qint64 unconfirmedBalance, qint64 immatureBalance);
224 void numTransactionsChanged(
int count);
227 void encryptionStatusChanged(
int status);
232 void requireUnlock();
235 void message(
const QString &title,
const QString &message,
unsigned int style);
241 void showProgress(
const QString &title,
int nProgress);
247 void updateTransaction(
const QString &hash,
int status);
249 void updateAddressBook(
const QString &address,
const QString &label,
bool isMine,
const QString &purpose,
int status);
251 void pollBalanceChanged();
254 #endif // WALLETMODEL_H
Model for list of recently generated payment requests / bitcoin: URIs.
TransactionTableModel * transactionTableModel
RecentRequestsTableModel * recentRequestsTableModel
PaymentRequestPlus paymentRequest
UnlockContext & operator=(const UnlockContext &rhs)
qint64 cachedImmatureBalance
qint64 cachedNumTransactions
static const int CURRENT_VERSION
qint64 cachedUnconfirmedBalance
#define IMPLEMENT_SERIALIZE(statements)
std::basic_string< char, std::char_traits< char >, secure_allocator< char > > SecureString
An encapsulated public key.
OptionsModel * optionsModel
EncryptionStatus cachedEncryptionStatus
An outpoint - a combination of a transaction hash and an index n into its vout.
UI model for the transaction table of a wallet.
Qt model of the address book in the core.
UnlockContext(const UnlockContext &obj)
Interface from Qt to configuration data structure for Bitcoin client.
SendCoinsRecipient(const QString &addr, const QString &label, quint64 amount, const QString &message)
Interface to Bitcoin wallet from Qt view code.
SendCoinsReturn(StatusCode status=OK)
A reference to a CKey: the Hash160 of its serialized public key.
A CWallet is an extension of a keystore, which also maintains a set of transactions and balances...
Data model for a walletmodel transaction.
AddressTableModel * addressTableModel
QString authenticatedMerchant