Secure settings 2

This commit is contained in:
pokamest 2022-08-05 14:31:12 +03:00
parent 870cb26e01
commit 71b57bfed1
7 changed files with 110 additions and 35 deletions

View file

@ -8,15 +8,14 @@
const char Settings::cloudFlareNs1[] = "1.1.1.1";
const char Settings::cloudFlareNs2[] = "1.0.0.1";
SecureFormat Settings::m_secureFormat;
//SecureFormat Settings::m_secureFormat;
Settings::Settings(QObject* parent) :
QObject(parent),
m_settings(m_secureFormat.format(), QSettings::UserScope,
ORGANIZATION_NAME, APPLICATION_NAME, this)
m_settings(ORGANIZATION_NAME, APPLICATION_NAME, this)
{
qDebug() << "Settings::Settings()" << this;
qDebug() << "Settings::Settings()" << m_settings.fileName();
// qDebug() << "Settings::Settings()" << m_settings.fileName();
// Import old settings
if (serversCount() == 0) {
QString user = m_settings.value("Server/userName").toString();