aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/wallet2_api.h
diff options
context:
space:
mode:
authorIlya Kitaev <mbg033@gmail.com>2016-04-20 13:01:00 +0300
committerIlya Kitaev <mbg033@gmail.com>2016-06-23 15:50:17 +0300
commit12345d382c3ae4d751119edde4464397f93d96b3 (patch)
treead9745cc226ce88c1fc4dd0182e6aec6d0259b82 /src/wallet/wallet2_api.h
parentTransactionInfo / TransactionHistory APIs design (diff)
downloadmonero-12345d382c3ae4d751119edde4464397f93d96b3.tar.xz
api implementation splitted over separate files
Diffstat (limited to 'src/wallet/wallet2_api.h')
-rw-r--r--src/wallet/wallet2_api.h8
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;
};
/**