diff options
author | Ilya Kitaev <mbg033@gmail.com> | 2016-04-20 13:01:00 +0300 |
---|---|---|
committer | Ilya Kitaev <mbg033@gmail.com> | 2016-04-20 13:01:00 +0300 |
commit | f83f3cbd9647b679e5c9460970b99bd2e9141858 (patch) | |
tree | 6ddcaa6888d221b98ecd0450f4b0a39428006b7a /src/wallet/wallet2_api.h | |
parent | TransactionInfo / TransactionHistory APIs design (diff) | |
download | monero-f83f3cbd9647b679e5c9460970b99bd2e9141858.tar.xz |
api implementation splitted over separate files
Diffstat (limited to '')
-rw-r--r-- | src/wallet/wallet2_api.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/wallet/wallet2_api.h b/src/wallet/wallet2_api.h index a675d8b31..cb0211c4a 100644 --- a/src/wallet/wallet2_api.h +++ b/src/wallet/wallet2_api.h @@ -33,6 +33,7 @@ #include <string> #include <vector> +#include <ctime> // Public interface for libwallet library namespace Bitmonero { @@ -62,6 +63,8 @@ struct TransactionHistory virtual TransactionInfo * transaction(int index) const = 0; virtual TransactionInfo * transaction(const std::string &id) const = 0; virtual std::vector<TransactionInfo*> getAll() const = 0; + // TODO: + // refresh(); }; @@ -75,13 +78,14 @@ struct TransactionInfo Direction_Out }; + virtual int direction() const = 0; virtual bool isHold() const = 0; virtual bool isFailed() const = 0; virtual uint64_t amount() const = 0; virtual uint64_t fee() const = 0; virtual std::string address() const = 0; - virtual int direction() const = 0; - // TODO + virtual std::time_t timestamp() const = 0; + virtual std::string paymentId() const = 0; }; /** |