src/connection.cpp
/**
 * Load connection settings from the UI, which indicates an unknown, external zcashd
 */
Load connection settings from the UI, which indicates an unknown, external zcashd
Load connection settings from the UI which indicates an unknown external zcashd
std::shared_ptr<ConnectionConfig> ConnectionLoader::loadFromSettings() {
    QSettings s;
    auto host        = s.value("connection/host").toString();
    auto port        = s.value("connection/port").toString();
    auto username    = s.value("connection/rpcuser").toString();
    auto password    = s.value("connection/rpcpassword").toString();    
    if (username.isEmpty() || password.isEmpty())
        return nullptr;
    auto uiConfig = new ConnectionConfig{ host, port, username, password, false, false, "", "", ConnectionType::UISettingsZCashD};
    return std::shared_ptr<ConnectionConfig>(uiConfig);
}
std :: shared_ptr < ConnectionConfig > ConnectionLoader :: loadFromSettings ( ) { QSettings s ; auto host = s . value ( " " ) . toString ( ) ; auto port = s . value ( " " ) . toString ( ) ; auto username = s . value ( " " ) . toString ( ) ; auto password = s . value ( " " ) . toString ( ) ; if ( username . isEmpty ( ) || password . isEmpty ( ) ) return nullptr ; auto uiConfig = new ConnectionConfig { host , port , username , password , false , false , " " , " " , ConnectionType :: UISettingsZCashD } ; return std :: shared_ptr < ConnectionConfig > ( uiConfig ) ; }
Load connection settings from the UI, which indicates an unknown, external zcashd
Load connection settings from the UI which indicates an unknown external zcashd
// Load from the QT Settings. 