[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Re: How to detect changes in the Proxy KCM?
From:       Thiago Macieira <thiago () kde ! org>
Date:       2020-04-14 15:01:03
Message-ID: 3399775.Lb6l68yMrg () tjmaciei-mobl1
[Download RAW message or body]

On Tuesday, 14 April 2020 05:46:18 -03 Stefano Crocco wrote:
> To set the proxy for QtWebEngine, I need to use
> QNetworkProxy::setApplicationProxy. I've found that proxy settings are
> stored in .config/kioslavesrc, so i could read them using KConfig, but:
> - is there an official way to read them? If I use KConfig to directly read
> the config file, how can I be sure that the way the settings are stored
> won't change in the future?
> - how can I know when the proxy settings have been changed so that I can
> update QNetworkProxy::applicationProxy?

Listen to the org.kde.KIO.Scheduler.reparseSlaveConfiguration D-Bus signal.

-- 
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
   Software Architect - Intel System Software Products



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic