Fetch ZEC Price for display purposes

This commit is contained in:
Aditya Kulkarni
2018-10-18 11:15:49 -07:00
parent 6f79abcc14
commit 1b2335c0d4
9 changed files with 108 additions and 9 deletions

View File

@@ -31,6 +31,9 @@ public:
const QString& getZcashdConfLocation() { return confLocation; }
void setZECPrice(double p) { zecPrice = p; }
double getZECPrice() { return zecPrice; }
private:
// This class can only be accessed through Settings::getInstance()
Settings() = default;
@@ -48,6 +51,8 @@ private:
bool _isTestnet = false;
bool _isSyncing = false;
double zecPrice = 0.0;
};
#endif // SETTINGS_H