Browse Source

Includes: Do not include main.h from any other header

0.13
Jorge Timón 10 years ago
parent
commit
8a893c949b
  1. 2
      src/qt/addresstablemodel.cpp
  2. 1
      src/qt/paymentserver.cpp
  3. 1
      src/qt/sendcoinsdialog.cpp
  4. 1
      src/qt/signverifymessagedialog.cpp
  5. 3
      src/qt/transactionrecord.cpp
  6. 1
      src/test/rpc_wallet_tests.cpp
  7. 1
      src/txdb.cpp
  8. 6
      src/txdb.h
  9. 3
      src/wallet/rpcwallet.cpp
  10. 1
      src/wallet/wallet.cpp
  11. 5
      src/wallet/wallet.h
  12. 1
      src/wallet/walletdb.cpp

2
src/qt/addresstablemodel.cpp

@ -10,6 +10,8 @@
#include "base58.h" #include "base58.h"
#include "wallet/wallet.h" #include "wallet/wallet.h"
#include <boost/foreach.hpp>
#include <QFont> #include <QFont>
#include <QDebug> #include <QDebug>

1
src/qt/paymentserver.cpp

@ -10,6 +10,7 @@
#include "base58.h" #include "base58.h"
#include "chainparams.h" #include "chainparams.h"
#include "main.h"
#include "ui_interface.h" #include "ui_interface.h"
#include "util.h" #include "util.h"
#include "wallet/wallet.h" #include "wallet/wallet.h"

1
src/qt/sendcoinsdialog.cpp

@ -17,6 +17,7 @@
#include "base58.h" #include "base58.h"
#include "coincontrol.h" #include "coincontrol.h"
#include "main.h"
#include "ui_interface.h" #include "ui_interface.h"
#include "wallet/wallet.h" #include "wallet/wallet.h"

1
src/qt/signverifymessagedialog.cpp

@ -12,6 +12,7 @@
#include "base58.h" #include "base58.h"
#include "init.h" #include "init.h"
#include "main.h" // For strMessageMagic
#include "wallet/wallet.h" #include "wallet/wallet.h"
#include <string> #include <string>

3
src/qt/transactionrecord.cpp

@ -5,11 +5,14 @@
#include "transactionrecord.h" #include "transactionrecord.h"
#include "base58.h" #include "base58.h"
#include "main.h"
#include "timedata.h" #include "timedata.h"
#include "wallet/wallet.h" #include "wallet/wallet.h"
#include <stdint.h> #include <stdint.h>
#include <boost/foreach.hpp>
/* Return positive answer if transaction should be shown in list. /* Return positive answer if transaction should be shown in list.
*/ */
bool TransactionRecord::showTransaction(const CWalletTx &wtx) bool TransactionRecord::showTransaction(const CWalletTx &wtx)

1
src/test/rpc_wallet_tests.cpp

@ -6,6 +6,7 @@
#include "rpcclient.h" #include "rpcclient.h"
#include "base58.h" #include "base58.h"
#include "main.h"
#include "wallet/wallet.h" #include "wallet/wallet.h"
#include "test/test_bitcoin.h" #include "test/test_bitcoin.h"

1
src/txdb.cpp

@ -5,6 +5,7 @@
#include "txdb.h" #include "txdb.h"
#include "main.h"
#include "pow.h" #include "pow.h"
#include "uint256.h" #include "uint256.h"

6
src/txdb.h

@ -6,15 +6,17 @@
#ifndef BITCOIN_TXDB_H #ifndef BITCOIN_TXDB_H
#define BITCOIN_TXDB_H #define BITCOIN_TXDB_H
#include "coins.h"
#include "leveldbwrapper.h" #include "leveldbwrapper.h"
#include "main.h"
#include <map> #include <map>
#include <string> #include <string>
#include <utility> #include <utility>
#include <vector> #include <vector>
class CCoins; class CBlockFileInfo;
class CBlockIndex;
class CDiskTxPos;
class uint256; class uint256;
//! -dbcache default (MiB) //! -dbcache default (MiB)

3
src/wallet/rpcwallet.cpp

@ -6,10 +6,11 @@
#include "amount.h" #include "amount.h"
#include "base58.h" #include "base58.h"
#include "core_io.h" #include "core_io.h"
#include "rpcserver.h"
#include "init.h" #include "init.h"
#include "main.h"
#include "net.h" #include "net.h"
#include "netbase.h" #include "netbase.h"
#include "rpcserver.h"
#include "timedata.h" #include "timedata.h"
#include "util.h" #include "util.h"
#include "utilmoneystr.h" #include "utilmoneystr.h"

1
src/wallet/wallet.cpp

@ -8,6 +8,7 @@
#include "base58.h" #include "base58.h"
#include "checkpoints.h" #include "checkpoints.h"
#include "coincontrol.h" #include "coincontrol.h"
#include "main.h"
#include "net.h" #include "net.h"
#include "script/script.h" #include "script/script.h"
#include "script/sign.h" #include "script/sign.h"

5
src/wallet/wallet.h

@ -9,10 +9,11 @@
#include "amount.h" #include "amount.h"
#include "key.h" #include "key.h"
#include "keystore.h" #include "keystore.h"
#include "main.h"
#include "primitives/block.h" #include "primitives/block.h"
#include "primitives/transaction.h" #include "primitives/transaction.h"
#include "tinyformat.h"
#include "ui_interface.h" #include "ui_interface.h"
#include "utilstrencodings.h"
#include "validationinterface.h" #include "validationinterface.h"
#include "wallet/crypter.h" #include "wallet/crypter.h"
#include "wallet/wallet_ismine.h" #include "wallet/wallet_ismine.h"
@ -49,10 +50,12 @@ static const CAmount nHighTransactionMaxFeeWarning = 100 * nHighTransactionFeeWa
static const unsigned int MAX_FREE_TRANSACTION_CREATE_SIZE = 1000; static const unsigned int MAX_FREE_TRANSACTION_CREATE_SIZE = 1000;
class CAccountingEntry; class CAccountingEntry;
class CBlockIndex;
class CCoinControl; class CCoinControl;
class COutput; class COutput;
class CReserveKey; class CReserveKey;
class CScript; class CScript;
class CTxMemPool;
class CWalletTx; class CWalletTx;
/** (client) version numbers for particular wallet features */ /** (client) version numbers for particular wallet features */

1
src/wallet/walletdb.cpp

@ -6,6 +6,7 @@
#include "wallet/walletdb.h" #include "wallet/walletdb.h"
#include "base58.h" #include "base58.h"
#include "main.h"
#include "protocol.h" #include "protocol.h"
#include "serialize.h" #include "serialize.h"
#include "sync.h" #include "sync.h"

Loading…
Cancel
Save