fix balance display, display number of transactions
[novacoin.git] / gui / include / clientmodel.h
1 #ifndef CLIENTMODEL_H
2 #define CLIENTMODEL_H
3
4 #include <QObject>
5
6 class ClientModel : public QObject
7 {
8     Q_OBJECT
9 public:
10     explicit ClientModel(QObject *parent = 0);
11
12     qint64 getBalance();
13     QString getAddress();
14     int getNumConnections();
15     int getNumBlocks();
16     int getNumTransactions();
17
18 signals:
19     void balanceChanged(qint64 balance);
20     void addressChanged(const QString &address);
21     void numConnectionsChanged(int count);
22     void numBlocksChanged(int count);
23     void numTransactionsChanged(int count);
24
25 public slots:
26
27 private slots:
28     void update();
29 };
30
31 #endif // CLIENTMODEL_H