@@ -148,15 +148,6 @@ class DigidocConf final: public digidoc::XmlConfCurrent
148148#ifdef Q_OS_MAC
149149 std::string TSLCache () const final
150150 { return QStandardPaths::writableLocation (QStandardPaths::AppLocalDataLocation).toStdString (); }
151-
152- void setProxyHost ( const std::string &host ) final
153- { Settings::PROXY_HOST = host; }
154- void setProxyPort ( const std::string &port ) final
155- { Settings::PROXY_PORT = port; }
156- void setProxyUser ( const std::string &user ) final
157- { Settings::PROXY_USER = user; }
158- void setProxyPass ( const std::string &pass ) final
159- { Settings::PROXY_PASS = pass; }
160151#endif
161152
162153 std::vector<digidoc::X509Cert> TSCerts () const final
@@ -609,10 +600,6 @@ QVariant Application::confValue( ConfParameter parameter, const QVariant &value
609600 switch ( parameter )
610601 {
611602 case SiVaUrl: r = i->verifyServiceUri ().c_str (); break ;
612- case ProxyHost: r = i->proxyHost ().c_str (); break ;
613- case ProxyPort: r = i->proxyPort ().c_str (); break ;
614- case ProxyUser: r = i->proxyUser ().c_str (); break ;
615- case ProxyPass: r = i->proxyPass ().c_str (); break ;
616603 case TSAUrl: r = i->TSUrl ().c_str (); break ;
617604 case TSLUrl: r = i->TSLUrl ().c_str (); break ;
618605 case TSLCache: r = i->TSLCache ().c_str (); break ;
@@ -884,33 +871,6 @@ int Application::run()
884871 return exec ();
885872}
886873
887- void Application::setConfValue ( ConfParameter parameter, const QVariant &value )
888- {
889- try
890- {
891- auto *i = dynamic_cast <digidoc::XmlConfCurrent*>(digidoc::Conf::instance ());
892- if (!i)
893- return ;
894- QByteArray v = value.toString ().toUtf8 ();
895- switch ( parameter )
896- {
897- case ProxyHost: i->setProxyHost ( v.isEmpty ()? std::string () : v.constData () ); break ;
898- case ProxyPort: i->setProxyPort ( v.isEmpty ()? std::string () : v.constData () ); break ;
899- case ProxyUser: i->setProxyUser ( v.isEmpty ()? std::string () : v.constData () ); break ;
900- case ProxyPass: i->setProxyPass ( v.isEmpty ()? std::string () : v.constData () ); break ;
901- case TSAUrl:
902- case SiVaUrl:
903- case TSLCerts:
904- case TSLUrl:
905- case TSLCache: break ;
906- }
907- }
908- catch ( const digidoc::Exception &e )
909- {
910- showWarning (tr (" Caught exception!" ), e);
911- }
912- }
913-
914874void Application::showClient (const QStringList ¶ms, bool crypto, bool sign, bool newWindow)
915875{
916876 if (sign)
0 commit comments