aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/wallet2_api.h
diff options
context:
space:
mode:
authorIlya Kitaev <mbg033@gmail.com>2016-04-22 13:21:08 +0300
committerIlya Kitaev <mbg033@gmail.com>2016-04-22 13:21:08 +0300
commit02c9df5de247d6f8fb95e1b9272cef2b37be10f8 (patch)
treed12be2519202c6075f95d05b60190727bb8508c2 /src/wallet/wallet2_api.h
parenttransaction history api in progress (diff)
downloadmonero-02c9df5de247d6f8fb95e1b9272cef2b37be10f8.tar.xz
Wallet API : transaction history in progress
Diffstat (limited to 'src/wallet/wallet2_api.h')
-rw-r--r--src/wallet/wallet2_api.h29
1 files changed, 16 insertions, 13 deletions
diff --git a/src/wallet/wallet2_api.h b/src/wallet/wallet2_api.h
index 37d9ee86b..c4843d33f 100644
--- a/src/wallet/wallet2_api.h
+++ b/src/wallet/wallet2_api.h
@@ -56,17 +56,6 @@ struct PendingTransaction
virtual uint64_t fee() const = 0;
};
-struct TransactionInfo;
-struct TransactionHistory
-{
- virtual int count() const;
- virtual TransactionInfo * transaction(int index) const = 0;
- virtual TransactionInfo * transaction(const std::string &id) const = 0;
- virtual std::vector<TransactionInfo*> getAll() const = 0;
- virtual void refresh() = 0;
-};
-
-
/**
* @brief The TransactionInfo - interface for displaying transaction information
*/
@@ -76,16 +65,30 @@ struct TransactionInfo
Direction_In,
Direction_Out
};
-
+ virtual ~TransactionInfo() = 0;
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 std::string hash() const = 0;
virtual std::time_t timestamp() const = 0;
virtual std::string paymentId() const = 0;
};
+/**
+ * @brief The TransactionHistory - interface for displaying transaction history
+ */
+struct TransactionHistory
+{
+ virtual ~TransactionHistory() = 0;
+ virtual int count() const = 0;
+ virtual TransactionInfo * transaction(int index) const = 0;
+ virtual TransactionInfo * transaction(const std::string &id) const = 0;
+ virtual std::vector<TransactionInfo*> getAll() const = 0;
+ virtual void refresh() = 0;
+};
+
+
/**
* @brief Interface for wallet operations.