Hush full node GUI wallet
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
#ifndef SETTINGS_H
|
|
|
|
#define SETTINGS_H
|
|
|
|
|
|
|
|
#include "precompiled.h"
|
|
|
|
|
|
|
|
class Settings
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
static Settings* init();
|
|
|
|
static Settings* getInstance();
|
|
|
|
|
|
|
|
QString getUsernamePassword();
|
|
|
|
QString getHost();
|
|
|
|
QString getPort();
|
|
|
|
|
|
|
|
void setDefaultPort(int port) {overridePort = QString::number(port);}
|
|
|
|
|
|
|
|
double fees() { return 0.0001; }
|
|
|
|
void loadFromSettings();
|
|
|
|
void loadFromFile();
|
|
|
|
|
|
|
|
bool isTestnet();
|
|
|
|
void setTestnet(bool isTestnet);
|
|
|
|
|
|
|
|
bool isSyncing();
|
|
|
|
void setSyncing(bool syncing);
|
|
|
|
|
|
|
|
private:
|
|
|
|
// This class can only be accessed through Settings::getInstance()
|
|
|
|
Settings() = default;
|
|
|
|
|
|
|
|
static Settings* instance;
|
|
|
|
|
|
|
|
QString host;
|
|
|
|
QString port;
|
|
|
|
QString username;
|
|
|
|
QString password;
|
|
|
|
|
|
|
|
QString overridePort;
|
|
|
|
|
|
|
|
bool _isTestnet = false;
|
|
|
|
bool _isSyncing = false;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // SETTINGS_H
|