7 class AddressTableModel;
8 class TransactionTableModel;
11 // Interface to Bitcoin network client
12 class ClientModel : public QObject
16 // The only reason that this constructor takes a wallet is because
17 // the global client settings are stored in the main wallet.
18 explicit ClientModel(CWallet *wallet, QObject *parent = 0);
20 OptionsModel *getOptionsModel();
22 int getNumConnections() const;
23 int getNumBlocks() const;
25 // Return true if client connected to testnet
26 bool isTestNet() const;
27 // Return true if core is doing initial block download
28 bool inInitialBlockDownload() const;
29 // Return conservative estimate of total number of blocks, or 0 if unknown
30 int getTotalBlocksEstimate() const;
32 QString formatFullVersion() const;
37 OptionsModel *optionsModel;
40 void numConnectionsChanged(int count);
41 void numBlocksChanged(int count);
43 // Asynchronous error notification
44 void error(const QString &title, const QString &message);
52 #endif // CLIENTMODEL_H