Show unconfirmed balance on overview page
[novacoin.git] / src / qt / transactionrecord.h
index a7f6537..0050c87 100644 (file)
@@ -1,10 +1,13 @@
 #ifndef TRANSACTIONRECORD_H
 #define TRANSACTIONRECORD_H
 
-#include "main.h"
+#include "uint256.h"
 
 #include <QList>
 
+class CWallet;
+class CWalletTx;
+
 class TransactionStatus
 {
 public:
@@ -84,7 +87,7 @@ public:
     /* Decompose CWallet transaction to model transaction records.
      */
     static bool showTransaction(const CWalletTx &wtx);
-    static QList<TransactionRecord> decomposeTransaction(const CWalletTx &wtx);
+    static QList<TransactionRecord> decomposeTransaction(const CWallet *wallet, const CWalletTx &wtx);
 
     /* Fixed */
     uint256 hash;
@@ -100,6 +103,9 @@ public:
     /* Status: can change with block chain update */
     TransactionStatus status;
 
+    /* Return the unique identifier for this transaction (part) */
+    std::string getTxID();
+
     /* Update status from wallet tx.
      */
     void updateStatus(const CWalletTx &wtx);