QtUI code cleanup / comment improvements
[novacoin.git] / src / qt / clientmodel.h
index 6c2c275..1538705 100644 (file)
@@ -12,14 +12,12 @@ QT_BEGIN_NAMESPACE
 class QDateTime;
 QT_END_NAMESPACE
 
-// Interface to Bitcoin network client
+// Model for Bitcoin network client
 class ClientModel : public QObject
 {
     Q_OBJECT
 public:
-    // The only reason that this constructor takes a wallet is because
-    // the global client settings are stored in the main wallet.
-    explicit ClientModel(CWallet *wallet, QObject *parent = 0);
+    explicit ClientModel(OptionsModel *optionsModel, QObject *parent = 0);
 
     OptionsModel *getOptionsModel();
 
@@ -38,10 +36,11 @@ public:
     QString formatFullVersion() const;
 
 private:
-    CWallet *wallet;
-
     OptionsModel *optionsModel;
 
+    int cachedNumConnections;
+    int cachedNumBlocks;
+
 signals:
     void numConnectionsChanged(int count);
     void numBlocksChanged(int count);