Hush lite wallet https://faq.hush.is/sdl
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.
 
 
 
 
 
 

41 lines
760 B

#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);
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;
};
#endif // SETTINGS_H