Browse Source

cleanup

import_zecw
adityapk00 6 years ago
parent
commit
873eb21b4e
  1. 4
      src/settings.cpp
  2. 56
      src/settings.h

4
src/settings.cpp

@ -155,7 +155,7 @@ QString Settings::getZECUSDDisplayFormat(double bal) {
const QString Settings::txidStatusMessage = QString("Tx submitted (right click to copy) txid:"); const QString Settings::txidStatusMessage = QString("Tx submitted (right click to copy) txid:");
const QString Settings::getTokenName() { QString Settings::getTokenName() {
if (Settings::getInstance()->isTestnet()) { if (Settings::getInstance()->isTestnet()) {
return "TAZ"; return "TAZ";
} else { } else {
@ -163,7 +163,7 @@ const QString Settings::getTokenName() {
} }
} }
const QString Settings::getDonationAddr(bool sapling) { QString Settings::getDonationAddr(bool sapling) {
if (Settings::getInstance()->isTestnet()) if (Settings::getInstance()->isTestnet())
if (sapling) if (sapling)
return "ztestsapling1wn6889vznyu42wzmkakl2effhllhpe4azhu696edg2x6me4kfsnmqwpglaxzs7tmqsq7kudemp5"; return "ztestsapling1wn6889vznyu42wzmkakl2effhllhpe4azhu696edg2x6me4kfsnmqwpglaxzs7tmqsq7kudemp5";

56
src/settings.h

@ -19,38 +19,38 @@ public:
static Settings* init(); static Settings* init();
static Settings* getInstance(); static Settings* getInstance();
Config getSettings(); Config getSettings();
void saveSettings(const QString& host, const QString& port, const QString& username, const QString& password); void saveSettings(const QString& host, const QString& port, const QString& username, const QString& password);
bool isTestnet(); bool isTestnet();
void setTestnet(bool isTestnet); void setTestnet(bool isTestnet);
bool isSaplingAddress(QString addr); bool isSaplingAddress(QString addr);
bool isSproutAddress(QString addr); bool isSproutAddress(QString addr);
bool isZAddress(QString addr); bool isZAddress(QString addr);
bool isSyncing(); bool isSyncing();
void setSyncing(bool syncing); void setSyncing(bool syncing);
QString getExecName() { return _executable; } QString getExecName() { return _executable; }
void setExecName(QString name) { _executable = name; } void setExecName(QString name) { _executable = name; }
void setUseEmbedded(bool r) { _useEmbedded = r; } void setUseEmbedded(bool r) { _useEmbedded = r; }
bool useEmbedded() { return _useEmbedded; } bool useEmbedded() { return _useEmbedded; }
int getBlockNumber();
void setBlockNumber(int number);
bool getSaveZtxs();
void setSaveZtxs(bool save);
bool getAllowCustomFees();
void setAllowCustomFees(bool allow);
bool isSaplingActive(); int getBlockNumber();
void setBlockNumber(int number);
bool getSaveZtxs();
void setSaveZtxs(bool save);
bool getAllowCustomFees();
void setAllowCustomFees(bool allow);
bool isSaplingActive();
void setUsingZcashConf(QString confLocation); void setUsingZcashConf(QString confLocation);
const QString& getZcashdConfLocation() { return _confLocation; } const QString& getZcashdConfLocation() { return _confLocation; }
void setZECPrice(double p) { zecPrice = p; } void setZECPrice(double p) { zecPrice = p; }
double getZECPrice(); double getZECPrice();
@ -65,8 +65,8 @@ public:
static QString getZECDisplayFormat(double bal); static QString getZECDisplayFormat(double bal);
static QString getZECUSDDisplayFormat(double bal); static QString getZECUSDDisplayFormat(double bal);
static const QString getTokenName(); static QString getTokenName();
static const QString getDonationAddr(bool sapling); static QString getDonationAddr(bool sapling);
static double getMinerFee(); static double getMinerFee();
static double getZboardAmount(); static double getZboardAmount();

Loading…
Cancel
Save