WalletListener::moneySpent test

This commit is contained in:
Ilya Kitaev 2016-05-16 13:11:44 +03:00
parent 060bb62e29
commit 64348a2d11
3 changed files with 173 additions and 64 deletions

View file

@ -50,6 +50,12 @@ namespace {
struct Wallet2CallbackImpl : public tools::i_wallet2_callback
{
Wallet2CallbackImpl()
: m_listener(nullptr)
{
}
~Wallet2CallbackImpl()
{
@ -109,6 +115,8 @@ struct Wallet2CallbackImpl : public tools::i_wallet2_callback
Wallet::~Wallet() {}
WalletListener::~WalletListener() {}
string Wallet::displayAmount(uint64_t amount)
{
return cryptonote::print_money(amount);

View file

@ -106,8 +106,8 @@ struct TransactionHistory
struct WalletListener
{
virtual ~WalletListener() = 0;
virtual void moneySpent(const std::string &txId, uint64_t amount);
virtual void moneyReceived(const std::string &txId, uint64_t amount);
virtual void moneySpent(const std::string &txId, uint64_t amount) = 0;
virtual void moneyReceived(const std::string &txId, uint64_t amount) = 0;
// TODO: on_skip_transaction;
};