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 core is doing initial block download
26 bool inInitialBlockDownload() const;
27 // Return conservative estimate of total number of blocks, or 0 if unknown
28 int getTotalBlocksEstimate() const;
33 OptionsModel *optionsModel;
36 void numConnectionsChanged(int count);
37 void numBlocksChanged(int count);
39 // Asynchronous error notification
40 void error(const QString &title, const QString &message);
48 #endif // CLIENTMODEL_H