mirror of
https://github.com/AskDavis/Casinotest.git
synced 2026-01-01 05:05:57 -08:00
45 lines
991 B
C++
45 lines
991 B
C++
#ifndef INFOPAGE_H
|
|
#define INFOPAGE_H
|
|
|
|
#include <QDialog>
|
|
|
|
class WalletModel;
|
|
class ClientModel;
|
|
class GUIExchangesWidget;
|
|
|
|
namespace Ui {
|
|
class InfoPage;
|
|
}
|
|
|
|
class InfoPage : public QDialog
|
|
{
|
|
Q_OBJECT
|
|
|
|
public slots:
|
|
/** Set number of connections shown in the UI */
|
|
void setNumConnections(int count);
|
|
/** Set number of blocks shown in the UI */
|
|
void setNumBlocks(int count, int countOfPeers);
|
|
/** Set number of transactions shown in the UI */
|
|
void setNumTransactions(int count);
|
|
/** Set Fiat coin value */
|
|
void setCoinFiatValue(const QString coinValue);
|
|
|
|
public:
|
|
explicit InfoPage(QWidget *parent = 0);
|
|
void setWalletModel(WalletModel *model);
|
|
void setClientModel(ClientModel *model);
|
|
~InfoPage();
|
|
|
|
private:
|
|
Ui::InfoPage *ui;
|
|
WalletModel *walletModel;
|
|
ClientModel *clientModel;
|
|
GUIExchangesWidget* exchangesWidget;
|
|
|
|
void createExchangesWidget();
|
|
double GetNetworkHashRate(int lookup, int height);
|
|
};
|
|
|
|
#endif // INFOPAGE_H
|