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.

45 lines
838 B

6 years ago
#ifndef SETTINGS_H
#define SETTINGS_H
#include "precompiled.h"
6 years ago
class Settings
{
public:
static Settings* init();
static Settings* getInstance();
6 years ago
QString getUsernamePassword();
QString getHost();
QString getPort();
void setDefaultPort(int port) {overridePort = QString::number(port);}
6 years ago
double fees() { return 0.0001; }
void loadFromSettings();
void loadFromFile();
bool isTestnet();
void setTestnet(bool isTestnet);
bool isSyncing();
void setSyncing(bool syncing);
6 years ago
private:
// This class can only be accessed through Settings::getInstance()
Settings() = default;
static Settings* instance;
6 years ago
QString host;
QString port;
QString username;
QString password;
QString overridePort;
bool _isTestnet = false;
bool _isSyncing = false;
6 years ago
};
#endif // SETTINGS_H