Skip to content
Permalink
Browse files

Merge pull request #1542

60fe1b6 Add parse_uri to wallet2_api (MoroccanMalinois)
  • Loading branch information...
fluffypony committed Jan 9, 2017
2 parents 5902149 + 60fe1b6 commit c6ec93962689393291df0ac89267139f5665a44e
Showing with 8 additions and 0 deletions.
  1. +5 −0 src/wallet/api/wallet.cpp
  2. +1 −0 src/wallet/api/wallet.h
  3. +2 −0 src/wallet/wallet2_api.h
@@ -1087,6 +1087,11 @@ void WalletImpl::doInit(const string &daemon_address, uint64_t upper_transaction

}

bool WalletImpl::parse_uri(const std::string &uri, std::string &address, std::string &payment_id, uint64_t &amount, std::string &tx_description, std::string &recipient_name, std::vector<std::string> &unknown_parameters, std::string &error)
{
return m_wallet->parse_uri(uri, address, payment_id, amount, tx_description, recipient_name, unknown_parameters, error);
}

} // namespace

namespace Bitmonero = Monero;
@@ -109,6 +109,7 @@ class WalletImpl : public Wallet
virtual bool verifySignedMessage(const std::string &message, const std::string &address, const std::string &signature) const;
virtual void startRefresh();
virtual void pauseRefresh();
virtual bool parse_uri(const std::string &uri, std::string &address, std::string &payment_id, uint64_t &amount, std::string &tx_description, std::string &recipient_name, std::vector<std::string> &unknown_parameters, std::string &error);

private:
void clearStatus();
@@ -469,6 +469,8 @@ struct Wallet
* \return true if the signature verified, false otherwise
*/
virtual bool verifySignedMessage(const std::string &message, const std::string &addres, const std::string &signature) const = 0;

virtual bool parse_uri(const std::string &uri, std::string &address, std::string &payment_id, uint64_t &amount, std::string &tx_description, std::string &recipient_name, std::vector<std::string> &unknown_parameters, std::string &error) = 0;
};

/**

0 comments on commit c6ec939

Please sign in to comment.
You can’t perform that action at this time.