Implement filter row instead of tabs, allows for more expressive filters
[novacoin.git] / src / qt / transactionrecord.h
index c082fff..c196be2 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:
@@ -59,6 +62,9 @@ public:
         SendToSelf
     };
 
+    /* Number of confirmation needed for transaction */
+    static const int NumConfirmations = 6;
+
     TransactionRecord():
             hash(), time(0), type(Other), address(""), debit(0), credit(0), idx(0)
     {
@@ -81,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;