7 class AddressTableModel;
8 class TransactionTableModel;
15 // Interface to Bitcoin network client
16 class ClientModel : public QObject
20 // The only reason that this constructor takes a wallet is because
21 // the global client settings are stored in the main wallet.
22 explicit ClientModel(CWallet *wallet, QObject *parent = 0);
24 OptionsModel *getOptionsModel();
26 int getNumConnections() const;
27 int getNumBlocks() const;
29 QDateTime getLastBlockDate() const;
31 // Return true if client connected to testnet
32 bool isTestNet() const;
33 // Return true if core is doing initial block download
34 bool inInitialBlockDownload() const;
35 // Return conservative estimate of total number of blocks, or 0 if unknown
36 int getTotalBlocksEstimate() const;
38 QString formatFullVersion() const;
43 OptionsModel *optionsModel;
46 void numConnectionsChanged(int count);
47 void numBlocksChanged(int count);
49 // Asynchronous error notification
50 void error(const QString &title, const QString &message);
58 #endif // CLIENTMODEL_H