67 std::string sAddress = pthis->
address.toStdString();
68 std::string sLabel = pthis->label.toStdString();
69 std::string sMessage = pthis->message.toStdString();
70 std::string sPaymentRequest;
71 if (!fRead && pthis->paymentRequest.IsInitialized())
72 pthis->paymentRequest.SerializeToString(&sPaymentRequest);
73 std::string sAuthenticatedMerchant = pthis->authenticatedMerchant.toStdString();
76 nVersion = pthis->nVersion;
86 pthis->address = QString::fromStdString(sAddress);
87 pthis->label = QString::fromStdString(sLabel);
88 pthis->message = QString::fromStdString(sMessage);
89 if (!sPaymentRequest.empty())
90 pthis->paymentRequest.parse(QByteArray::fromRawData(sPaymentRequest.data(), sPaymentRequest.size()));
91 pthis->authenticatedMerchant = QString::fromStdString(sAuthenticatedMerchant);
114 TransactionCommitFailed
129 qint64 getBalance(
const CCoinControl *coinControl = NULL)
const;
130 qint64 getUnconfirmedBalance()
const;
131 qint64 getImmatureBalance()
const;
132 bool haveWatchOnly()
const;
133 qint64 getWatchBalance()
const;
134 qint64 getWatchUnconfirmedBalance()
const;
135 qint64 getWatchImmatureBalance()
const;
136 EncryptionStatus getEncryptionStatus()
const;
140 bool validateAddress(
const QString &address);
157 bool setWalletEncrypted(
bool encrypted,
const SecureString &passphrase);
162 bool backupWallet(
const QString &filename);
186 bool getPubKey(
const CKeyID &address,
CPubKey& vchPubKeyOut)
const;
187 void getOutputs(
const std::vector<COutPoint>& vOutpoints, std::vector<COutput>& vOutputs);
188 bool isSpent(
const COutPoint& outpoint)
const;
189 void listCoins(std::map<QString, std::vector<COutput> >& mapCoins)
const;
191 bool isLockedCoin(
uint256 hash,
unsigned int n)
const;
194 void listLockedCoins(std::vector<COutPoint>& vOutpts);
196 void loadReceiveRequests(std::vector<std::string>& vReceiveRequests);
197 bool saveReceiveRequest(
const std::string &sAddress,
const int64_t nId,
const std::string &sRequest);
225 void subscribeToCoreSignals();
226 void unsubscribeFromCoreSignals();
227 void checkBalanceChanged();
231 void balanceChanged(qint64 balance, qint64 unconfirmedBalance, qint64 immatureBalance,
232 qint64 watchOnlyBalance, qint64 watchUnconfBalance, qint64 watchImmatureBalance);
235 void encryptionStatusChanged(
int status);
240 void requireUnlock();
243 void message(
const QString &title,
const QString &message,
unsigned int style);
249 void showProgress(
const QString &title,
int nProgress);
252 void notifyWatchonlyChanged(
bool fHaveWatchonly);
258 void updateTransaction(
const QString &hash,
int status);
260 void updateAddressBook(
const QString &address,
const QString &label,
bool isMine,
const QString &purpose,
int status);
262 void updateWatchOnlyFlag(
bool fHaveWatchonly);
264 void pollBalanceChanged();
269 #endif // WALLETMODEL_H
bool processingQueuedTransactions()
Model for list of recently generated payment requests / anoncoin: URIs.
TransactionTableModel * transactionTableModel
RecentRequestsTableModel * recentRequestsTableModel
PaymentRequestPlus paymentRequest
UnlockContext & operator=(const UnlockContext &rhs)
void setProcessingQueuedTransactions(bool value)
qint64 cachedImmatureBalance
static const int CURRENT_VERSION
qint64 cachedUnconfirmedBalance
#define IMPLEMENT_SERIALIZE(statements)
bool fProcessingQueuedTransactions
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)
qint64 cachedWatchOnlyBalance
bool fForceCheckBalanceChanged
qint64 cachedWatchUnconfBalance
Interface from Qt to configuration data structure for Anoncoin client.
SendCoinsRecipient(const QString &addr, const QString &label, quint64 amount, const QString &message)
Interface to Anoncoin 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.
qint64 cachedWatchImmatureBalance
AddressTableModel * addressTableModel
QString authenticatedMerchant